public class ExecutionAspectHelper extends java.lang.Object
| Constructor and Description |
|---|
ExecutionAspectHelper() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<NamedObj> |
getEntitiesToDecorate(CompositeEntity container)
Execution aspects are decorators and this method recursively computes
all entities inside a given container that are decorated by execution aspects.
|
static Time |
schedule(ActorExecutionAspect aspect,
NamedObj actor,
Time environmentTime,
Time deadline)
Schedule an actor for execution on an aspect and return the next time
this aspect has to perform an action.
|
public ExecutionAspectHelper()
public static java.util.List<NamedObj> getEntitiesToDecorate(CompositeEntity container)
container - The container.public static Time schedule(ActorExecutionAspect aspect, NamedObj actor, Time environmentTime, Time deadline) throws IllegalActionException
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.IllegalActionException - Thrown if actor parameters such
as execution time or priority cannot be read.