|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectHalfEdge
This class implements half-edges which are either unary, i.e. a state or binary, i.e. a pair formed by a word and a state or ternary, i.e. triples of two words (input and output) and a state.
| Constructor Summary | |
HalfEdge(int q)
Creates a unary half-edge. |
|
HalfEdge(java.lang.String s,
int q)
Creates a binary half-edge. |
|
HalfEdge(java.lang.String s,
java.lang.String t,
int q)
Creates a ternary half-egde. |
|
| Method Summary | |
int |
compareTo(java.lang.Object o)
Overrides the method Object.compareTo. |
boolean |
equals(java.lang.Object o)
Overrides the method Object.hashCode. |
int |
hashCode()
Overrides the method Object.hashCode. |
java.lang.String |
toString()
Overrides the method toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public HalfEdge(int q)
public HalfEdge(java.lang.String s,
int q)
public HalfEdge(java.lang.String s,
java.lang.String t,
int q)
| Method Detail |
public int compareTo(java.lang.Object o)
Object.compareTo. Orders the half-edges
lexicographically first by end, then by input label and last
by output label.
compareTo in interface java.lang.Comparablepublic boolean equals(java.lang.Object o)
Object.hashCode.
public int hashCode()
Object.hashCode. The hashcode of a half-edge
is end if there are no labels.
hashcode(label1) + end if there is one label.
hashcode(label1) + hashcode(label2) + end
if there are two labels.
public java.lang.String toString()
toString
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||