public abstract class ScheduleElement
extends java.lang.Object
This base class implements the getIterationCount() and setIterationCount() methods, which return and set the iteration count for this schedule element. A default value of 1 is used for the iteration count.
Modifier and Type | Field and Description |
---|---|
protected ScheduleElement |
_parent
The parent schedule of this schedule.
|
Constructor and Description |
---|
ScheduleElement()
Construct a schedule element with an iteration count of 1 and
with no parent schedule element.
|
Modifier and Type | Method and Description |
---|---|
protected long |
_getVersion()
Return the current version of this schedule element.
|
protected void |
_incrementVersion()
Increment the version of this schedule element and if this schedule
element has a parent schedule, increment the version of the parent
schedule as well.
|
abstract java.util.Iterator |
actorIterator()
Return the actor invocation sequence of the schedule in the
form of a sequence of actors.
|
abstract java.util.Iterator |
firingIterator()
Return the actor invocation sequence in the form
of a sequence of firings.
|
int |
getIterationCount()
Return the iteration count for this schedule.
|
void |
setIterationCount(int count)
Set the iteration count for this schedule.
|
void |
setParent(ScheduleElement parent)
Set the parent schedule element of this schedule element to
the specified schedule element.
|
protected ScheduleElement _parent
public ScheduleElement()
public abstract java.util.Iterator actorIterator()
public abstract java.util.Iterator firingIterator()
public int getIterationCount()
setIterationCount(int)
public void setIterationCount(int count)
count
- The iteration count for this schedule.getIterationCount()
public void setParent(ScheduleElement parent)
parent
- The parent schedule element of this schedule
element.protected long _getVersion()
protected void _incrementVersion()