public class SimulationConstraint extends Object
Constructor and Description |
---|
SimulationConstraint(StatesSet space,
OutgoingNodesHandlingStrategy strategy)
Create a new simulation constraint
|
Modifier and Type | Method and Description |
---|---|
Iterator<byte[]> |
getNewIterator()
Return a new iterator for the given state space.
|
boolean |
isValid()
Indicates if the space is valid for computation (not null & non empty)
|
int |
shouldAdd(byte[] state,
byte[] parentState)
Return a positive value if the state should be added to the graph.
|
public SimulationConstraint(StatesSet space, OutgoingNodesHandlingStrategy strategy)
space
- the set of states used as an initial state.strategy
- the OutgoingNodesHandlingStrategypublic int shouldAdd(byte[] state, byte[] parentState)
state
- parentState
- public Iterator<byte[]> getNewIterator()
public boolean isValid()
Copyright © 2005–2020. All rights reserved.