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 SummaryConstructors Constructor Description Constants()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringcommandToText(int cmd, int level)Translate Function to Textstatic java.lang.StringdeviceToText(int hByte, int lByte)Translate Device Bits to Textstatic java.lang.StringhouseCodeToText(int hC)Translate House Code to textstatic java.lang.StringstatusToText(int s)Translate status to textstatic java.lang.StringtoMonitorString(Message m)Format a message nicely
 
- 
- 
- 
Field Detail- 
CMD_ONpublic static final int CMD_ON - See Also:
- Constant Field Values
 
 - 
CMD_OFFpublic static final int CMD_OFF - See Also:
- Constant Field Values
 
 - 
CMD_DIM_Rpublic static final int CMD_DIM_R - See Also:
- Constant Field Values
 
 - 
CMD_DIM_Spublic static final int CMD_DIM_S - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
Constantspublic Constants() 
 
- 
 - 
Method Detail- 
commandToTextpublic 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
 
 - 
houseCodeToTextpublic static java.lang.String houseCodeToText(int hC) Translate House Code to text- Parameters:
- hC- housecode value
- Returns:
- housecode as text
 
 - 
deviceToTextpublic 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
 
 - 
statusToTextpublic static java.lang.String statusToText(int s) Translate status to text- Parameters:
- s- status value
- Returns:
- status value as text
 
 - 
toMonitorStringpublic static java.lang.String toMonitorString(Message m) Format a message nicely- Parameters:
- m- message
- Returns:
- message contents as text
 
 
- 
 
-