edu.UCL.xmiddle.lib.protocols
Class Linking

java.lang.Object
  |
  +--edu.UCL.xmiddle.framework.lib.protocols.Protocol
        |
        +--edu.UCL.xmiddle.lib.protocols.Linking
All Implemented Interfaces:
java.io.Serializable

public class Linking
extends Protocol

Linking.java The standard XMIDDLE linking protocol. This is registered by SimpleManager as LINK. The protocol retreives/sends the first edition (+ the latest version) of the data including all policy data. Created: Mon Aug 13 12:53:37 2001

See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.UCL.xmiddle.framework.lib.protocols.Protocol
ACTIVE, listener, name, PASSIVE, remoteID, sender, sessionID
 
Constructor Summary
Linking(Listener listener, Sender sender, java.lang.Boolean sessionType, LocalHost localhost, AppManager appManager, java.lang.String sessionID, java.lang.Object remotePrimaryID, java.lang.Object[] args)
          Creates a new instace of the Linking protocol.
 
Method Summary
 void abort()
          Immediatly aborts execution of the protocol
 void execute()
          Starts executing the protocol
 
Methods inherited from class edu.UCL.xmiddle.framework.lib.protocols.Protocol
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Linking

public Linking(Listener listener,
               Sender sender,
               java.lang.Boolean sessionType,
               LocalHost localhost,
               AppManager appManager,
               java.lang.String sessionID,
               java.lang.Object remotePrimaryID,
               java.lang.Object[] args)
Creates a new instace of the Linking protocol. Note that this is instanciated by the ProtocolChooser. Application programmers should never have to instanciate protocols directly.

Parameters:
listener - The Listener for information from the remote host
sender - The Sender used to send information to the remote host
sessionType - Can be either ACTIVE (i.e. this is the first host to send data) or PASSIVE, i.e. the hsot should wait first before receiving any data.
localhost - A reference to the LocalHost, giving us access to the linktable, primaryID etc.
appManager - A reference to the AppManager, giving us access to the data on the local platform
sessionID - The unique sessionID decided for this session
remotePrimaryID - The primaryID of the remote host
args - Arguments for the linking protocol. These include information such as the application ID where the element resides /is going to be placed etc.
Method Detail

abort

public void abort()
Immediatly aborts execution of the protocol

Specified by:
abort in class Protocol

execute

public void execute()
Starts executing the protocol

Specified by:
execute in class Protocol