|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.graph.sched.Schedule.FiringElementIterator
private class Schedule.FiringElementIterator
An adapter class for iterating over the firing elements of this schedule. An exception is thrown if the schedule structure changes while this iterator is active.
Field Summary | |
---|---|
private boolean |
_advance
|
private Firing |
_currentFiring
|
private java.lang.Object |
_currentFiringElement
|
private int |
_currentIteration
|
private long |
_currentVersion
|
private java.util.Iterator |
_firingIterator
|
private boolean |
_lastHasNext
|
Constructor Summary | |
---|---|
Schedule.FiringElementIterator()
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 java.util.Iterator _firingIterator
private Firing _currentFiring
private java.lang.Object _currentFiringElement
private long _currentVersion
private int _currentIteration
private boolean _advance
private boolean _lastHasNext
Constructor Detail |
---|
public Schedule.FiringElementIterator()
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 |