Class semper.comm.ComManager
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.comm.ComManager

java.lang.Object
   |
   +----semper.comm.ComManager

public class ComManager
extends Object
implements ComPointConstants
Defines a class for registering the ComPoint classes of the communication schemes, such as ComPointTCP. It provides class methods for creating ComPoints, where the ComPoint class is tranparently selected based on the address protocol field.
Version:
beta-4, 12.8.96
Author:
Mehdi Nassehi

Constructor Index

 o ComManager()

Method Index

 o comPoint(int, ComPointAddress)
Creats an initiator or a server ComPoint.
 o init()
Initializes the module.
 o isInitialized()
Check whether the module is initialized.

Constructors

 o ComManager
  public ComManager()

Methods

 o init
  public static void init() throws ComPointException
Initializes the module.
Throws: ComPointException
if error while opening socket.
 o isInitialized
  public static boolean isInitialized()
Check whether the module is initialized.
Returns:
true if and only if fully initialized;
 o comPoint
  public static ComPoint comPoint(int type,
                                  ComPointAddress address) throws ComPointException
Creats an initiator or a server ComPoint.
Parameters:
type - type of ComPoint to be created; only Initiator and Server allowed.
address - in the case of the Initiator ComPoint, the remote address and, in the case of the Server ComPoint, the local address.
Throws: ComPointException
Error when invoking the protocol-specific ComPoint constructor.

All Packages  Class Hierarchy  This Package  Previous  Next  Index