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