Package org.jcsp.net2
Class ProtocolID
java.lang.Object
org.jcsp.net2.ProtocolID
- Direct Known Subclasses:
TCPIPProtocolID
This abstract class must be defined in concrete protocol implementations. Its main usage is to allow installation and
correct parsing of relevant address strings into correct address objects. See TCPIPProtocolID for an example.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract NodeAddress
Parses an address string into an address object
-
Constructor Details
-
ProtocolID
public ProtocolID()
-
-
Method Details
-
parse
Parses an address string into an address object- Parameters:
addressString
- String representation of an address- Returns:
- A new NodeAddress object
- Throws:
IllegalArgumentException
- Thrown if the string is in an incorrect form
-