01_user_documentation:10_additional_interfaces:headless
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| 01_user_documentation:10_additional_interfaces:headless [2025/01/30 10:54] – removed - external edit (Unknown date) 127.0.0.1 | 01_user_documentation:10_additional_interfaces:headless [2025/12/10 13:14] (current) – ↷ Links adapted because of a move operation gaetan | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Headless mode ====== | ||
| + | |||
| + | GroIMP can be started without its graphical interface, in a non interactive headless mode. | ||
| + | This mode can either execute a specified model and or a specified GroIMP command and can therefore be used for simple automation or as a base for e.g. the [[01_user_documentation: | ||
| + | |||
| + | <uml> | ||
| + | @startuml | ||
| + | hide footbox | ||
| + | title Headless | ||
| + | |||
| + | User -> GroIMP: Start GroIMP with model | ||
| + | GroIMP -> User: Print log & close GroIMP | ||
| + | @enduml | ||
| + | </ | ||
| + | |||
| + | |||
| + | If a model is started in headless, GroIMP executes it,logs the console output and afterwards shut down. Capturing any feedback from the simulation must be included in the model. | ||
| + | |||
| + | ==== Running a model headless ==== | ||
| + | |||
| + | To execute a given model in headless the additional parameter --headless is used: | ||
| + | <code bash> | ||
| + | java -Xverify: | ||
| + | </ | ||
| + | |||
| + | This will return a list of all installed plugins including versions and then start the model. | ||
| + | Any further actions must be defined in the code of the Model, including the steps of the simulation, the way data is printed/ | ||
| + | |||
| + | For the automated starting of the simulation overwriting the startup function of the simulation is recommended. | ||
| + | |||
| + | |||
| + | ==== Executing a command headless ==== | ||
| + | |||
| + | GroIMP is capable of executing any registry command on startup, if this command is provided as full path using the additional command line argument: %%'-- -cmd "/ | ||
| + | This is mostly used to start the [[01_user_documentation: | ||
| + | ==== More documentation ==== | ||
| + | |||
| + | * [[01_user_documentation: | ||
| + | * [[01_user_documentation: | ||
| + | |||
| + | ==== Tutorials ==== | ||
| + | * [[02_user_tutorials: | ||
| + | * [[02_old_tutorials: | ||
| + | * [[https:// | ||
