|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectptolemy.actor.sched.ScheduleElement
ptolemy.actor.sched.Firing
This class is a schedule element that contains a reference to an actor. This class is used together with the Schedule class to construct a static schedule. This class contains a reference to an actor, and is used to represent an actor term of a schedule loop. The setActor() method is used to create the reference to an actor. The getActor() method will return a reference to this actor.
It is more efficient to use this class than to simply maintain a list of actors since actors will often firing multiple times consecutively. Using this class (and the Schedule data structure in general) greatly reduces the memory requirements of most large schedules.
Schedule,
ScheduleElement
| Yellow (chf) |
| Green (vogel) |
| Field Summary |
| Fields inherited from class ptolemy.actor.sched.ScheduleElement |
_parent |
| Constructor Summary | |
Firing()
Construct a firing with a default iteration count equal to one and with no parent schedule. |
|
Firing(Actor actor)
Construct a firing with a actor, an iteration count equal to one and no parent schedule. |
|
| Method Summary | |
java.util.Iterator |
actorIterator()
Return the actor invocation sequence of the schedule in the form of a sequence of actors. |
java.util.Iterator |
firingIterator()
Return the actor invocation sequence in the form of a sequence of firings. |
Actor |
getActor()
Get the actor associated with this Firing. |
void |
setActor(Actor actor)
Set the actor associated with this firing. |
java.lang.String |
toString()
Output a string representation of this Firing. |
| Methods inherited from class ptolemy.actor.sched.ScheduleElement |
_getVersion, _incrementVersion, getIterationCount, setIterationCount, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Firing()
public Firing(Actor actor)
actor - The actor in the firing.| Method Detail |
public java.util.Iterator actorIterator()
A runtime exception is thrown if the underlying schedule structure is modified while the iterator is active.
actorIterator in class ScheduleElementjava.util.ConcurrentModificationException - If the
underlying schedule structure is modified while the iterator
is active.public java.util.Iterator firingIterator()
A runtime exception is thrown if the underlying schedule structure is modified while the iterator is active.
firingIterator in class ScheduleElementjava.util.ConcurrentModificationException - If the
underlying schedule structure is modified while the iterator
is active.public Actor getActor()
public void setActor(Actor actor)
actor - The actor to associate with this firing.public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||