I see that there is an AnchorageDecember.json environment file. I would like to load this and try running my scenario under those conditions. I see that there is an HowTo-EnvironmentChange.cpp, but it shows how to programmatically set environmental conditions, whereas I’d like to load the ones from the existing file. How can I do that? I tried this in Java:
SEChangeEnvironmentalConditions env = new SEChangeEnvironmentalConditions();
env.setEnvironmentalConditionsFile("environments/AnchorageDecember.json");
this.pulseEngine.processAction(env);
But this is what gets printed in the log:
[INFO ] [2020-11-21 20:18:18,293] [JavaFX Application Thread] [CppPulseEngine] : [0(s)] [Action] 0(s), Environment Action : Change Environmental Conditions
SurroundingType: NullSurrounding
Air Velocity: Not Set
Ambient Temperature: Not Set
Atmospheric Pressure: Not Set
Clothing Resistance: Not Set
Emissivity: Not Set
Mean Radiant Temperature: Not Set
Relative Humidity: Not Set
Respiration Ambient Temperature: Not Set
Seems like it didn’t work. What’s the right way to do this?
If that is correct, I probably have the relative path incorrect. The working directory is in my application, where I have copied the environment directory. I’ll check the path.
Yeah, the Java API is not coded right
I updated the API to work as you have understood it
I created a new branch off of the hemorrhage branch to address this https://gitlab.kitware.com/physiology/engine/-/tree/feature/environment_java
I added a new HowTo and I believe this is doing what you would expect
I am going to have to go through the Java API and double check other actions that support files and make sure they are also correct…later…
But check this out, the skin temp is going down, so it looks like I successfully transported the patient into Alaska