Package org.oristool.simulator.rewards
Class RewardEvaluator
java.lang.Object
org.oristool.simulator.rewards.RewardEvaluator
- All Implemented Interfaces:
RewardObserver
Evaluator collecting the values of a reward over multiple runs.
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionRewardEvaluator
(Reward reward, long runs) Builds an evaluator for a given reward and number of runs. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addObserver
(RewardEvaluatorObserver observer) Adds an observer to this evaluator.long
getRuns()
void
removeObserver
(RewardEvaluatorObserver observer) void
update
(Reward.RewardEvent event)
-
Constructor Details
-
RewardEvaluator
Builds an evaluator for a given reward and number of runs.- Parameters:
reward
- target rewardruns
- number of runs
-
-
Method Details
-
getRuns
public long getRuns() -
getReward
-
getResult
-
update
- Specified by:
update
in interfaceRewardObserver
-
addObserver
Adds an observer to this evaluator.- Parameters:
observer
- input observer
-
removeObserver
-