public class Transition extends Object implements Serializable, Comparable<Transition>
Constructor and Description |
---|
Transition()
Default constructor.
|
Transition(BasicPatternElement constraints,
State state)
Creates a new transition using the given set of constraints and target
state.
|
Transition(BasicPatternElement constraints,
State state,
List<String> bindings)
Creates a new transition from a set of constraints, a target state and a
list of labels to be bound with the recognized input symbols
(aka annotations).
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Transition t) |
List<String> |
getBindings()
Returns the list of bindings associated to this transition
|
BasicPatternElement |
getConstraints()
Gets the constraints associated to this transition
|
State |
getTarget()
Gets the target state of this transition
|
boolean |
hasConstraints()
Returns a boolean value indicating whether this Transition
has any constraints on it.
|
boolean |
isMultiType()
Returns a boolean value indicating whether this Transition
deals with multiple types of annotations.
|
boolean |
satisfiedBy(Annotation[] coIncidentAnnos)
Returns true if all the constraints on this transition are satisfied
by the given Annotations, false otherwise.
|
String |
shortDesc()
Returns a shorter description that toSting().
|
Transition |
spawn(State s)
Creates a new transition to the given State with the same
bindings as this one.
|
String |
toString()
Returns a textual desciption of this transition.
|
String |
toString(boolean includeTarget) |
public Transition()
public Transition(BasicPatternElement constraints, State state)
constraints
- the set on constraints associated to this transitionstate
- the target state of this transitionpublic Transition(BasicPatternElement constraints, State state, List<String> bindings)
public Transition spawn(State s)
public State getTarget()
public BasicPatternElement getConstraints()
public boolean hasConstraints()
public boolean satisfiedBy(Annotation[] coIncidentAnnos)
public boolean isMultiType()
public String shortDesc()
public List<String> getBindings()
public int compareTo(Transition t) throws ClassCastException
compareTo
in interface Comparable<Transition>
ClassCastException