    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class JavaAgent.agent.ANSMessageHandler

    java.lang.Object
       |
       +----JavaAgent.agent.MessageHandler
               |
               +----JavaAgent.agent.ANSMessageHandler

public class ANSMessageHandler
extends MessageHandler

Subclass of MessageHandler which handles all message transmissions for an ANS.

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.

##

ANSMessageHandler(ANS)
  Creates a new ANSMessageHandler.

##

initiateTermination()
  Called when the executable class which contains the ANS terminates.
SendRemovalMessage(String, AgentAddress)
  Send Remove-address messages to all of the agents in the address buffer.

##

ANSMessageHandler

     public ANSMessageHandler(ANS parent)

  Creates a new ANSMessageHandler.

  Parameters:
    parent - ANS which this handler represents.

##

SendRemovalMessage

     public void SendRemovalMessage(String name,
                                    AgentAddress aa)

  Send Remove-address messages to all of the agents in the address buffer.

  Parameters:
    name - Agent name whose address should be removed.
    aa - The AgentAddress to remove.

initiateTermination

     public void initiateTermination()

  Called when the executable class which contains the ANS terminates. The ANS then sends a message to all of the agents in its address buffer that it is shuting down.

  Overrides:
    initiateTermination in class MessageHandler

    All Packages  Class Hierarchy  This Package  Previous  Next  Index