|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectptolemy.graph.sched.Firing.FiringElementIterator
private class Firing.FiringElementIterator
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 long |
_startingVersion
|
| Constructor Summary | |
|---|---|
Firing.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 long _startingVersion
private int _currentElement
| Constructor Detail |
|---|
public Firing.FiringElementIterator()
| Method Detail |
|---|
public boolean hasNext()
hasNext in interface java.util.Iteratorjava.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.IteratorInvalidStateException - If the schedule
data structure has changed since this iterator
was created.
java.util.NoSuchElementExceptionpublic void remove()
remove in interface java.util.Iterator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||