Class JavaAgent.context.ANSContext
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JavaAgent.context.ANSContext

java.lang.Object
   |
   +----JavaAgent.context.AgentContext
           |
           +----JavaAgent.context.SocketContext
                   |
                   +----JavaAgent.context.ANSContext

public class ANSContext
extends SocketContext
Subclass of SocketContext which creates 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.



Constructor Index

 o ANSContext(SocketParams)
Sets the parameters and creates the CommInterface, represented Agent and possibly the AgentFrame.

Method Index

 o addAgent()
Creates the ANS object.
 o createCommInterface()
Creates a SocketInterface for the ANS, uses the address contained in the initialization file.
 o hostMatch(SocketAddress)
Checks to see if the current host is the same as the host listed in the init file.
 o main(String[])
Called if the ANSContext is started as an application from the command line.

Constructors

 o ANSContext
  public ANSContext(SocketParams params)
Sets the parameters and creates the CommInterface, represented Agent and possibly the AgentFrame.
Parameters:
params - Runtime parameters for the AgentContext.

Methods

 o addAgent
  protected boolean addAgent()
Creates the ANS object.
Overrides:
addAgent in class SocketContext
 o createCommInterface
  protected void createCommInterface()
Creates a SocketInterface for the ANS, uses the address contained in the initialization file.
Overrides:
createCommInterface in class SocketContext
 o hostMatch
  protected boolean hostMatch(SocketAddress sa)
Checks to see if the current host is the same as the host listed in the init file.
Parameters:
sa - SocketAddress listed in the init_file.
 o main
  public static void main(String arg[])
Called if the ANSContext is started as an application from the command line. Command line args:

Parameters:
arg - Array of command line arguments.

All Packages  Class Hierarchy  This Package  Previous  Next  Index