Package b2p.search.aima
Class ActionStore
- java.lang.Object
-
- b2p.search.aima.ActionStore
-
-
Constructor Summary
Constructors Constructor Description ActionStore(int capacity)
Creates a list of actions and their respective heuristic values
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(IAction action, int utilValue)
Inserts in an ordered way an action and its heuristic value in the action store.java.util.List<IAction>
getActions()
Returns the list containing the actions storedint
size()
Returns the size ofaction
list
-
-
-
Method Detail
-
add
public void add(IAction action, int utilValue)
Inserts in an ordered way an action and its heuristic value in the action store.- Parameters:
action
- action to be stored within the classutilValue
- action's associated value
-
size
public int size()
Returns the size ofaction
list- Returns:
- the size of
action
list
-
getActions
public java.util.List<IAction> getActions()
Returns the list containing the actions stored- Returns:
- the list containing the actions stored
-
-