Algorithm
Development Kit 1.0

algs.model.gametree.debug
Class NegMaxNode

java.lang.Object
  extended by algs.model.gametree.debug.NegMaxNode
All Implemented Interfaces:
IGraphEntity, ISelectFont

public class NegMaxNode
extends java.lang.Object
implements IGraphEntity, ISelectFont

Represents a NegMax node in the debugging output.

Since:
1.0
Version:
1.0, 6/15/08
Author:
George Heineman

Nested Class Summary
 
Nested classes/interfaces inherited from interface algs.debug.IGraphEntity
IGraphEntity.Formatter
 
Constructor Summary
NegMaxNode()
           
 
Method Summary
 java.lang.String fontName()
          To properly draw Negmax node in symbol font.
 int fontSize()
          Default font size to use is ok.
 java.lang.String nodeLabel()
          Return node label that properly shows value.
 int value()
          Return the computed value.
 void value(int value)
          Set the computed value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NegMaxNode

public NegMaxNode()
Method Detail

value

public int value()
Return the computed value.


value

public void value(int value)
Set the computed value.


nodeLabel

public java.lang.String nodeLabel()
Return node label that properly shows value.

Specified by:
nodeLabel in interface IGraphEntity

fontName

public java.lang.String fontName()
To properly draw Negmax node in symbol font.

Specified by:
fontName in interface ISelectFont

fontSize

public int fontSize()
Default font size to use is ok.

Specified by:
fontSize in interface ISelectFont

Algorithm Development Kit 1.0

This code supports the Algorithms in a Nutshell book, published by O'Reilly Media, Inc. in November 2008. Please visit the book web page to learn of any changes to the code repository or to record a potential defect.