org.jcsp.net2
Class LinkServer

java.lang.Object
  extended by org.jcsp.net2.LinkServer
All Implemented Interfaces:
CSProcess
Direct Known Subclasses:
TCPIPLinkServer

public abstract class LinkServer
extends Object
implements CSProcess

Abstract class defining the LinkServer.

Author:
Kevin Chalmers

Constructor Summary
LinkServer()
           
 
Method Summary
protected  boolean registerLink(Link link)
           
protected  Link requestLink(NodeID nodeID)
           
static void start(NodeAddress address)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jcsp.lang.CSProcess
run
 

Constructor Detail

LinkServer

public LinkServer()
Method Detail

start

public static final void start(NodeAddress address)
                        throws IllegalArgumentException,
                               JCSPNetworkException
Parameters:
address -
Throws:
IllegalArgumentException
JCSPNetworkException

requestLink

protected final Link requestLink(NodeID nodeID)
Parameters:
nodeID -
Returns:
The Link connected to the Node with the corresponding NodeID, or null if no such Node exists

registerLink

protected final boolean registerLink(Link link)
Parameters:
link -
Returns:
True if the Link to the Node was successfully registered, false otherwise


Copyright © 1996-2012. All Rights Reserved.