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