Algorithm
Development Kit 1.0

algs.debug
Interface IGraphEntity

All Known Subinterfaces:
IGameState, INode
All Known Implementing Classes:
AlphaBetaDebugNode, AlphaPrune, AugmentedNode, BalancedBinaryNode, BinaryNode, EightPuzzleNode, FifteenPuzzleNode, Legend, MinMaxNode, NegMaxNode, RightThreadedBinaryNode, ScoreNode, TicTacToeState

public interface IGraphEntity

All graphical state drawing depends on the individual nodes to be able to return a labeled string to represent itself. We distribute the logic to the individual entities themselves, which simplifies the drawing of debugging information at the expense of adding this extra method to classes which otherwise should be unaware of the debugging infrastructure.

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

Nested Class Summary
static class IGraphEntity.Formatter
          Useful Format for special characters.
 
Method Summary
 java.lang.String nodeLabel()
          Return string label for this entity.
 

Method Detail

nodeLabel

java.lang.String nodeLabel()
Return string label for this entity.


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.