edu.stanford.nlp.parser.oldparser
Class Edge

java.lang.Object
  |
  +--edu.stanford.nlp.parser.oldparser.Edge
All Implemented Interfaces:
Internable, Scored

public final class Edge
extends Object
implements Scored, Internable

Edge Class for representing the edges in a chart parser. The edges know how to add traversals and relax their scores.


Field Summary
static boolean ACTIVE
           
static Comparator cmp
           
static boolean PASSIVE
           
 
Method Summary
 boolean addTraversal(Traversal traversal)
           
 Traversal getBestTraversal()
           
 Set getContinuations()
           
 Label getLabel()
           
 DFSAState getState()
           
 List getTraversals()
           
 boolean isActive()
           
 boolean isPassive()
           
 double score()
          Return the score of this thing
 void set(Label label, DFSAState state, int start, int end, boolean active, double score)
           
 String toString()
           
 boolean weakEquals(Object o)
           
 boolean weakEqualsHelper(Edge e)
           
 int weakHashCode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ACTIVE

public static final boolean ACTIVE
See Also:
Constant Field Values

PASSIVE

public static final boolean PASSIVE
See Also:
Constant Field Values

cmp

public static Comparator cmp
Method Detail

score

public double score()
Description copied from interface: Scored
Return the score of this thing

Specified by:
score in interface Scored

set

public void set(Label label,
                DFSAState state,
                int start,
                int end,
                boolean active,
                double score)

getLabel

public Label getLabel()

getState

public DFSAState getState()

getTraversals

public List getTraversals()

addTraversal

public boolean addTraversal(Traversal traversal)

getBestTraversal

public Traversal getBestTraversal()

isActive

public boolean isActive()

isPassive

public boolean isPassive()

getContinuations

public Set getContinuations()

weakHashCode

public int weakHashCode()
Specified by:
weakHashCode in interface Internable

weakEqualsHelper

public boolean weakEqualsHelper(Edge e)

weakEquals

public boolean weakEquals(Object o)
Specified by:
weakEquals in interface Internable

toString

public String toString()
Overrides:
toString in class Object


Stanford NLP Group