This class is used for simulation control callbacks.
The callback conditions (trigger expressions) are specified in control YAML files (and eventually the pythong shell). The purpose of this class in the command line fashion (see example/CoreModel/ctrl.yaml) is to allow the user to "control" simulation during runtime by relating behaviors (like start, stop, resume) with simulation triggers. Simulation triggers can be sparta::NotificationSource, sparta::Counter, sparta::StatisicDef, other expressions.
A use case for such a control could include the simulation is instructed to send a notification (via sparta::NotificationSource) when a specific address of a test case is encountered. The modeler could have a trigger set up on that notification to stop simulation:
# stop on address hit (stop.yaml)
control:
stop: notif.address_hit
And the simulation:
./my_simulator ...<args>... --control stop.yaml
Definition at line 462 of file Simulation.hpp.