Package repast.simphony.statecharts
Class Transition<T>
java.lang.Object
repast.simphony.statecharts.Transition<T>
- Direct Known Subclasses:
SelfTransition
-
Constructor Summary
ModifierConstructorDescriptionprotected
Transition
(String id, Trigger trigger, AbstractState<T> source, AbstractState<T> target, double priority) protected
Transition
(Trigger trigger, AbstractState<T> source, AbstractState<T> target) protected
Transition
(Trigger trigger, AbstractState<T> source, AbstractState<T> target, double priority) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
protected T
getAgent()
getId()
protected Parameters
double
Get the polling time or interval for this transition.double
getQueue()
protected void
initialize
(DefaultStateChart<T> sc) protected boolean
protected boolean
protected boolean
protected boolean
protected void
protected void
registerGuard
(GuardCondition<T> guard) protected void
registerOnTransition
(TransitionAction<T> onTransition) protected void
rescheduleRegularTransition
(DefaultStateChart<T> stateChart, double currentTime) protected void
rescheduleSelfTransition
(DefaultStateChart<T> stateChart, double currentTime) void
setNextPollingTime
(double pollingTime) Sets the next polling time for this transition.protected void
setStateChart
(DefaultStateChart<T> stateChart) toString()
-
Constructor Details
-
Transition
-
Transition
protected Transition(Trigger trigger, AbstractState<T> source, AbstractState<T> target, double priority) -
Transition
protected Transition(String id, Trigger trigger, AbstractState<T> source, AbstractState<T> target, double priority)
-
-
Method Details
-
getParams
-
getAgent
-
getQueue
-
setStateChart
-
getTrigger
-
getSource
-
getTarget
-
isTransitionConditionTrue
protected boolean isTransitionConditionTrue() -
isTransitionTriggered
protected boolean isTransitionTriggered() -
isResolveNow
protected boolean isResolveNow() -
registerGuard
-
canTransitionZeroTime
protected boolean canTransitionZeroTime() -
isTriggerQueueConsuming
protected boolean isTriggerQueueConsuming() -
getPriority
public double getPriority() -
initialize
-
registerOnTransition
-
onTransition
protected void onTransition() -
toString
-
getId
-
rescheduleRegularTransition
-
rescheduleSelfTransition
-
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.
-