schedule
public static Time schedule(ActorExecutionAspect aspect,
NamedObj actor,
Time environmentTime,
Time deadline)
throws IllegalActionException
Schedule an actor for execution on an aspect and return the next time
this aspect has to perform an action. Derived classes
must implement this method to actually schedule actors, this
base class implementation just creates events for aspect
activity that is displayed in the plotter. This
base class implementation just creates events for aspect
activity that is displayed in the plotter.
- Parameters:
aspect
- The aspect.
actor
- The actor to be scheduled.
environmentTime
- The current platform time.
deadline
- The deadline timestamp of the event to be scheduled.
This can be the same as the environmentTime.
- Returns:
- Relative time when this aspect has to be executed
again to perform rescheduling actions.
- Throws:
IllegalActionException
- Thrown if actor parameters such
as execution time or priority cannot be read.