XPRMRequirements
- java.lang.Object
-
- com.dashoptimization.XPRMRequirements
-
- All Implemented Interfaces:
- java.util.Iterator
public class XPRMRequirements extends java.lang.Object implements java.util.Iterator
Iterator to enumerate requirements of a model.
-
-
Method Summary
Modifier and Type Method and Description boolean
hasNext()
Check whether all requirements have been enumerated.java.lang.Object
next()
Next requirement.void
remove()
Not supported.
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
Check whether all requirements have been enumerated.- Specified by:
-
hasNext
in interfacejava.util.Iterator
- Returns:
-
true
if not all requirements have been enumerated
-
next
public java.lang.Object next()
Next requirement. Depending on the structure of the object associated to the identifier, the value returned can be one of the following classes:XPRMArray
,XPRMProcedure
,XPRMReference
,XPRMSet
,XPRMList
- Specified by:
-
next
in interfacejava.util.Iterator
- Returns:
-
The next requirement as a
XPRMIdentifier
- Throws:
-
java.util.NoSuchElementException
- If all requirements have already been returned.
-
remove
public void remove()
Not supported.- Specified by:
-
remove
in interfacejava.util.Iterator
- Throws:
-
java.lang.UnsupportedOperationException
- always thrown
-
-