Simulation
The included simulator allows running MontiArc models. This is useful for testing. Multiple options are available for running the simulator, including interactive. A simulator has the benefit of controlling the simulation speed.
Non-Interactive
The default simulator is not interactive and has to be filled with inputs programmatically. See the testing chapter for more information on it.
Interactive
On the other hand, the simulator can also be run interactively. This might be useful for prototyping your models. You control how fast the simulation is running by setting the tick length.
Two different backends are available to interact with it.
REST
Due to the nature of REST, this backend can only be used to write to ports, but not read from them. To see how the systems behaves, you will have to look at the log.
montiarc run path/to/DeployRest<CompName>.java
MQTT
The MQTT backend requires a running MQTT broker. The simulator connects to it and reads from and writes to topics.
montiarc run path/to/DeployMqtt<CompName>.java