|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.henshin.statespace.impl.StateExplorer
public class StateExplorer
Helper class for exploring states. This forms the bridge between a StateSpaceManager
and an Engine
. This class tries to minimize the number of created
short living objects to improve the performance. Instances of this class must not be
used concurrently!
Constructor Summary | |
---|---|
StateExplorer(StateSpaceIndex index)
Default constructor. |
Method Summary | |
---|---|
Model |
deriveModel(Path path,
Model sourceModel)
Derive a model using a path and a given start model. |
Model |
deriveModel(State state,
boolean fromInitial)
Derive a model. |
List<Transition> |
doExplore(State state)
Explore a state without actually changing the state space. |
Match |
getLastResultMatch()
Get the last result match used during the derivation of a model. |
Match |
getMatch(Transition transition,
Model sourceModel)
Get the match for a given transition. |
boolean |
isGoalState(State state)
Check whether a state is a goal state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StateExplorer(StateSpaceIndex index)
Method Detail |
---|
public List<Transition> doExplore(State state) throws StateSpaceException
state
- State to be explored.
StateSpaceException
- On explore errors.public boolean isGoalState(State state) throws StateSpaceException
state
- State to be checked.
StateSpaceException
public Model deriveModel(State state, boolean fromInitial) throws StateSpaceException
State
- state.fromInitial
- Whether to derive it from an initial state.
StateSpaceException
- On errors.public Model deriveModel(Path path, Model sourceModel) throws StateSpaceException
path
- Path.sourceModel
- Source model.
StateSpaceException
- On errors.public Match getMatch(Transition transition, Model sourceModel) throws StateSpaceException
transition
- The transition.sourceModel
- The model of the source state.
StateSpaceException
- On state space errors.public Match getLastResultMatch()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |