edu.cmu.sei.aadl.model.util
Class SOMIterator

java.lang.Object
  extended by edu.cmu.sei.aadl.model.util.SOMIterator
All Implemented Interfaces:
java.util.Iterator

public final class SOMIterator
extends java.lang.Object
implements java.util.Iterator

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
 java.util.Map getSOMasModeBindings()
          Return the current system operation mode as a mode bindings map suitable for use with ModalPropertyValue.getValue(Map).
 boolean hasNext()
           
 java.lang.Object 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

next

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

Specified by:
next in interface java.util.Iterator
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

getSOMasModeBindings

public java.util.Map getSOMasModeBindings()
Return the current system operation mode as a mode bindings map suitable for use with ModalPropertyValue.getValue(Map).


remove

public void remove()
Remove is not supported.

Specified by:
remove in interface java.util.Iterator