EntityStateJob.StateModel

public class StateModel

A StateModel is an abstract definition of a Finite State Machine for entities.

It consists of a set of States, a set of transitions, a initial state and a final state.

If the StateModel has no initial state, it cannot be initialized (no entity will ever be in any of the StateModel’s states) without using the forceInitialState flag.

If the StateModel has not final state, an entity with any of the states from this StateModel cannot leave this StateModel (and cannot be deleted either) without using the forceFinalState flag.

Author:

Timm Fitschen (t.fitschen@indiscale.com)

Constructors

StateModel

public StateModel(EntityInterface stateModelEntity)

Methods

equals

public boolean equals(Object obj)

getFinalState

public State getFinalState()

getInitialState

public State getInitialState()

getName

public String getName()

getStates

public Set<State> getStates()

getTransitions

public Set<Transition> getTransitions()

toString

public String toString()