Projects



Changes between Version 8 and Version 9 of CloudNativeRenew


Ignore:
Timestamp:
Mar 16, 2021, 4:22:51 PM (4 years ago)
Author:
roewekamp
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CloudNativeRenew

    v8 v9  
    2626 * !Linux/Unix: `java -p dist:dist/libs -m de.renew.loader gui` (depending on your shell you might need to escape the colon character: `java -p dist\:dist/libs -m de.renew.loader gui`
    2727 * Windows: `java -p dist;dist/libs -m de.renew.loader gui`
    28 * Open a command shell and execute `curl localhost:8098/log` (or use the port you specified earlier in the `application.properties` file. The log files of the simulator will be returned from the moment onward the cloud native plugin was initialized.
     28
     29* Open a command shell and execute `curl localhost:8098/log` (or use the port you specified earlier in the `application.properties` file). The log files of the simulator will be returned from the moment onward the cloud native plugin was initialized.
     30* Open a web browser and navigate to `http://localhost:8098/swagger-ui.html` to see a documentation of the service endpoints with their required parameters.
     31
     32* You can for example upload an existing shadown net system .sns.
     33 * To create a shadow net system, open up a Renew instance (or the one spawned by the startup earlier), draw a reference net, save it with a specific name (File -> Save Drawing As...), and hit File -> Export -> Export all drawings (merged file) -> ShadowNetSystem
     34 * If you created the net within the here supplied Renew instance with the cloud native plugin, close the net drawing, but not Renew itself.
     35 * Assume the shadow net system file is namend `example.sns`: Upload the net using: `curl -F 'snsZipFile=@example.sns' localhost:8098/upload/sns?fileName=example.sns`
     36 * After uploading you can start a simulation. Assume you named the net within `example.sns` also `example`. Use this command: `curl -X POST 'localhost:8098/simulation/start?mainNet=example&sns=example.sns'`
     37 * The simulation can now be controlled by the endpoint: `curl -X POST 'localhost:8098/simulation/control?command=step'` Use the keywords:
     38  * `run` (To run simulations, that have been paused or only initialized)
     39  * `step` (To execute a single step in the simulation)
     40  * `stop` or `halt` (To suspend the simulation but do not terminate it)
     41  * `term` (To terminate a simulation. This is irreversible.)