Package org.oristool.simulator.stpn
Class SteadyStateMarkingProbability
java.lang.Object
org.oristool.simulator.rewards.BasicReward
org.oristool.simulator.stpn.SteadyStateMarkingProbability
- All Implemented Interfaces:
Reward
,SequencerObserver
Reward estimating the steady-state probability of a marking.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.oristool.simulator.rewards.Reward
Reward.RewardEvent
-
Constructor Summary
ConstructorDescriptionSteadyStateMarkingProbability
(Sequencer sequencer, RewardTime rewardTime, int samples, Marking marking) Builds a new instance for a given marking, time abstraction, number of time ticks. -
Method Summary
Methods inherited from class org.oristool.simulator.rewards.BasicReward
addObserver, getRewardTime, getSamples, getSequencer, removeObserver
-
Constructor Details
-
SteadyStateMarkingProbability
public SteadyStateMarkingProbability(Sequencer sequencer, RewardTime rewardTime, int samples, Marking marking) Builds a new instance for a given marking, time abstraction, number of time ticks.- 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
-