Package jmri.jmrix.powerline.cp290
Class Constants
- java.lang.Object
-
- jmri.jmrix.powerline.cp290.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 Textstatic java.lang.String
deviceToText(int hByte, int lByte)
Translate Device Bits to Textstatic java.lang.String
houseCodeToText(int hC)
Translate House Code to textstatic java.lang.String
statusToText(int s)
Translate status to textstatic java.lang.String
toMonitorString(Message m)
Format a message nicely
-
-
-
Field Detail
-
CMD_ON
public static final int CMD_ON
- See Also:
- Constant Field Values
-
CMD_OFF
public static final int CMD_OFF
- See Also:
- Constant Field Values
-
CMD_DIM_R
public static final int CMD_DIM_R
- See Also:
- Constant Field Values
-
CMD_DIM_S
public static final int CMD_DIM_S
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Constants
public Constants()
-
-
Method Detail
-
commandToText
public static java.lang.String commandToText(int cmd, int level)
Translate Function to Text- Parameters:
cmd
- cmd valuelevel
- 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 bytelByte
- 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
-
-