de.fhg.igd.jhsm
Interface Transition

All Superinterfaces:
Component
All Known Implementing Classes:
HSMTransition

public interface Transition
extends Component

"A transition is a relationship between two states indicating that an object in the first state will perform certain actions and enter the second state when a specified event occurs and specified conditions are satisfied. On such a change of state a transition is said to fire. Until a transition fires it is said to be in source state; after it fires it is said to be in target state." - Booch et al, The UML User Guide.

Version:
"$Id: Transition.java 1913 2007-08-08 02:41:53Z jpeters $"
Author:
Jan Haevecker
See Also:
Condition, Event

Method Summary
 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 setTarget(State target)
          Set's the target state of the transition.
 void setTriggerEvent(Event triggerEvent)
          Setter for property triggerEvent.
 
Methods inherited from interface de.fhg.igd.jhsm.Component
action, getAction, getName, getParent, setAction, setName, setParent
 

Method Detail

guard

public boolean guard(Context context)
Checks if the guard condition is met.

Parameters:
context - Used to publish and retrieve global data.

hasInterest

public boolean hasInterest(Event event)
Checks if a given event is a trigger for the transition.


isTriggerless

public boolean isTriggerless()
Checks if the transition is triggerless.

Returns:
true if the transition has no trigger event, false if it has one.

getTarget

public State getTarget()
Returns the target state of the transition.


setTarget

public void setTarget(State target)
Set's the target state of the transition.


getGuardCondition

public Condition getGuardCondition()
Getter for property guardCondition.

Returns:
Value of property guardCondition.

setGuardCondition

public void setGuardCondition(Condition guardCondition)
Setter for property guardCondition.

Parameters:
guardCondition - New value of property guardCondition.

getTriggerEvent

public Event getTriggerEvent()
Getter for property triggerEvent.

Returns:
Value of property triggerEvent.

setTriggerEvent

public void setTriggerEvent(Event triggerEvent)
Setter for property triggerEvent.

Parameters:
triggerEvent - New value of property triggerEvent.


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.