examples.wslauncher3
Class AgentBehaviour2

java.lang.Object
  extended byde.fhg.igd.jhsm.AbstractComponent
      extended byde.fhg.igd.jhsm.HSMState
          extended byde.fhg.igd.jhsm.HSM
              extended byexamples.wslauncher3.AgentBehaviour2
All Implemented Interfaces:
Component, CompositeState, Serializable, State

public class AgentBehaviour2
extends HSM

An HSM Agent. Looks for list of other servers and jumps to the first one on the list. There it calls the IhkWebservice. Then it returns home and calls the method 'response' of the delegation service.

 HSM:
 ----
 initial --> --> homeaddr --> destaddr --> nextaddr ....> webservice -+
                                  |                                   |
                                 	|                                   |
 finish <........ gohome <--------+-----------------------------------+
 
This agent must be granted the following rights:

Version:
$Id: AgentBehaviour2.java 1913 2007-08-08 02:41:53Z jpeters $
Author:
C. Nickel
See Also:
Serialized Form

Nested Class Summary
private  class AgentBehaviour2.CallWebserviceAction
          This action calls the IhkWebservice
private  class AgentBehaviour2.ResponseAction
          This action invokes the method 'response' of the DelegationService.
 
Field Summary
private static String CTX_ANSW
           
private static String CTX_DESTINATIONS
           
private static String CTX_HOME
          Keys for the context of the state machine.
private static Logger log_
          The Logger instance for this class
private static String PROTOCOL
          Prefered migration protocol
 
Fields inherited from class de.fhg.igd.jhsm.HSM
 
Fields inherited from class de.fhg.igd.jhsm.HSMState
 
Fields inherited from class de.fhg.igd.jhsm.AbstractComponent
 
Constructor Summary
AgentBehaviour2()
          Constructs the state machine for this agent behaviour.
 
Methods inherited from class de.fhg.igd.jhsm.HSM
action, addState, contains, entry, exit, getInitialState, getStates, removeState, setInitialState
 
Methods inherited from class de.fhg.igd.jhsm.HSMState
action, addDeferred, addTransition, defers, getDeferred, getTransitions, removeDeferred, removeTransition, setEntry, setExit
 
Methods inherited from class de.fhg.igd.jhsm.AbstractComponent
getAction, getName, getParent, setAction, setName, setParent, toString
 
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.State
addDeferred, addTransition, defers, getDeferred, getTransitions, removeDeferred, removeTransition, setEntry, setExit
 
Methods inherited from interface de.fhg.igd.jhsm.Component
action, getAction, getName, getParent, setAction, setName, setParent
 

Field Detail

log_

private static Logger log_
The Logger instance for this class


CTX_HOME

private static final String CTX_HOME
Keys for the context of the state machine. This context is a global data repository for information sharing between states.

See Also:
Constant Field Values

CTX_DESTINATIONS

private static final String CTX_DESTINATIONS
See Also:
Constant Field Values

CTX_ANSW

private static final String CTX_ANSW
See Also:
Constant Field Values

PROTOCOL

private static final String PROTOCOL
Prefered migration protocol

See Also:
Constant Field Values
Constructor Detail

AgentBehaviour2

public AgentBehaviour2()
Constructs the state machine for this agent behaviour.



Copyright © Fraunhofer Gesellschaft. All Rights Reserved.