|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectde.pado.dv.Edge
public class Edge
This class models an edge of a parse tree, that is an edge between two Nodes with a String label called relation.
| Constructor Summary | |
|---|---|
Edge(Node fromNode,
Node toNode,
java.lang.String relation)
Constructs an edge from two nodes an a label (relation). |
|
| Method Summary | |
|---|---|
Node |
getFromNode()
Get the node object at which the edge starts |
java.lang.String |
getRelation()
Get the relation with which the edge is labelled |
Node |
getToNode()
Get the node object at which the edge ends |
Edge |
invert()
Returns a new edge which has the start and end nodes inversed. |
boolean |
matches(Edge e)
Checks if two edges match. |
java.lang.String |
toString()
Returns a string representation of the edge (equivalent to the edge part of a path specification) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Edge(Node fromNode,
Node toNode,
java.lang.String relation)
| Method Detail |
|---|
public Node getFromNode()
public Node getToNode()
public java.lang.String getRelation()
public java.lang.String toString()
toString in class java.lang.Objectpublic Edge invert()
public boolean matches(Edge e)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||