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()
ITransitiontryToLock in interface ITransitionpublic java.lang.Object getId()
ITransitionstate 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 ITransitionITransition.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 ITransitionIState 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 ITransitionIState instance specified above. Can not be null.public boolean isAssignedToFire()
isAssignedToFire in interface ITransitionpublic TransitionMetaData getTransitionMetaData()
ITransitionTransitionMetaData of this transition, which contains data like the
corresponding DSETransformationRule and the costs of the activationgetTransitionMetaData in interface ITransitionTransitionMetaDatapublic void setResultsIn(IState state)
ITransitiontransitionsetResultsIn in interface ITransitionstate - the IState instance this transition points topublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object