org.maltparser.core.syntaxgraph.edge
Class WeightedEdge
java.lang.Object
   java.util.Observable
java.util.Observable
       org.maltparser.core.syntaxgraph.GraphElement
org.maltparser.core.syntaxgraph.GraphElement
           org.maltparser.core.syntaxgraph.edge.GraphEdge
org.maltparser.core.syntaxgraph.edge.GraphEdge
               org.maltparser.core.syntaxgraph.edge.WeightedEdge
org.maltparser.core.syntaxgraph.edge.WeightedEdge
- All Implemented Interfaces: 
- Comparable<GraphEdge>, Edge, Element, Weightable
- public class WeightedEdge 
- extends GraphEdge- implements Weightable
- Author:
- Johan Hall
 
 
 
 
 
| Methods inherited from class org.maltparser.core.syntaxgraph.GraphElement | 
| addLabel, addLabel, addLabel, compareTo, getBelongsToGraph, getLabelCode, getLabelSet, getLabelSymbol, getLabelTypes, hasLabel, isLabeled, nLabels, removeLabel, removeLabels, setBelongsToGraph | 
 
 
 
| Methods inherited from interface org.maltparser.core.syntaxgraph.Element | 
| addLabel, addLabel, addLabel, getBelongsToGraph, getLabelCode, getLabelSet, getLabelSymbol, getLabelTypes, hasLabel, isLabeled, nLabels, removeLabel, removeLabels, setBelongsToGraph | 
 
WeightedEdge
public WeightedEdge()
WeightedEdge
public WeightedEdge(Node source,
                    Node target,
                    int type)
             throws MaltChainedException
- Throws:
- MaltChainedException
WeightedEdge
public WeightedEdge(Node source,
                    Node target,
                    int type,
                    Double weight)
             throws MaltChainedException
- Throws:
- MaltChainedException
clear
public void clear()
           throws MaltChainedException
- Description copied from class: GraphElement
- Resets the graph element.
 
- 
- Specified by:
- clearin interface- Element
- Overrides:
- clearin class- GraphEdge
 
- 
- Throws:
- MaltChainedException
 
getWeight
public double getWeight()
- 
- Specified by:
- getWeightin interface- Weightable
 
- 
 
setWeight
public void setWeight(double weight)
- 
- Specified by:
- setWeightin interface- Weightable
 
- 
 
compareTo
public int compareTo(WeightedEdge that)
- 
 
- 
 
equals
public boolean equals(Object obj)
- 
- Overrides:
- equalsin class- GraphEdge
 
- 
 
hashCode
public int hashCode()
- 
- Overrides:
- hashCodein class- GraphEdge
 
- 
 
toString
public String toString()
- 
- Overrides:
- toStringin class- GraphEdge
 
- 
 
Copyright 2007-2010 Johan Hall, Jens Nilsson and Joakim Nivre.