examples.guestbook
Class AgentBehaviour.GuestbookAction

java.lang.Object
  extended byde.fhg.igd.jhsm.AbstractAction
      extended byexamples.guestbook.AgentBehaviour.GuestbookAction
All Implemented Interfaces:
Action, Serializable
Enclosing class:
AgentBehaviour

private class AgentBehaviour.GuestbookAction
extends AbstractAction

This action adds a predefined entry to the guestbook of the local host.


Field Summary
private  String message_
           
 
Fields inherited from class de.fhg.igd.jhsm.AbstractAction
 
Constructor Summary
AgentBehaviour.GuestbookAction(String message)
          Constructor.
 
Method Summary
 void perform(Context context)
          This method adds an entry to the guestbook service of the local host.
 
Methods inherited from class de.fhg.igd.jhsm.AbstractAction
getParent, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

message_

private String message_
Constructor Detail

AgentBehaviour.GuestbookAction

public AgentBehaviour.GuestbookAction(String message)
Constructor.

Parameters:
message - the message that will be written to the guestbooks.
Method Detail

perform

public void perform(Context context)
This method adds an entry to the guestbook service of the local host. Thatfor it retrieves the service object from the Environment and invokes GuestbookService.addEntry(String).

Parameters:
context - context of the hierarchical state machine for information exchange between different states.
See Also:
GuestbookService.addEntry(String), Action.perform(Context)


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.