Class PrettyPrint

java.lang.Object
  |
  +--PrettyPrint

public class PrettyPrint
extends java.lang.Object

The class `PrettyPrint' encapsulates the algorithm for generating textual descriptions of frames (particularly HLCs).


Constructor Summary
PrettyPrint(CaseLibrary prettyPrintCaseLibrary)
          Constructs an instance of PrettyPrint with a given pretty-print case library.
 
Method Summary
 java.lang.String generateDescription(Frame HLC, boolean tag)
          Generates a natural language description for a given HLC.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrettyPrint

public PrettyPrint(CaseLibrary prettyPrintCaseLibrary)
Constructs an instance of PrettyPrint with a given pretty-print case library.
Parameters:
prettyPrintCaseLibrary - The pretty-print case library.
Method Detail

generateDescription

public java.lang.String generateDescription(Frame HLC,
                                            boolean tag)
Generates a natural language description for a given HLC. Sets the description slot of the HLC frame if the second parameter is true.
Parameters:
HLC - The frame representing the HLC.
tag - Whether to set the frame's description slot.
Returns:
A natural language description of the HLC.