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 voidadd(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 storedintsize()Returns the size ofactionlist
-
-
-
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 ofactionlist- Returns:
- the size of
actionlist
-
getActions
public java.util.List<IAction> getActions()
Returns the list containing the actions stored- Returns:
- the list containing the actions stored
-
-