|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.tuebingen.uni.sfs.germanet.relatedness.PathNode
public class PathNode
Represents a node in the path from one node to the root. As such, it holds the synset and a counter (distance to the starting point, below).
Field Summary | |
---|---|
int |
index
|
de.tuebingen.uni.sfs.germanet.api.Synset |
synset
|
Constructor Summary | |
---|---|
PathNode(de.tuebingen.uni.sfs.germanet.api.Synset s)
Constructor taking a synset; sets starting index to 1. |
|
PathNode(de.tuebingen.uni.sfs.germanet.api.Synset s,
int i)
Constructor taking a synset and staring index. |
Method Summary | |
---|---|
int |
compareTo(PathNode pn)
Makes this object comparable. |
boolean |
equals(PathNode pn)
Equals method designed towards testing equality on the path. |
java.lang.String |
toString()
String representation of this PathNode object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final de.tuebingen.uni.sfs.germanet.api.Synset synset
public final int index
Constructor Detail |
---|
public PathNode(de.tuebingen.uni.sfs.germanet.api.Synset s, int i)
s
- This synset.i
- distance to the starting point (below)public PathNode(de.tuebingen.uni.sfs.germanet.api.Synset s)
s
- This synset.Method Detail |
---|
public boolean equals(PathNode pn)
pn
- other PathNode.
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(PathNode pn)
compareTo
in interface java.lang.Comparable<PathNode>
pn
- other PathNode object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |