Class TCPIPProtocolID
java.lang.Object
org.jcsp.net2.ProtocolID
org.jcsp.net2.tcpip.TCPIPProtocolID
Concrete implementation of a ProtocolID used to parse a string representation of a TCPIPNodeAddress into a
TCPIPNodeAddress object.
- Author:
- Kevin Chalmers
-
Method Summary
Modifier and TypeMethodDescriptionstatic TCPIPProtocolIDGets the singleton instance of this classprotected NodeAddressParses a string to recreate a TCPIPNodeAddress object
-
Method Details
-
getInstance
Gets the singleton instance of this class- Returns:
- A new singleton instance of this class
-
parse
Parses a string to recreate a TCPIPNodeAddress object- Specified by:
parsein classProtocolID- Parameters:
addressString- String representing the address- Returns:
- A new TCPIPNodeAddress object
- Throws:
IllegalArgumentException- Thrown if the address is not in a correct form
-