Copyright VirtualSim 2004-2020 - All rights reserved
Task
A Task is a Logic object whose user code is processed at a given frequency. A Task is a runtime object that, once activated, stops the logical flow until terminated.
The user can control the termination condition from either the code itself, from a Transition or using an Exit Point.
Code Hints
scen() or S: is a macro that returns a pointer to the Scenario instance that holds the Entity instance that holds the Logic instance that holds the current Task.
ent() or E: is a macro that returns a pointer to the Entity instance that holds the Logic instance that holds the current Task.
logk() or L: is a macro that returns a pointer to the Logic instance that holds the current Task.
group() or G: is a macro that returns a pointer to the current Group, if any, that holds the current Task. NULL if none.