public class PeriodicDirectorHelper
extends java.lang.Object
PeriodicDirector
Red (eal) |
Yellow (eal) |
Constructor and Description |
---|
PeriodicDirectorHelper(PeriodicDirector director)
Construct a new helper.
|
Modifier and Type | Method and Description |
---|---|
Time |
fireAt(Actor actor,
Time time)
Request a firing of the given actor at the given absolute
time, and return the time at which the specified will be
fired.
|
void |
initialize()
If the period parameter is greater than zero, then
request a first firing of the executive director, if there
is one.
|
void |
postfire()
If the period parameter is greater than 0.0, then
if the associated director is at the top level, then increment
its time by the specified period, and otherwise request a refiring
at the current time plus the period.
|
boolean |
prefire()
If the period value is greater than zero, then return
true if the current time is a multiple of the value and the
current microstep is 1.
|
public PeriodicDirectorHelper(PeriodicDirector director) throws IllegalActionException
director
- The associated director.IllegalActionException
- If the argument is not an instance of
Director.public Time fireAt(Actor actor, Time time) throws IllegalActionException
actor
- The actor scheduled to be fired.time
- The requested time.IllegalActionException
- If the operation is not
permissible (e.g. the given time is in the past).public void initialize() throws IllegalActionException
IllegalActionException
- If the superclass throws it.public void postfire() throws IllegalActionException
IllegalActionException
- If the period parameter
cannot be evaluated.public boolean prefire() throws IllegalActionException
IllegalActionException
- If the period
parameter cannot be evaluated.