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.



Variable Index

 o parent

Constructor Index

 o CommInterface(Agent)
Contructs a CommInterace for a specific Agent.

Method Index

 o disconnect()
Called by the Agent to disconnect the CommInterface.
 o sendMessage(KQMLmessage)
Called to send a given KQMLmessage.

Variables

 o parent
  protected Agent parent

Constructors

 o CommInterface
  public CommInterface(Agent A)
Contructs a CommInterace for a specific Agent.
Parameters:
A - Agent which this CommInterface represents.

Methods

 o 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.
 o disconnect
  protected abstract void disconnect()
Called by the Agent to disconnect the CommInterface.

All Packages  Class Hierarchy  This Package  Previous  Next  Index