de.fhg.igd.jhsm
Interface Component

All Known Subinterfaces:
CompositeState, State, Transition
All Known Implementing Classes:
AbstractComponent, HSM, HSMState, HSMTransition

public interface Component

This is the base interface for all parts of the hsm hierarchy.

Version:
"$Id: Component.java 1913 2007-08-08 02:41:53Z jpeters $"
Author:
Jan Haevecker

Method Summary
 void action(Context context)
          Performs the component's action in a specified context.
 Action getAction()
          Returns the action associated with this component.
 String getName()
          Returns the name of the component.
 Component getParent()
          Returns the parent component.
 void setAction(Action action)
          Assiociates an action with the component.
 void setName(String name)
          Set's the name of the component.
 void setParent(Component parent)
          Sets the parent component.
 

Method Detail

action

public void action(Context context)
Performs the component's action in a specified context. This is the hook for the interpreter.

Parameters:
context - Used to publish and retrieve data for/from other actions.

setName

public void setName(String name)
Set's the name of the component. This is for debugging purposes only, the name is not part of the hsm semantic.


getName

public String getName()
Returns the name of the component. This is for debugging purposes only, the name is not part of the hsm semantic.


getAction

public Action getAction()
Returns the action associated with this component.


setAction

public void setAction(Action action)
Assiociates an action with the component.

Parameters:
action - The action that should be executed by the component.

getParent

public Component getParent()
Returns the parent component.


setParent

public void setParent(Component parent)
Sets the parent component.



Copyright © Fraunhofer Gesellschaft. All Rights Reserved.