Class Transition<T>

java.lang.Object
repast.simphony.statecharts.Transition<T>
Direct Known Subclasses:
SelfTransition

public class Transition<T> extends Object
  • Constructor Details

  • Method Details

    • getParams

      protected Parameters getParams()
    • getAgent

      protected T getAgent()
    • getQueue

      protected Queue<Object> getQueue()
    • setStateChart

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

      public Trigger getTrigger()
    • getSource

      public AbstractState<T> getSource()
    • getTarget

      public AbstractState<T> getTarget()
    • isTransitionConditionTrue

      protected boolean isTransitionConditionTrue()
    • isTransitionTriggered

      protected boolean isTransitionTriggered()
    • isResolveNow

      protected boolean isResolveNow()
    • registerGuard

      protected void registerGuard(GuardCondition<T> guard)
    • canTransitionZeroTime

      protected boolean canTransitionZeroTime()
    • isTriggerQueueConsuming

      protected boolean isTriggerQueueConsuming()
    • getPriority

      public double getPriority()
    • initialize

      protected void initialize(DefaultStateChart<T> sc)
    • registerOnTransition

      protected void registerOnTransition(TransitionAction<T> onTransition)
    • onTransition

      protected void onTransition()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getId

      public String getId()
    • rescheduleRegularTransition

      protected void rescheduleRegularTransition(DefaultStateChart<T> stateChart, double currentTime)
    • rescheduleSelfTransition

      protected void rescheduleSelfTransition(DefaultStateChart<T> stateChart, double currentTime)
    • setNextPollingTime

      public void setNextPollingTime(double pollingTime)
      Sets the next polling time for this transition. This affects Always, Condition, Probability and Message triggers.
      Parameters:
      pollingTime -
    • getPollingTime

      public double getPollingTime()
      Get the polling time or interval for this transition. Polling time for: Always, Condition, Probability and Message triggers. Interval for: Timed and Exponential triggers.