Joshua
open source statistical hierarchical phrase-based machine translation system
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
joshua.ui.tree_visualizer.Node Class Reference

List of all members.

Public Member Functions

 Node (String label, boolean isSource)
String toString ()

Public Attributes

final String label
final boolean isSource
boolean isHighlighted = false

Detailed Description

A representation of a node in a derivation tree. The derivation tree class itself is parameterized in terms of this class and the DerivationEdge class. A Node may represent either a non-terminal symbol or one or more terminal symbols of the derivation.


Constructor & Destructor Documentation

joshua.ui.tree_visualizer.Node.Node ( String  label,
boolean  isSource 
)

Constructor used for root nodes or nodes whose parent is not given.

Parameters:
labela String that represents the symbols at this node
isSourcea boolean saying whether this is a source-side node

Member Function Documentation


Member Data Documentation

A boolean to let the renderer know whether this vertex is highlighted.

Indicates whether this node is part of the source-side of target- side derivation tree.

The label to be shown on the node. If the node is a non-terminal symbol, it is the name of the symbol. Otherwise, it is terminal symbols joined with spaces.