|
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.Object org.jcsp.net.ProtocolID org.jcsp.net.tcpip.TCPIPProtocolID
public class TCPIPProtocolID
Defines a protocol ID for the TCP/IP link implementation.
ProtocolID
,
Serialized FormConstructor Summary | |
---|---|
TCPIPProtocolID()
|
Method Summary | |
---|---|
protected NodeAddressID |
createAddressID(String stAddressID,
boolean uniqueAddress)
Creates an address from a string form. |
boolean |
equals(Object o)
Compares two protocol IDs |
protected LinkFactory.Builder |
getLinkBuilder(Hashtable settings)
Returns the factory builder for this protocol. |
boolean |
isActive()
Always returns true. |
boolean |
requiresUserInteraction()
Always returns false. |
protected LinkServer |
startLinkServer(NodeAddressID addressID)
Starts the TCP/IP link server at this node using the given address ID. |
Methods inherited from class org.jcsp.net.ProtocolID |
---|
getPosition, hashCode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TCPIPProtocolID()
Method Detail |
---|
public boolean equals(Object o)
equals
in class ProtocolID
o
- an object to compare with this object.
true
iff the supplied object's class is the same as
the class of this object.public boolean isActive()
isActive
in class ProtocolID
public boolean requiresUserInteraction()
requiresUserInteraction
in class ProtocolID
protected LinkFactory.Builder getLinkBuilder(Hashtable settings)
getLinkBuilder
in class ProtocolID
settings
- Hashtable
containing settings.
Builder
for constructing Links.protected LinkServer startLinkServer(NodeAddressID addressID) throws IllegalArgumentException
startLinkServer
in class ProtocolID
addressID
- The address for the server to listen on.
LinkServer
IllegalArgumentException
- if the supplied NodeAddressID
is invalid.protected NodeAddressID createAddressID(String stAddressID, boolean uniqueAddress) throws IllegalArgumentException
createAddressID
in class ProtocolID
stAddressID
- The address in String form.uniqueAddress
- boolean indicating whether address is unique.
NodeAddressID
IllegalArgumentException
- if the String
supplied is invalid.
|
CSP for Java (JCSP) 1.1-rc4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |