-
First of all, thanks for this great tool! I am new to it and also to qeuing in general. void function(SimulationInterface sim) {
sim.getSystem().log("Where can I see this?");
sim.getSystem().set("currentCpu", 333); // How can I read the variable?
sim.getClients().release(0);
} I can set a new value to a variable (here it is currentCpu - that I initialized in the Also, it seems I can log through |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi Tamas Palagyi, Warteschlangensimulator has three different modes for interacting with a model: by probability distributions, by calculation expressions and via scripts. While using probability distributions is the fastest, it’s also the least flexible way. Calculation expressions are more flexible but slower and of course with scripts you can do everything - but the execution will take more time. In calculation expressions global variables can be used. The names of these variables need to be known at simulation start time. During the simulation the list of variables cannot be extended. Variables can be made known to the system in two different ways: Implicitly by using them as an assignment target at a "Variable" station or explicitly on the "Initial variable values" pages in the model settings dialog. Actual assignments to variable are usually made via "Variable" stations and the values can be used in any calculation expression. (See the example model "Limited number of clients at a station" for example.) In scripts you can access the calculation expression system via But if you want to use the variable only in script code (and not in calculation expressions) there is an even more flexible way: The strings you send to Greetings |
Beta Was this translation helpful? Give feedback.
Hi Tamas Palagyi,
Warteschlangensimulator has three different modes for interacting with a model: by probability distributions, by calculation expressions and via scripts. While using probability distributions is the fastest, it’s also the least flexible way. Calculation expressions are more flexible but slower and of course with scripts you can do everything - but the execution will take more time.
In calculation expressions global variables can be used. The names of these variables need to be known at simulation start time. During the simulation the list of variables cannot be extended. Variables can be made known to the system in two different ways: Implicitly by using them as an assig…