You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using the load command of gama-server in GUI, only two parameters are taken into account: the path of the file and the experiment name. This is indeed the minimum needed to run an experiment, but the protocol defines a lot more of options as redirecting errors to the client or not or setting the values for the simulation parameters, you can find the complete list here.
All those parameters are working in headless mode and are specific to GUI loading. This is caused by the call to different functions in GUI and headless:
in GUI we are calling the method LOAD defined in DefaultServer.java
in headless we are calling the execute method defined in LoadCommand.java
The common parts of those method should probably be refactored.
To Reproduce
Steps to reproduce the behavior:
Create this model:
global {
int var1 <- -100;
init {
write var1;
}
}
experiment exp{
parameter "param" var:var1;
}
Create a client that sends a load command for this model and tries to set var1 to any other value using the parameters field
Run gama-server in headless, connect the client and observe that var1 is set to the correct value
Now do the same but by connecting to gama in GUI mode and observe that var1 has not been set to the new value.
Expected behavior
All the parameters in load are taken into account in GUI as it's the case in headless
Describe the bug
When using the
load
command of gama-server in GUI, only two parameters are taken into account: the path of the file and the experiment name. This is indeed the minimum needed to run an experiment, but the protocol defines a lot more of options as redirecting errors to the client or not or setting the values for the simulation parameters, you can find the complete list here.All those parameters are working in headless mode and are specific to GUI loading. This is caused by the call to different functions in GUI and headless:
LOAD
defined inDefaultServer.java
execute
method defined inLoadCommand.java
The common parts of those method should probably be refactored.
To Reproduce
Steps to reproduce the behavior:
var1
to any other value using theparameters
fieldExpected behavior
All the parameters in load are taken into account in GUI as it's the case in headless
Additional context
This is a sub-task of #1
The text was updated successfully, but these errors were encountered: