Package org.jcsp.net2.tcpip
Class TCPIPProtocolID
- java.lang.Object
-
- org.jcsp.net2.ProtocolID
-
- org.jcsp.net2.tcpip.TCPIPProtocolID
-
public final class TCPIPProtocolID extends ProtocolID
Concrete implementation of a ProtocolID used to parse a string representation of a TCPIPNodeAddress into a TCPIPNodeAddress object.- Author:
- Kevin Chalmers
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TCPIPProtocolIDgetInstance()Gets the singleton instance of this classprotected NodeAddressparse(String addressString)Parses a string to recreate a TCPIPNodeAddress object
-
-
-
Method Detail
-
getInstance
public static TCPIPProtocolID getInstance()
Gets the singleton instance of this class- Returns:
- A new singleton instance of this class
-
parse
protected NodeAddress parse(String addressString) throws IllegalArgumentException
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
-
-