Package repast.simphony.statecharts
Class AbstractState<T>
- java.lang.Object
-
- repast.simphony.statecharts.AbstractState<T>
-
- Direct Known Subclasses:
CompositeState
,HistoryState
,SimpleState
public abstract class AbstractState<T> extends Object
-
-
Constructor Summary
Constructors Constructor Description AbstractState(String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractState<T>
calculateLowestCommonAncestor(AbstractState<T> other)
protected T
getAgent()
protected List<AbstractState<T>>
getAncestors()
Returns a list with the highest node in front.String
getId()
protected Parameters
getParams()
CompositeState<T>
getParent()
protected void
onEnter()
protected void
onExit()
protected void
registerOnEnter(StateAction<T> onEnter)
protected void
registerOnExit(StateAction<T> onExit)
void
setParent(CompositeState<T> parent)
protected void
setStateChart(DefaultStateChart<T> stateChart)
String
toString()
-
-
-
Constructor Detail
-
AbstractState
public AbstractState(String id)
-
-
Method Detail
-
getAgent
protected T getAgent()
-
setStateChart
protected void setStateChart(DefaultStateChart<T> stateChart)
-
getParent
public CompositeState<T> getParent()
-
setParent
public void setParent(CompositeState<T> parent)
-
getId
public String getId()
-
getParams
protected Parameters getParams()
-
onEnter
protected void onEnter()
-
onExit
protected void onExit()
-
registerOnEnter
protected void registerOnEnter(StateAction<T> onEnter)
-
registerOnExit
protected void registerOnExit(StateAction<T> onExit)
-
calculateLowestCommonAncestor
public AbstractState<T> calculateLowestCommonAncestor(AbstractState<T> other)
-
getAncestors
protected List<AbstractState<T>> getAncestors()
Returns a list with the highest node in front.
-
-