|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jopt.csp.spi.util.GenericIndexManager
Utility for creating iterators that can be used by arcs when processing generic nodes
Constructor Summary | |
GenericIndexManager(jopt.csp.variable.CspGenericIndex[] xIndices,
jopt.csp.variable.CspGenericIndex[] yIndices,
jopt.csp.variable.CspGenericIndex[] zIndices,
jopt.csp.variable.CspGenericIndex[] restrictedIndices,
boolean restrictZ)
Creates a new index manager that manages indices for source and target nodes where X and Y are source nodes and Z is a target such as X + Y = Z and X and Y indices have restricted ranges. |
Method Summary | |
IndexIterator |
allIterator()
Creates an iterator designed to loop over all indices in all nodes |
boolean |
getDisableCombinedIndices()
Returns flag that indicating if useCombined methods are allowed to return true |
IndexIterator |
iterator()
Creates an iterator designed to loop over all indices in the target and source nodes |
IndexIterator |
restrictedIterator()
Creates an iterator designed to loop over indices that were restricted from normal control |
void |
setDisableCombinedIndices(boolean disable)
Sets flag that that will cause all the useCombined methods to return false if set to true |
boolean |
useCombinedX()
True if the entire generic X node should be used, False is specific node should be used for each index |
boolean |
useCombinedY()
True if the entire generic Y node should be used, False is specific node should be used for each index |
boolean |
useCombinedZ()
True if the entire generic Z node should be used, False is specific node should be used for each index |
IndexIterator |
xControlledIterator()
Creates an iterator designed to loop over all indices not a part of the X node |
boolean |
xIndexIsRestricted()
True if an X index is excluded from the common iterators |
IndexIterator |
yControlledIterator()
Creates an iterator designed to loop over all indices not a part of the Y node |
boolean |
yIndexIsRestricted()
True if an Y index is excluded from the common iterators |
boolean |
zIndexIsRestricted()
True if an Z index is excluded from the common iterators |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GenericIndexManager(jopt.csp.variable.CspGenericIndex[] xIndices, jopt.csp.variable.CspGenericIndex[] yIndices, jopt.csp.variable.CspGenericIndex[] zIndices, jopt.csp.variable.CspGenericIndex[] restrictedIndices, boolean restrictZ)
xIndices
- X source indices for the equationyIndices
- Y source indices for the equationzIndices
- Z source indices for the equationrestrictedIndices
- array if indices that have restricted rangesrestrictZ
- True if Z node should be restrictedMethod Detail |
public boolean useCombinedX()
public boolean useCombinedY()
public boolean useCombinedZ()
public boolean xIndexIsRestricted()
public boolean yIndexIsRestricted()
public boolean zIndexIsRestricted()
public IndexIterator iterator()
public IndexIterator xControlledIterator()
public IndexIterator yControlledIterator()
public IndexIterator allIterator()
public IndexIterator restrictedIterator()
public void setDisableCombinedIndices(boolean disable)
public boolean getDisableCombinedIndices()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |