vsTASKER 7 User Manual
×
Menu
Index

Runtime Part

 
A Component is running at a specific frequency.
It must be set in the setting box.
 
 
Cycle at: select from the list the appropriate frequency for the Component, according to the RTC runtime frequency.
 
Fixed Hz: when checked, the selected frequency is not according to the RTC but according to the wall clock.
With a fixed frequency, even if the simulation engine is accelerated or slowed down, the number of calls per seconds will remain the same.
 
Random Start: when checked, the first call of the runtime tic() will not be at time 0 but randomized between 0 and the specified frequency cycle. For example, at 5 seconds cycle, a Random Start will make the component start cycling between 0 and 5 seconds after simulation starts or component activated. This will insure that if the same component is given to several entities, they will be distributed over the cycles and not all running under the same cycle.
 
Parent: Select the parent runtime call mode:
 
 
 
The Component runtime code is the tic() function.
This function is called at the requested frequency (see above).

When a Component A inherit from a Component B, A::tic() function might or must contain B::tic() call (in Manual mode, see above) or any other public methods of B (see below).
 
 
 
scen() or S: is a macro that returns a pointer to the Scenario instance.
ent() or E: is a macro that returns a pointer to the Entity instance that holds the Component.