public class UCTStateNode
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
UCTStateNode.UCTStateConstructor
A factory for generating UCTStateNode objects
|
Modifier and Type | Field and Description |
---|---|
java.util.List<UCTActionNode> |
actionNodes
The possible actions (nodes) that can be performed from this state.
|
int |
depth
The depth the UCT tree
|
int |
n
The number of times this node has been visited
|
HashableState |
state
The (hashed) state this node wraps
|
Constructor and Description |
---|
UCTStateNode(HashableState s,
int d,
java.util.List<ActionType> actionTypes,
UCTActionNode.UCTActionConstructor constructor)
Initializes the UCT state node.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
public HashableState state
public int depth
public int n
public java.util.List<UCTActionNode> actionNodes
public UCTStateNode(HashableState s, int d, java.util.List<ActionType> actionTypes, UCTActionNode.UCTActionConstructor constructor)
s
- the state that this node wrapsd
- the depth of the nodeactionTypes
- the possible OO-MDP actions that can be takenconstructor
- a UCTActionNode
factory that can be used to create ActionNodes for each of the actions.