Class Constants


  • public class Constants
    extends java.lang.Object
    Constants and functions specific to the CP290 interface
    • Constructor Summary

      Constructors 
      Constructor Description
      Constants()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String commandToText​(int cmd, int level)
      Translate Function to Text
      static java.lang.String deviceToText​(int hByte, int lByte)
      Translate Device Bits to Text
      static java.lang.String houseCodeToText​(int hC)
      Translate House Code to text
      static java.lang.String statusToText​(int s)
      Translate status to text
      static java.lang.String toMonitorString​(Message m)
      Format a message nicely
      • Methods inherited from class java.lang.Object

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

      • commandToText

        public static java.lang.String commandToText​(int cmd,
                                                     int level)
        Translate Function to Text
        Parameters:
        cmd - cmd value
        level - dim value
        Returns:
        formated command as text
      • houseCodeToText

        public static java.lang.String houseCodeToText​(int hC)
        Translate House Code to text
        Parameters:
        hC - housecode value
        Returns:
        housecode as text
      • deviceToText

        public static java.lang.String deviceToText​(int hByte,
                                                    int lByte)
        Translate Device Bits to Text
        Parameters:
        hByte - high byte
        lByte - low byte
        Returns:
        text version of bytes
      • statusToText

        public static java.lang.String statusToText​(int s)
        Translate status to text
        Parameters:
        s - status value
        Returns:
        status value as text
      • toMonitorString

        public static java.lang.String toMonitorString​(Message m)
        Format a message nicely
        Parameters:
        m - message
        Returns:
        message contents as text