Joshua
open source statistical hierarchical phrase-based machine translation system
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
joshua.lattice.Arc< Label > Class Reference
Collaboration diagram for joshua.lattice.Arc< Label >:
[legend]

List of all members.

Public Member Functions

 Arc (Node< Label > head, Node< Label > tail, double cost, Label label)
double getCost ()
Node< Label > getHead ()
Node< Label > getTail ()
Label getLabel ()
String toString ()

Package Attributes

final double cost
final Node< Label > head
final Node< Label > tail
final Label label

Detailed Description

An arc in a directed graph.

Author:
Lane Schwartz
Since:
2008-07-08
Version:
$LastChangedDate$
Parameters:
LabelType of label associated with an arc.

Constructor & Destructor Documentation

joshua.lattice.Arc< Label >.Arc ( Node< Label >  head,
Node< Label >  tail,
double  cost,
Label  label 
)

Creates an arc with the specified head, tail, cost, and label.

Parameters:
headThe node where this arc begins.
tailThe node where this arc ends.
costThe cost of this arc.
labelThe label associated with this arc.

Member Function Documentation

double joshua.lattice.Arc< Label >.getCost ( )

Gets the cost of this arc.

Returns:
The cost of this arc.
Node<Label> joshua.lattice.Arc< Label >.getHead ( )

Gets the head of this arc (the node where this arc begins).

Returns:
The head of this arc.
Label joshua.lattice.Arc< Label >.getLabel ( )

Gets the label associated with this arc.

Returns:
The label associated with this arc.
Node<Label> joshua.lattice.Arc< Label >.getTail ( )

Gets the tail of this arc (the node where this arc ends).

Returns:
The tail of this arc.
String joshua.lattice.Arc< Label >.toString ( )

Member Data Documentation

final double joshua.lattice.Arc< Label >.cost [package]

Weight of this arc. Package-private scope so that Node and Lattice can quickly access this variable.

final Node<Label> joshua.lattice.Arc< Label >.head [package]

Node where this arc begins. Package-private scope so that Node and Lattice can quickly access this variable.

final Label joshua.lattice.Arc< Label >.label [package]

Label associated with this arc. Package-private scope so that Node and Lattice can quickly access this variable.

final Node<Label> joshua.lattice.Arc< Label >.tail [package]

Node where this arc ends. Package-private scope so that Node and Lattice can quickly access this variable.