|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StateSpaceManager
Interface for state space managers. State managers are used to modify and explore state spaces. They extend the functionality of state space indexes.
Field Summary | |
---|---|
static boolean |
DEBUG_ENFORCE_DETERMINISM
Debug flag: enforces deterministic behavior of state space manager. |
Method Summary | |
---|---|
State |
createInitialState(Model model)
Create a new initial state to the state space. |
List<State> |
exploreStates(List<State> states,
boolean generateLocations)
Explore a state. |
int |
getNumThreads()
Get the number of threads used by this state manager. |
int |
getStateDistance(State state)
Get the shortest distance of a state from an arbitrary initial state. |
List<State> |
mergeTerminalStates()
Merge all terminal states |
List<State> |
removeState(State state)
Remove a state from the state space. |
void |
resetStateSpace(boolean removeInitial)
Reset the state space managed by this instance. |
void |
shutdown()
Shutdown this state space manager. |
Methods inherited from interface org.eclipse.emf.henshin.statespace.StateSpaceIndex |
---|
clearCache, getCachedModel, getModel, getState, getStateSpace |
Field Detail |
---|
static final boolean DEBUG_ENFORCE_DETERMINISM
Method Detail |
---|
State createInitialState(Model model) throws StateSpaceException
model
- Model of the initial state.
StateSpaceException
- If the state space contains errors.List<State> removeState(State state) throws StateSpaceException
state
- State to be removed.
StateSpaceException
- If the state space contains errors.List<State> mergeTerminalStates() throws StateSpaceException
StateSpaceException
- If the state space contains errors.List<State> exploreStates(List<State> states, boolean generateLocations) throws StateSpaceException
state
- State to be explored.generateLocation
- Whether to generate a location for the new states.
StateSpaceException
- If the state space contains errors.int getStateDistance(State state)
state
- State.
void resetStateSpace(boolean removeInitial) throws StateSpaceException
remobeInitial
- Determines whether also initial states should be removed.
StateSpaceException
- On errors.int getNumThreads()
void shutdown()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |