examples.guestbook
Class AgentBehaviour.GuestbookAction
java.lang.Object
de.fhg.igd.jhsm.AbstractAction
examples.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.
|
Method Summary |
void |
perform(Context context)
This method adds an entry to the guestbook service of the local host. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
message_
private String message_
AgentBehaviour.GuestbookAction
public AgentBehaviour.GuestbookAction(String message)
- Constructor.
- Parameters:
message - the message that will be written to the guestbooks.
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.