module timer {
int+read TimeStep;
int+read Active;
int+read ValStep;
itn+write Val;
};
timer triggers an operation at a given time interval. For example, you could use a timer to rotate an object by 15 degrees every 10 seconds.
Indicates the time interval for incrementing the Val subobject in milliseconds.
If set to 1, activates the timer. While the timer is active, the Val object is modified at each time step.
Indicates the amount to increment the Val subobject during each time step.