Package repast.simphony.statecharts
Class TimedTrigger<T>
- java.lang.Object
-
- repast.simphony.statecharts.AbstractTrigger<T>
-
- repast.simphony.statecharts.TimedTrigger<T>
-
- All Implemented Interfaces:
Trigger
public class TimedTrigger<T> extends AbstractTrigger<T>
-
-
Field Summary
-
Fields inherited from class repast.simphony.statecharts.AbstractTrigger
transition
-
-
Constructor Summary
Constructors Constructor Description TimedTrigger(double time)
TimedTrigger(TriggerDoubleFunction<T> tdf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canTransitionZeroTime()
double
getInterval()
double
getNextTime()
protected Parameters
getParams()
void
initialize()
boolean
isRecurring()
boolean
isTriggerConditionTrue()
boolean
isTriggered()
void
setInterval(double interval)
This does nothing as there is no polling time associated with this trigger type.String
toString()
-
Methods inherited from class repast.simphony.statecharts.AbstractTrigger
getAgent, isQueueConsuming, setAgent, setTransition
-
-
-
-
Constructor Detail
-
TimedTrigger
public TimedTrigger(double time)
-
TimedTrigger
public TimedTrigger(TriggerDoubleFunction<T> tdf)
-
-
Method Detail
-
getParams
protected Parameters getParams()
-
isRecurring
public boolean isRecurring()
-
getInterval
public double getInterval()
-
initialize
public void initialize()
-
getNextTime
public double getNextTime()
-
isTriggered
public boolean isTriggered()
-
isTriggerConditionTrue
public boolean isTriggerConditionTrue()
-
canTransitionZeroTime
public boolean canTransitionZeroTime()
-
setInterval
public void setInterval(double interval)
This does nothing as there is no polling time associated with this trigger type.
-
-