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