Package repast.simphony.statecharts
Class ProbabilityTrigger<T>
java.lang.Object
repast.simphony.statecharts.AbstractTrigger<T>
repast.simphony.statecharts.ProbabilityTrigger<T>
- All Implemented Interfaces:
Trigger
-
Field Summary
Fields inherited from class repast.simphony.statecharts.AbstractTrigger
transition
-
Constructor Summary
ConstructorDescriptionProbabilityTrigger
(double probability) ProbabilityTrigger
(double probability, double pollingTime) ProbabilityTrigger
(TriggerDoubleFunction<T> tdf, double pollingTime) -
Method Summary
Modifier and TypeMethodDescriptionboolean
double
double
protected Parameters
void
boolean
boolean
boolean
void
setInterval
(double interval) toString()
Methods inherited from class repast.simphony.statecharts.AbstractTrigger
getAgent, isQueueConsuming, setAgent, setTransition
-
Constructor Details
-
ProbabilityTrigger
public ProbabilityTrigger(double probability, double pollingTime) -
ProbabilityTrigger
public ProbabilityTrigger(double probability) -
ProbabilityTrigger
-
ProbabilityTrigger
-
-
Method Details
-
getParams
-
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()
-