Important Classes and Interfaces
Last updated
Last updated
The realvirtualBehavior class incorporates a public bool ForceStop property that can be accessed by all derived components. This property informs components whether the simulation is currently halted. The value of ForceStop is controlled by the public SetForceStop(bool forcestop) method, typically invoked by realvirtualController.
Developers can customize the behavior of their components based on the simulation status by overriding two functions:
OnStop(): This function is called when the simulation is stopped. Developers can implement custom logic to execute specific actions when the simulation halts.
OnStart(): This function is invoked when the simulation starts. It allows developers to define custom logic that runs when the simulation resumes after being stopped.
These functions provide flexibility for implementing unique behaviors tailored to the simulation's current operational state within the realvirtualIO framework.