|
Algorithm Development Kit 1.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectalgs.model.gametree.debug.AlphaBetaDebugNode
public class AlphaBetaDebugNode
This node is used when depicting debugging information about an Alpha/Beta node in the game tree path finding search.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface algs.debug.IGraphEntity |
---|
IGraphEntity.Formatter |
Constructor Summary | |
---|---|
AlphaBetaDebugNode(int alpha,
int beta)
Represent a node in the search for a solution in alpha beta. |
Method Summary | |
---|---|
AlphaBetaDebugNode |
copy()
Generate copy of this node. |
int |
counter()
Retrieve the unique identifier for this node. |
java.lang.String |
fontName()
To properly draw Alpha/Beta in symbol font. |
int |
fontSize()
Default font size to use is ok. |
java.lang.String |
nodeLabel()
Compute label for Dotty output. |
java.lang.String |
toString()
Reasonable toString() method for debugging. |
int |
value()
Retrieve value for node computed so far. |
void |
value(int v)
Set the value for this node based upon computation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AlphaBetaDebugNode(int alpha, int beta)
alpha
- known lower bound for game tree nodebeta
- known upper bound for game tree nodeMethod Detail |
---|
public int value()
Primarily here for testing
public void value(int v)
Once invoked, the 'set' field changes and the value becomes part of the visualization.
v
- computed score value for node.public int counter()
public AlphaBetaDebugNode copy()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String nodeLabel()
nodeLabel
in interface IGraphEntity
public java.lang.String fontName()
fontName
in interface ISelectFont
public int fontSize()
fontSize
in interface ISelectFont
|
Algorithm Development Kit 1.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |