Class AnymaDMX_SystemConnectionMemo

    • Method Detail

      • getUserNameFromSystemName

        public java.lang.String getUserNameFromSystemName​(java.lang.String systemName)
        public method to get the user name for a valid system name
        Parameters:
        systemName - the system name
        Returns:
        "" (null string) if system name is not valid or does not exist
      • getChannelFromSystemName

        public int getChannelFromSystemName​(java.lang.String systemName)
        Public static method to parse a anyma dmx system name and return the channel number. Notes:
        • Channels are numbered from 1 to 512.
        • Does not check whether that node is defined on current system.
        Parameters:
        systemName - system name.
        Returns:
        0 if an error is found.
      • checkSystemPrefix

        public int checkSystemPrefix​(java.lang.String systemName)
        Public static method to check and skip the System Prefix string on a system name.
        Parameters:
        systemName - system name string.
        Returns:
        offset of the 1st character past the prefix, or -1 if not valid for this connection
      • convertSystemNameToAlternate

        public java.lang.String convertSystemNameToAlternate​(java.lang.String systemName)
        Public static method to convert one format anyma dmx system name to the alternate format.
        Parameters:
        systemName - system name string.
        Returns:
        "" (empty string) if the supplied system name does not have a valid format, or if there is no representation in the alternate naming scheme
      • validSystemNameFormat

        public Manager.NameValidity validSystemNameFormat​(@Nonnull
                                                          java.lang.String systemName,
                                                          char type)
        Public static method to validate system name format. Does not check whether that node is defined on current system.
        Parameters:
        systemName - proposed system name.
        type - bean type, only L supported.
        Returns:
        enum indicating current validity, which might be just as a prefix
      • validSystemNameConfig

        public boolean validSystemNameConfig​(java.lang.String systemName,
                                             char type)
        Public static method to validate anyma dmx system name for configuration. Does validate node number and system prefix.
        Parameters:
        systemName - anya dmx systemName.
        type - bean type, only L supported.
        Returns:
        'true' if system name has a valid meaning in current configuration, else returns 'false'.
      • getNodeAddressFromSystemName

        public int getNodeAddressFromSystemName​(java.lang.String systemName)
        Public static method to parse a anyma dmx system name and return the Usb Node Address

        Nodes are numbered from 0 - 127. Does not check whether that node is defined on current system.

        Parameters:
        systemName - system name.
        Returns:
        '-1' if invalid systemName format or if the node is not found.