Class MessageTrigger<T>

java.lang.Object
repast.simphony.statecharts.AbstractTrigger<T>
repast.simphony.statecharts.MessageTrigger<T>
All Implemented Interfaces:
Trigger

public class MessageTrigger<T> extends AbstractTrigger<T>
  • Constructor Details

    • MessageTrigger

      protected MessageTrigger(Queue<Object> queue, MessageChecker messageChecker, double pollingTime)
    • MessageTrigger

      protected MessageTrigger(Queue<Object> queue, MessageChecker messageChecker)
    • MessageTrigger

      public MessageTrigger(MessageChecker messageChecker, double pollingTime)
      Proper constructor used for creating MessageTrigger.
      Parameters:
      messageChecker -
      pollingTime -
    • MessageTrigger

      public MessageTrigger(MessageChecker messageChecker)
      Proper constructor used for creating MessageTrigger.
      Parameters:
      messageChecker -
  • Method Details

    • getQueue

      protected Queue<Object> getQueue()
    • setTransition

      protected void setTransition(Transition<T> transition)
      Overrides:
      setTransition in class AbstractTrigger<T>
    • isRecurring

      public boolean isRecurring()
    • getInterval

      public double getInterval()
    • setInterval

      public void setInterval(double interval)
    • initialize

      public void initialize()
    • getNextTime

      public double getNextTime()
    • isTriggered

      public boolean isTriggered()
    • isTriggerConditionTrue

      public boolean isTriggerConditionTrue()
    • toString

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

      public boolean canTransitionZeroTime()
    • isQueueConsuming

      public boolean isQueueConsuming()
      Specified by:
      isQueueConsuming in interface Trigger
      Overrides:
      isQueueConsuming in class AbstractTrigger<T>