|
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.ProtocolID
org.jcsp.net.tcpip.TCPIPProtocolID
public class TCPIPProtocolID
Defines a protocol ID for the TCP/IP link implementation.
ProtocolID,
Serialized Form| Constructor 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 ProtocolIDo - 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 ProtocolIDpublic boolean requiresUserInteraction()
requiresUserInteraction in class ProtocolIDprotected LinkFactory.Builder getLinkBuilder(Hashtable settings)
getLinkBuilder in class ProtocolIDsettings - Hashtable containing settings.
Builder for constructing Links.
protected LinkServer startLinkServer(NodeAddressID addressID)
throws IllegalArgumentException
startLinkServer in class ProtocolIDaddressID - 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 ProtocolIDstAddressID - 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 | ||||||||