|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.pakl.rl.ActionSet
public class ActionSet
A ActionSet maps States to possible Actions
and is used by an Agent in considering its possible next moves.
| Constructor Summary | |
|---|---|
ActionSet()
|
|
| Method Summary | |
|---|---|
void |
allowAction(State state,
Action newAction)
This method allows you to program in a possible action given a state. |
java.util.List |
getAllPossibleActions(State state)
This method returns a list of all possible actions an agent could take given a State. |
Action |
getRandomAllowedAction(State state)
|
void |
removeAction(State state,
Action oldAction)
This method allows you to deprogram an action from being possible |
java.lang.String |
toText()
Returns a textual representation of this ActionSet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActionSet()
| Method Detail |
|---|
public java.util.List getAllPossibleActions(State state)
State. If there are no actions,
this function returns an empty list (rather than returning a null).
public void allowAction(State state,
Action newAction)
public void removeAction(State state,
Action oldAction)
public Action getRandomAllowedAction(State state)
public java.lang.String toText()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||