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
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRewardEvaluator(Reward reward, long runs) Builds an evaluator for a given reward and number of runs. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddObserver(RewardEvaluatorObserver observer) Adds an observer to this evaluator.longgetRuns()voidremoveObserver(RewardEvaluatorObserver observer) voidupdate(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:
updatein interfaceRewardObserver
-
addObserver
Adds an observer to this evaluator.- Parameters:
observer- input observer
-
removeObserver
-