An abstract inner class which should be implemented by
comunication protocol implementations.
The 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. |
Type | Name and description |
---|---|
ProtocolID |
getProtocolID() Gets the ProtocolID that this Builder supports. |
Link |
testAndBuild(NodeAddressID addressID) Takes a NodeAddressID and constructs and returns
a Link object. |
A constructor which takes the 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. Gets the ProtocolID
that this Builder
supports.
ProtocolID
that this Builder
supports. Takes a NodeAddressID
and constructs and returns
a Link
object.
AddressID
object is invalid.Link
.addressID
- the AddressID
for the remote Node.JCSP for Java 1.8 generated 14-10-2016 by Jon Kerridge, Edinburgh Napier University - j dot kerridge at napier dot ac dot uk