public abstract static class LinkFactory.Builder
extends java.lang.Object
Builder
class provides an abstract method which
should be implemented to take a NodeAddressID
object
which should be used to construct a Link
which is then
returned by the method to the factory.Constructor and Description |
---|
LinkFactory.Builder(ProtocolID protocolID)
A constructor which takes the
ProtocolID identifying the
protocol that this Builder supports. |
Modifier and Type | Method and Description |
---|---|
ProtocolID |
getProtocolID()
Gets the
ProtocolID that this Builder supports. |
abstract Link |
testAndBuild(NodeAddressID addressID)
Takes a
NodeAddressID and constructs and returns
a Link object. |
public LinkFactory.Builder(ProtocolID protocolID)
ProtocolID
identifying the
protocol that this Builder
supports. This must be called
by sub-classes.protocolID
- the ProtocolID
for the protocol that the implementation supports.public abstract Link testAndBuild(NodeAddressID addressID) throws java.lang.IllegalArgumentException
NodeAddressID
and constructs and returns
a Link
object.addressID
- the AddressID
for the remote Node.Link
.java.lang.IllegalArgumentException
- if the AddressID
object is invalid.public final ProtocolID getProtocolID()
ProtocolID
that this Builder
supports.ProtocolID
that this Builder
supports.Submit a bug or feature to jcsp-team@kent.ac.uk
Version 1.1-rc4 of the JCSP API Specification (Copyright 1997-2008 P.D.Austin and P.H.Welch - All Rights Reserved)
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.