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 Details

    • AbstractState

      public AbstractState(String id)
  • Method Details

    • getAgent

      protected T getAgent()
    • setStateChart

      protected void setStateChart(DefaultStateChart<T> stateChart)
    • getParent

      public CompositeState<T> getParent()
    • setParent

      public void setParent(CompositeState<T> parent)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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.