Package org.oristool.simulator.rewards
Class SymbolicPrefixReward
java.lang.Object
org.oristool.simulator.rewards.BasicReward
org.oristool.simulator.rewards.SymbolicPrefixReward
- All Implemented Interfaces:
Reward
,SequencerObserver
Reward tracking the occurrence of a sequence of event firings from the
initial state.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.oristool.simulator.rewards.Reward
Reward.RewardEvent
-
Constructor Summary
ConstructorDescriptionSymbolicPrefixReward
(Sequencer sequencer, String... prefix) Builds a new instance for a given simulator and sequence of transitions. -
Method Summary
Methods inherited from class org.oristool.simulator.rewards.BasicReward
addObserver, getRewardTime, getSamples, getSequencer, removeObserver
-
Constructor Details
-
SymbolicPrefixReward
Builds a new instance for a given simulator and sequence of transitions.- Parameters:
sequencer
- simulatorprefix
- sequence of event names
-
-
Method Details
-
update
- Specified by:
update
in interfaceSequencerObserver
- Overrides:
update
in classBasicReward
-
evaluate
-
getCurrentTimeSample
public int getCurrentTimeSample()- Specified by:
getCurrentTimeSample
in classBasicReward
-