public class PtinyOSDirector extends ComponentDirector
Constructor and Description |
---|
PtinyOSDirector() |
Modifier and Type | Method and Description |
---|---|
void |
initialize()
Initialize the component.
|
void |
letTimePass(double timeInterval,
boolean atomic)
Call fireAtRelativeTime() with the specified time interval
and then suspend the calling thread.
|
void |
preinitialize()
Preinitialize the component.
|
void |
reactAt(double time,
Component component)
Request that the react() method of the specified component
be invoked at the specified time.
|
void |
run()
Execute the component.
|
void |
wrapup()
Wrap up an execution.
|
public PtinyOSDirector()
public void initialize() throws IllegalActionException
initialize
in interface Component
initialize
in class ComponentDirector
IllegalActionException
- If initialization
cannot be completed.public void letTimePass(double timeInterval, boolean atomic)
timeInterval
- The time interval.atomic
- True to disable interrupts.public void preinitialize() throws IllegalActionException
preinitialize
in interface Component
preinitialize
in class ComponentDirector
IllegalActionException
- If preinitialization
cannot be completed.public void reactAt(double time, Component component)
time
- The time at which to invoke react().component
- PtinyOSComponent The requesting component.public void run() throws IllegalActionException
run
in interface Component
run
in class ComponentDirector
IllegalActionException
- If the run cannot be completed.public void wrapup() throws IllegalActionException
wrapup
in interface Component
wrapup
in class ComponentDirector
IllegalActionException
- If wrapup fails.