org.jcsp.net2
Class LinkServer
java.lang.Object
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
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 |
LinkServer
public LinkServer()
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.