public interface ITransition
Abstract representation of a model transition in the design space exploration process. See IDesignSpace
for
explanation of the general concept.
A transition
is a link between two state
s pointing from
one
to the other
.
While a transition
can be un-fired and have a null value as it's result, it is always assigned to
a state
from which it is fired.
Modifier and Type | Method and Description |
---|---|
IState |
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 . |
IState |
getResultsIn()
The
state which we will move to if this particular transition is fired in the state given by
getFiredFrom() . |
TransitionMetaData |
getTransitionMetaData()
Returns the
TransitionMetaData of this transition , which contains data like the
corresponding DSETransformationRule and the costs of the activation |
boolean |
isAssignedToFire() |
void |
setResultsIn(IState state)
Setter for the target of this
transition |
boolean |
tryToLock()
Called when the transition is assigned to fire by an exploration strategy.
|
java.lang.Object getId()
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.ITransition
.IState getResultsIn()
The state
which we will move to if this particular transition is fired in the state given by
getFiredFrom()
.
If this transition
has never been fired before, then this method returns null.
IState
instance specified above, or null.IState getFiredFrom()
The IState
which this transition
is fired from.
As opposed to getResultsIn()
this method can not return null, as any transition
has a point of origin.
IState
instance specified above. Can not be null.TransitionMetaData getTransitionMetaData()
TransitionMetaData
of this transition
, which contains data like the
corresponding DSETransformationRule
and the costs of the activationTransitionMetaData
void setResultsIn(IState state)
transition
state
- the IState
instance this transition
points toboolean isAssignedToFire()
boolean tryToLock()