How to pause and continue to run in sparta? #517
Replies: 2 comments 1 reply
-
The command line isn't designed to be interactive. It's main use case is single testcase, single run with various modes to either run simulation completely or fractionally using command line options like If you're looking for an interactive simulation, you can try rolling your own by bypassing the CommandLineSimulator instance and directly use the Simulation interface instead. Also, there is python shell support you might try: https://github.com/sparcians/map/tree/master/sparta#python-shell-not-well-supported |
Beta Was this translation helpful? Give feedback.
-
The scheduler allows you to call |
Beta Was this translation helpful? Give feedback.
-
Hi,
I use CommandLineSimulator to create a simulator. Then I want to implemnet pause function in the simulator.
For Example, if I press 'p' in the keyboard, the simulator will pause and enter a sleep state. Then I press 'c' in the keyboard, it can continue to run.
Can the CommandLineSimulator acheive this function?
Beta Was this translation helpful? Give feedback.
All reactions