Class OTNode
java.lang.Object
|
+----Node
|
+----TreeNode
|
+----OTNode
- class OTNode
- extends TreeNode
A hierarchical tree node that contains opening move data.
- Version:
- 1.00
- Author:
- Bill Lorton
-
OTNode()
-
The OTNode constructor.
-
data()
-
Gets the opening data associated with this node.
-
move()
-
Gets the move associated with this node.
-
println()
-
For debugging purposes only.
-
setData(Opening)
-
Sets the opening data.
-
setMove(String)
-
Sets the single move associated with this node.
OTNode
public OTNode()
- The OTNode constructor.
setData
public void setData(Opening data)
- Sets the opening data.
- Parameters:
- data - the opening to associate with this node
setMove
public void setMove(String move)
- Sets the single move associated with this node.
- Parameters:
- move - a single move which is a two character sequence
data
public Opening data()
- Gets the opening data associated with this node.
- Returns:
- the opening data for this node
move
public String move()
- Gets the move associated with this node.
- Returns:
- the single move for this node
println
public void println()
- For debugging purposes only.