public class Transition extends java.lang.Object implements ITransition
ITransition
interface in the POJO based
IDesignSpace
implementation.Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
State |
getFiredFrom()
The
IState which this transition is fired from. |
java.lang.Object |
getId()
Every
state has a unique id with regards to the state they are linked to, that
was generated by an IStateCoder . |
State |
getResultsIn()
The
state which we will move to if this particular transition is fired in the state given by
ITransition.getFiredFrom() . |
TransitionMetaData |
getTransitionMetaData()
Returns the
TransitionMetaData of this transition , which contains data like the
corresponding DSETransformationRule and the costs of the activation |
int |
hashCode() |
boolean |
isAssignedToFire() |
void |
setResultsIn(IState state)
Setter for the target of this
transition |
java.lang.String |
toString() |
boolean |
tryToLock()
Called when the transition is assigned to fire by an exploration strategy.
|
public boolean tryToLock()
ITransition
tryToLock
in interface ITransition
public java.lang.Object getId()
ITransition
state
has a unique id with regards to the state
they are linked to, that
was generated by an IStateCoder
. An attempt to add a different state
to a given state
with the same id will be ignored. See
IDesignSpace.addState(ITransition, Object, java.util.Map)
and
IStateCoder.createActivationCode(IPatternMatch)
for more details.getId
in interface ITransition
ITransition
.public State getResultsIn()
ITransition
The state
which we will move to if this particular transition is fired in the state given by
ITransition.getFiredFrom()
.
If this transition
has never been fired before, then this method returns null.
getResultsIn
in interface ITransition
IState
instance specified above, or null.public State getFiredFrom()
ITransition
The IState
which this transition
is fired from.
As opposed to ITransition.getResultsIn()
this method can not return null, as any transition
has a point of origin.
getFiredFrom
in interface ITransition
IState
instance specified above. Can not be null.public boolean isAssignedToFire()
isAssignedToFire
in interface ITransition
public TransitionMetaData getTransitionMetaData()
ITransition
TransitionMetaData
of this transition
, which contains data like the
corresponding DSETransformationRule
and the costs of the activationgetTransitionMetaData
in interface ITransition
TransitionMetaData
public void setResultsIn(IState state)
ITransition
transition
setResultsIn
in interface ITransition
state
- the IState
instance this transition
points topublic java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object