Class SerialAddress

  • All Implemented Interfaces:
    Address

    public class SerialAddress
    extends java.lang.Object
    implements Address
    • Constructor Detail

      • SerialAddress

        public SerialAddress()
      • SerialAddress

        public SerialAddress​(java.lang.String portName,
                             int asrlNum)
      • SerialAddress

        public SerialAddress​(java.lang.String portName)
      • SerialAddress

        public SerialAddress​(int asrlNum)
      • SerialAddress

        public SerialAddress​(java.util.Map<java.lang.String,​java.lang.Object> parameters)
    • Method Detail

      • getPortName

        public java.lang.String getPortName()
      • getASRLNum

        public int getASRLNum()
      • setPortName

        public void setPortName​(java.lang.String portName)
      • getTypeName

        public java.lang.String getTypeName()
        Description copied from interface: Address
        Returns a textual representation of this address' type.
        Specified by:
        getTypeName in interface Address
        Returns:
        Type of address
      • getVISAString

        public java.lang.String getVISAString()
        Description copied from interface: Address
        Returns the standard VISA text representation of this address.
        Specified by:
        getVISAString in interface Address
        Returns:
        VISA text representation
      • getJISAString

        public java.lang.String getJISAString()
        Description copied from interface: Address
        Returns the JISA text representation of this address (may vary from the VISA representation in some cases).
        Specified by:
        getJISAString in interface Address
        Returns:
        JISA text representation
      • hasParametersSpecified

        public boolean hasParametersSpecified()
      • getParameters

        public java.util.Map<java.lang.String,​java.lang.Object> getParameters()
        Description copied from interface: Address
        Returns a map of this address' configurable parameters.
        Specified by:
        getParameters in interface Address
        Returns:
        Map of parameters
      • setParameters

        public void setParameters​(java.util.Map<java.lang.String,​java.lang.Object> parameters)
        Description copied from interface: Address
        Set the parameters of this address from a given map.
        Specified by:
        setParameters in interface Address
        Parameters:
        parameters - Map of parameters to set
      • parseString

        public void parseString​(java.lang.String text)
                         throws InvalidAddressFormatException
        Description copied from interface: Address
        Parses a text representation of this type of address, setting its parameters based on those in the text.
        Specified by:
        parseString in interface Address
        Parameters:
        text - VISA/JISA text representation
        Throws:
        InvalidAddressFormatException - If the text representation is not formatted properly for this address type
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object