public class BestActionRepository extends Object
Constructor and Description |
---|
BestActionRepository(Recursion.OptimisationDirection direction) |
Modifier and Type | Method and Description |
---|---|
Action |
getBestAction()
Returns the best action stored.
|
double |
getBestValue()
Returns the value associated with the best action stored.
|
void |
update(Action currentAction,
double currentValue)
Compares
currentAction and currentValue to the best action currently stored and updates
values stored accordingly. |
public BestActionRepository(Recursion.OptimisationDirection direction)
public void update(Action currentAction, double currentValue)
currentAction
and currentValue
to the best action currently stored and updates
values stored accordingly.currentAction
- the action.currentValue
- the action expected value.public Action getBestAction()
public double getBestValue()
Copyright © 2017–2018. All rights reserved.