Class JavaAgent.agent.CommInterface
All Packages Class Hierarchy This Package Previous Next Index
Class JavaAgent.agent.CommInterface
java.lang.Object
|
+----JavaAgent.agent.CommInterface
- public class CommInterface
- extends Object
Abstract class which provides an interface between an Agent
and the actual
mechanisms used for message passing. Allows the agent to send messages and
informs the agent when messages have been recieved. When a message is
received, the CommInterface must parse the message
to create a KQMLmessage object and then call the
receiveMessage() method of the Agent.
When the Agent calls the
sendMessage() method of the CommInterace, the CommInterface will attempt
to send the message and call the Agents's sendResult() method to
report the success or failure of the transmission.
Copyright (c) 1995, H. Robert Frost, Stanford University.
All rights reserved.
Copyright (c) 1996, H. Robert Frost, Enterprise Integration Technologies,
Inc. All rights reserved.
RESTRICTED RIGHTS LEGEND: Use, duplication or disclosure by the
Government is subject to restrictions as set forth in
subparagraph(c)(1)(ii) of the Rights in Technical Data and Computer
Software clause at DFARS 252.227-7013 and in similar clauses in the
FAR and NASA FAR supplement.
This software is bound by the terms and conditions listed in the
attached LICENSE file.
-
parent
-
-
CommInterface(Agent)
- Contructs a CommInterace for a specific Agent.
-
disconnect()
- Called by the Agent to disconnect the CommInterface.
-
sendMessage(KQMLmessage)
- Called to send a given KQMLmessage.
parent
protected Agent parent
CommInterface
public CommInterface(Agent A)
- Contructs a CommInterace for a specific Agent.
- Parameters:
- A - Agent which this CommInterface represents.
sendMessage
protected abstract void sendMessage(KQMLmessage message)
- Called to send a given KQMLmessage. Actual mechanism must be
implemented separately.
- Parameters:
- message - The KQMLmessage to send.
disconnect
protected abstract void disconnect()
- Called by the Agent to disconnect the CommInterface.
All Packages Class Hierarchy This Package Previous Next Index