public class Transition extends java.lang.Object implements java.lang.Comparable<Transition>
SH, RE and the labeled transitionRA, LA. These
transition will be four individual transition.| Constructor and Description |
|---|
Transition(int code,
java.lang.String symbol,
boolean labeled)
Creates a transition
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Transition that) |
boolean |
equals(java.lang.Object obj) |
int |
getCode()
Returns the transition code
|
java.lang.String |
getSymbol()
Returns the transition symbol
|
int |
hashCode() |
boolean |
isLabeled()
Returns true if the transition is labeled, otherwise false
|
java.lang.String |
toString() |
public Transition(int code, java.lang.String symbol, boolean labeled)
code - Transition codesymbol - Transition namelabeled - true if the transition is labeled, otherwise falsepublic int getCode()
public java.lang.String getSymbol()
public boolean isLabeled()
true if the transition is labeled, otherwise falsepublic int compareTo(Transition that)
compareTo in interface java.lang.Comparable<Transition>public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.