|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.fhg.igd.jhsm.AbstractComponent de.fhg.igd.jhsm.HSMTransition
A generic transition.
Field Summary | |
private Condition |
condition_
|
private static Logger |
LOG
|
private State |
target_
|
private Event |
trigger_
|
Fields inherited from class de.fhg.igd.jhsm.AbstractComponent |
|
Constructor Summary | |
HSMTransition()
|
|
HSMTransition(State target)
Creates a triggerless and guardless transition. |
|
HSMTransition(State target,
Condition guard)
Creates a triggerless transition. |
|
HSMTransition(State target,
Condition guard,
Event trigger)
Transition with trigger event and guard condition. |
|
HSMTransition(State target,
Event trigger)
Guardless transition with trigger event. |
|
HSMTransition(State source,
State target)
Creates a triggerless and guardless transition. |
|
HSMTransition(State source,
State target,
Condition guard)
Creates a triggerless transition. |
|
HSMTransition(State source,
State target,
Condition guard,
Event trigger)
Transition with trigger event and guard condition. |
|
HSMTransition(State source,
State target,
Event trigger)
Guardless transition with trigger event. |
Method Summary | |
void |
action(Context context)
Performs the component's action in a specified context . |
Condition |
getGuardCondition()
Getter for property guardCondition. |
State |
getTarget()
Returns the target state of the transition. |
Event |
getTriggerEvent()
Getter for property triggerEvent. |
boolean |
guard(Context context)
Checks if the guard condition is met. |
boolean |
hasInterest(Event event)
Checks if a given event is a trigger for the transition. |
boolean |
isTriggerless()
Checks if the transition is triggerless. |
void |
setGuardCondition(Condition guardCondition)
Setter for property guardCondition. |
void |
setParent(State parent)
|
void |
setTarget(State target)
Set's the target state of the transition. |
void |
setTriggerEvent(Event triggerEvent)
Setter for property triggerEvent. |
String |
toString()
|
Methods inherited from class de.fhg.igd.jhsm.AbstractComponent |
getAction, getName, getParent, setAction, setName, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface de.fhg.igd.jhsm.Component |
getAction, getName, getParent, setAction, setName, setParent |
Field Detail |
private static final Logger LOG
private State target_
private Condition condition_
private Event trigger_
Constructor Detail |
public HSMTransition()
public HSMTransition(State target)
public HSMTransition(State source, State target)
public HSMTransition(State target, Condition guard)
public HSMTransition(State source, State target, Condition guard)
public HSMTransition(State target, Event trigger)
public HSMTransition(State source, State target, Event trigger)
public HSMTransition(State target, Condition guard, Event trigger)
public HSMTransition(State source, State target, Condition guard, Event trigger)
Method Detail |
public void action(Context context)
Component
context
.
This is the hook for the interpreter.
action
in interface Component
context
- Used to publish and retrieve data for/from other actions.public boolean guard(Context context)
Transition
guard
in interface Transition
context
- Used to publish and retrieve global data.public boolean hasInterest(Event event)
Transition
hasInterest
in interface Transition
public boolean isTriggerless()
Transition
isTriggerless
in interface Transition
true
if the transition has no trigger event,
false
if it has one.public String toString()
toString
in class AbstractComponent
public void setParent(State parent)
public void setTarget(State target)
Transition
setTarget
in interface Transition
public State getTarget()
Transition
getTarget
in interface Transition
public void setGuardCondition(Condition guardCondition)
Transition
setGuardCondition
in interface Transition
guardCondition
- New value of property guardCondition.public void setTriggerEvent(Event triggerEvent)
Transition
setTriggerEvent
in interface Transition
triggerEvent
- New value of property triggerEvent.public Condition getGuardCondition()
Transition
getGuardCondition
in interface Transition
public Event getTriggerEvent()
Transition
getTriggerEvent
in interface Transition
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |