Package org.oristool.simulator.stpn
Class TransitionAbsoluteFiringTime
java.lang.Object
org.oristool.simulator.rewards.BasicReward
org.oristool.simulator.stpn.TransitionAbsoluteFiringTime
- All Implemented Interfaces:
Reward
,SequencerObserver
Reward estimating the absolute time of a transition firing.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.oristool.simulator.rewards.Reward
Reward.RewardEvent
-
Constructor Summary
ConstructorDescriptionTransitionAbsoluteFiringTime
(Sequencer sequencer, RewardTime rewardTime, int samples, String transitionName) Builds a new instance for a given transition name. -
Method Summary
Methods inherited from class org.oristool.simulator.rewards.BasicReward
addObserver, getRewardTime, getSamples, getSequencer, removeObserver
-
Constructor Details
-
TransitionAbsoluteFiringTime
public TransitionAbsoluteFiringTime(Sequencer sequencer, RewardTime rewardTime, int samples, String transitionName) Builds a new instance for a given transition name.- Parameters:
sequencer
- simulatorrewardTime
- time abstraction (discrete or continuous)samples
- maximum number of time tickstransitionName
- target transition name
-
-
Method Details
-
update
- Specified by:
update
in interfaceSequencerObserver
- Overrides:
update
in classBasicReward
-
evaluate
-
getCurrentTimeSample
public int getCurrentTimeSample()- Specified by:
getCurrentTimeSample
in classBasicReward
-