|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.actor.sched.Firing.ActorIterator
private class Firing.ActorIterator
An adapter class for iterating over the elements of this schedule. An exception is thrown if the schedule structure changes while this iterator is active.
Field Summary | |
---|---|
private int |
_currentElement
|
private int |
_iterationCount
|
private long |
_startingVersion
|
Constructor Summary | |
---|---|
Firing.ActorIterator(int iterationCount)
Construct a ScheduleIterator. |
Method Summary | |
---|---|
boolean |
hasNext()
Return true if the iteration has more elements. |
java.lang.Object |
next()
Return the next object in the iteration. |
void |
remove()
Throw an exception, since removal is not allowed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private long _startingVersion
private int _currentElement
private int _iterationCount
Constructor Detail |
---|
public Firing.ActorIterator(int iterationCount)
Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator
java.util.ConcurrentModificationException
- If the schedule
data structure has changed since this iterator
was created.public java.lang.Object next() throws java.util.NoSuchElementException
next
in interface java.util.Iterator
InvalidStateException
- If the schedule
data structure has changed since this iterator
was created.
java.util.NoSuchElementException
public void remove()
remove
in interface java.util.Iterator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |