Package org.jcsp.net2

Class ProtocolID

  • Direct Known Subclasses:
    TCPIPProtocolID

    public abstract class ProtocolID
    extends java.lang.Object
    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:
    TCPIPProtocolID
    • Constructor Summary

      Constructors 
      Constructor Description
      ProtocolID()  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      protected abstract NodeAddress parse​(java.lang.String addressString)
      Parses an address string into an address object
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ProtocolID

        public ProtocolID()
    • Method Detail

      • parse

        protected abstract NodeAddress parse​(java.lang.String addressString)
                                      throws java.lang.IllegalArgumentException
        Parses an address string into an address object
        Parameters:
        addressString - String representation of an address
        Returns:
        A new NodeAddress object
        Throws:
        java.lang.IllegalArgumentException - Thrown if the string is in an incorrect form