Package repast.simphony.statecharts
Class MessageTrigger<T>
java.lang.Object
repast.simphony.statecharts.AbstractTrigger<T>
repast.simphony.statecharts.MessageTrigger<T>
- All Implemented Interfaces:
Trigger
-
Field Summary
Fields inherited from class repast.simphony.statecharts.AbstractTrigger
transition
-
Constructor Summary
ModifierConstructorDescriptionprotected
MessageTrigger
(Queue<Object> queue, MessageChecker messageChecker) protected
MessageTrigger
(Queue<Object> queue, MessageChecker messageChecker, double pollingTime) MessageTrigger
(MessageChecker messageChecker) Proper constructor used for creating MessageTrigger.MessageTrigger
(MessageChecker messageChecker, double pollingTime) Proper constructor used for creating MessageTrigger. -
Method Summary
Modifier and TypeMethodDescriptionboolean
double
double
getQueue()
void
boolean
boolean
boolean
boolean
void
setInterval
(double interval) protected void
setTransition
(Transition<T> transition) toString()
Methods inherited from class repast.simphony.statecharts.AbstractTrigger
getAgent, setAgent
-
Constructor Details
-
MessageTrigger
-
MessageTrigger
-
MessageTrigger
Proper constructor used for creating MessageTrigger.- Parameters:
messageChecker
-pollingTime
-
-
MessageTrigger
Proper constructor used for creating MessageTrigger.- Parameters:
messageChecker
-
-
-
Method Details
-
getQueue
-
setTransition
- Overrides:
setTransition
in classAbstractTrigger<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
-
canTransitionZeroTime
public boolean canTransitionZeroTime() -
isQueueConsuming
public boolean isQueueConsuming()- Specified by:
isQueueConsuming
in interfaceTrigger
- Overrides:
isQueueConsuming
in classAbstractTrigger<T>
-