|
CSP for Java (JCSP) 1.1-rc4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jcsp.net.LinkFactory.Builder
public abstract static class LinkFactory.Builder
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 Summary | |
---|---|
LinkFactory.Builder(ProtocolID protocolID)
A constructor which takes the ProtocolID identifying the
protocol that this Builder supports. |
Method Summary | |
---|---|
ProtocolID |
getProtocolID()
Gets the ProtocolID that this Builder supports. |
abstract Link |
testAndBuild(NodeAddressID addressID)
Takes a NodeAddressID and constructs and returns
a Link object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
public abstract Link testAndBuild(NodeAddressID addressID) throws IllegalArgumentException
NodeAddressID
and constructs and returns
a Link
object.
addressID
- the AddressID
for the remote Node.
Link
.
IllegalArgumentException
- if the AddressID
object is invalid.public final ProtocolID getProtocolID()
ProtocolID
that this Builder
supports.
ProtocolID
that this Builder
supports.
|
CSP for Java (JCSP) 1.1-rc4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |