public class Transition extends Coverable
Constructor and Description |
---|
Transition()
Creates a default Transition.
|
Transition(java.lang.String name)
Creates a named Transition.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other)
Reports whether this Transition is equal to another object.
|
java.lang.String |
getName()
Returns the name of a Transition.
|
java.lang.String |
getSource()
Returns the name of the source State.
|
java.lang.String |
getTarget()
Returns the name of the target State.
|
int |
hashCode()
Returns a quasi-unique hash code for this Transition.
|
Transition |
setSource(java.lang.String source)
Sets the name of the source State.
|
Transition |
setTarget(java.lang.String target)
Sets the name of the target State.
|
isCovered, setCovered
safeEquals, safeHashCode, semanticError
public Transition()
public Transition(java.lang.String name)
name
- the name of this Transition.public boolean equals(java.lang.Object other)
public int hashCode()
public java.lang.String getName()
public Transition setSource(java.lang.String source)
source
- the name of the source State.public java.lang.String getSource()
public Transition setTarget(java.lang.String target)
target
- the name of the target State.public java.lang.String getTarget()