Algorithm
Development Kit 1.0

algs.model.gametree.debug
Class ScoreNode

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

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

This node is used when depicting debugging information about the score assigned to a node.

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
ScoreNode(int sc)
          Construct a ScoreNode in the visualization to represent scored node.
 
Method Summary
 java.lang.String fontName()
          To properly draw Infinity symbols in symbol font.
 int fontSize()
          Default font size to use is ok.
 java.lang.String nodeLabel()
          Label for this node encodes the score.
 int score()
          Return the score for this node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScoreNode

public ScoreNode(int sc)
Construct a ScoreNode in the visualization to represent scored node.

Parameters:
sc - score
Method Detail

score

public int score()
Return the score for this node.


nodeLabel

public java.lang.String nodeLabel()
Label for this node encodes the score.

Specified by:
nodeLabel in interface IGraphEntity

fontName

public java.lang.String fontName()
To properly draw Infinity symbols 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.