edu.cmu.sei.aadl.modelsupport.modeltraversal
Class SOMIterator

java.lang.Object
  extended by edu.cmu.sei.aadl.modelsupport.modeltraversal.SOMIterator
All Implemented Interfaces:
java.util.Iterator<SystemOperationMode>

public class SOMIterator
extends java.lang.Object
implements java.util.Iterator<SystemOperationMode>

This iterator allows a user to iterate through different mode combinations of a modal system

Author:
phf

Constructor Summary
SOMIterator(SystemInstance si)
          Create a new iterator over the system operation modes of the given system instance.
 
Method Summary
 boolean hasNext()
           
 SystemOperationMode next()
          Get the next system operation mode and update the modal adapters to refer to it.
 SystemOperationMode nextSOM()
          Get the next system operation mode and update the modal adapters to refer to it.
 void remove()
          Remove is not supported.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SOMIterator

public SOMIterator(SystemInstance si)
Create a new iterator over the system operation modes of the given system instance.

Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<SystemOperationMode>

next

public SystemOperationMode next()
Get the next system operation mode and update the modal adapters to refer to it.

Specified by:
next in interface java.util.Iterator<SystemOperationMode>
Returns:
The next system operation mode

nextSOM

public SystemOperationMode nextSOM()
Get the next system operation mode and update the modal adapters to refer to it.

Returns:
The next system operation mode

remove

public void remove()
Remove is not supported.

Specified by:
remove in interface java.util.Iterator<SystemOperationMode>