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