fipaos.mts.iiop.sun.external
Class SUNIIOPComms

fipaos.mts.MTPBase
  |
  +--fipaos.mts.ExternalMTPBase
        |
        +--fipaos.mts.iiop.sun.external.SUNIIOPComms

public class SUNIIOPComms
extends ExternalMTPBase

SUNIIOPComms uses jdk1.2's IDL classes to provide a FIPA99 Structured IIOP interface for Agent communications.

$Revision: 1.9 $ $Date: 2001/03/11 21:06:28 $ $Author: alantreadway $


Inner Class Summary
 public classSUNIIOPComms.MTSListener
          Listener class for the MTS

Fields inherited from class fipaos.mts.MTPBase
_shutdown, ACC_NAME

Constructor Summary
SUNIIOPComms(String our_name, URL ns_url)
          Comms initialiser

Method Summary
 fipaos.util.URLgetAddress()
          Method to retreive the protocol dependant address of an object that can be used to receive messages.
 ListgetProtocols()
          Retreives the protocols known by this comms implementation
 voidhandleMessage(fipaos.mts.iiop.sun.external.FIPA.FipaMessage msg)
          Handle incoming messages
 static voidmain(String[] args)
          Test harness for transport Use java fipaos.comm.sunidl.SUNIDLComms /? for usage details
 voidshutdown()
          This should be invoked when the transport should be safely shutdown

Methods inherited from class fipaos.mts.ExternalMTPBase
incoming, initialise, outgoing

Constructor Detail

SUNIIOPComms

public SUNIIOPComms(String our_name, URL ns_url)
throws fipaos.mts.InitialisationException
Comms initialiser
Parameters:
our_name - The name of the Agent
ns_url - URL for the transport
Method Detail

getAddress

public fipaos.util.URL getAddress()
Method to retreive the protocol dependant address of an object that can be used to receive messages.
Returns: A String containing the required address, or null if this Comms doesn't publish such an object

getProtocols

public List getProtocols()
Retreives the protocols known by this comms implementation
Returns: A List of String's

handleMessage

public void handleMessage(fipaos.mts.iiop.sun.external.FIPA.FipaMessage msg)
Handle incoming messages

main

public static void main(String[] args)
throws java.lang.Exception
Test harness for transport Use java fipaos.comm.sunidl.SUNIDLComms /? for usage details

shutdown

public void shutdown()
This should be invoked when the transport should be safely shutdown

Association Links

to Class java.lang.String

Transport specific protocol type

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String

to Class fipaos.util.URL

URL for this transport

to Class org.omg.CORBA.ORB

Reference to the ORB

to Class org.omg.CosNaming.NamingContext

Root naming context

to Class fipaos.mts.iiop.sun.external.FIPA.MTS

Reference to our proxy