Package jmri.jmrix.easydcc
Class EasyDccMessage
java.lang.Object
jmri.jmrix.AbstractMessage
jmri.jmrix.AbstractMRMessage
jmri.jmrix.easydcc.EasyDccMessage
- All Implemented Interfaces:
Message
Encodes a message to an EasyDCC command station.
The EasyDccReply class handles the response from the command station.
-
Field Summary
FieldsFields inherited from class jmri.jmrix.AbstractMRMessage
SHORT_TIMEOUTFields inherited from class jmri.jmrix.AbstractMessage
_dataChars, _nDataChars -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EasyDccMessagegetAddConsistNormal(int ConsistAddress, DccLocoAddress LocoAddress) Get a static message to add a locomotive to a Standard Consist in the normal direction.static EasyDccMessagegetAddConsistReverse(int ConsistAddress, DccLocoAddress LocoAddress) Get a static message to add a locomotive to a Standard Consist in the reverse direction.static EasyDccMessagegetDisplayConsist(int ConsistAddress) Get a static message to display a Standard Consist.static EasyDccMessagestatic EasyDccMessagestatic EasyDccMessagegetKillConsist(int ConsistAddress) Get a static message to delete a Standard Consist.static EasyDccMessagestatic EasyDccMessagestatic EasyDccMessagegetReadPagedCV(int cv) static EasyDccMessagegetReadRegister(int reg) static EasyDccMessagegetSubtractConsist(int ConsistAddress, DccLocoAddress LocoAddress) Get a static message to subtract a locomotive from a Standard Consist.static EasyDccMessagegetWritePagedCV(int cv, int val) static EasyDccMessagegetWriteRegister(int reg, int val) booleanbooleanMethods inherited from class jmri.jmrix.AbstractMRMessage
addIntAsFourHex, addIntAsThree, addIntAsThreeHex, addIntAsTwoHex, getNeededMode, getOpCode, getOpCodeHex, getRetries, getTimeout, isBinary, replyExpected, setBinary, setNeededMode, setOpCode, setRetries, setTimeout, toStringMethods inherited from class jmri.jmrix.AbstractMessage
equals, getElement, getNumDataElements, hashCode, setElementMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface jmri.jmrix.Message
toMonitorString
-
Field Details
-
LONG_TIMEOUT
- See Also:
-
-
Constructor Details
-
EasyDccMessage
public EasyDccMessage() -
EasyDccMessage
-
EasyDccMessage
-
EasyDccMessage
-
-
Method Details
-
isKillMain
-
isEnableMain
-
getEnableMain
-
getKillMain
-
getAddConsistNormal
Get a static message to add a locomotive to a Standard Consist in the normal direction.- Parameters:
ConsistAddress- a consist address in the range 1-255LocoAddress- a jmri.DccLocoAddress object representing the locomotive to add- Returns:
- an EasyDccMessage of the form GN cc llll
-
getAddConsistReverse
Get a static message to add a locomotive to a Standard Consist in the reverse direction.- Parameters:
ConsistAddress- a consist address in the range 1-255LocoAddress- a jmri.DccLocoAddress object representing the locomotive to add- Returns:
- an EasyDccMessage of the form GS cc llll
-
getSubtractConsist
Get a static message to subtract a locomotive from a Standard Consist.- Parameters:
ConsistAddress- a consist address in the range 1-255LocoAddress- a jmri.DccLocoAddress object representing the locomotive to remove- Returns:
- an EasyDccMessage of the form GS cc llll
-
getKillConsist
Get a static message to delete a Standard Consist.- Parameters:
ConsistAddress- a consist address in the range 1-255- Returns:
- an EasyDccMessage of the form GK cc
-
getDisplayConsist
Get a static message to display a Standard Consist.- Parameters:
ConsistAddress- a consist address in the range 1-255- Returns:
- an EasyDccMessage of the form GD cc
-
getProgMode
-
getExitProgMode
-
getReadPagedCV
-
getWritePagedCV
-
getReadRegister
-
getWriteRegister
-