Package jmri.jmrix.marklin
Class MarklinMessage
- java.lang.Object
-
- jmri.jmrix.AbstractMessage
-
- jmri.jmrix.AbstractMRMessage
-
- jmri.jmrix.marklin.MarklinMessage
-
- All Implemented Interfaces:
Message
public class MarklinMessage extends AbstractMRMessage
Encodes a message to a Marklin command station.The
MarklinReply
class handles the response from the command station.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static int
MY_UID
-
Fields inherited from class jmri.jmrix.AbstractMRMessage
LONG_TIMEOUT, SHORT_TIMEOUT
-
Fields inherited from class jmri.jmrix.AbstractMessage
_dataChars, _nDataChars
-
-
Constructor Summary
Constructors Constructor Description MarklinMessage()
MarklinMessage(byte[] d)
MarklinMessage(int i)
MarklinMessage(int[] d)
MarklinMessage(MarklinMessage m)
-
Method Summary
-
Methods inherited from class jmri.jmrix.AbstractMRMessage
addIntAsFourHex, addIntAsThree, addIntAsThreeHex, addIntAsTwoHex, getNeededMode, getOpCode, getOpCodeHex, getRetries, getTimeout, isBinary, replyExpected, setBinary, setNeededMode, setOpCode, setRetries, setTimeout, toString
-
Methods inherited from class jmri.jmrix.AbstractMessage
equals, getElement, getNumDataElements, hashCode, setElement
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jmri.jmrix.Message
toMonitorString
-
-
-
-
Field Detail
-
MY_UID
static int MY_UID
-
-
Constructor Detail
-
MarklinMessage
MarklinMessage()
-
MarklinMessage
public MarklinMessage(int[] d)
-
MarklinMessage
public MarklinMessage(byte[] d)
-
MarklinMessage
public MarklinMessage(int i)
-
MarklinMessage
public MarklinMessage(MarklinMessage m)
-
-
Method Detail
-
getEnableMain
public static MarklinMessage getEnableMain()
-
getKillMain
public static MarklinMessage getKillMain()
-
getSetTurnout
public static MarklinMessage getSetTurnout(int addr, int state, int power)
-
getQryLocoSpeed
public static MarklinMessage getQryLocoSpeed(int addr)
-
setLocoSpeed
public static MarklinMessage setLocoSpeed(int addr, int speed)
-
setLocoEmergencyStop
public static MarklinMessage setLocoEmergencyStop(int addr)
-
setLocoSpeedSteps
public static MarklinMessage setLocoSpeedSteps(int addr, int step)
-
getQryLocoDirection
public static MarklinMessage getQryLocoDirection(int addr)
-
setLocoDirection
public static MarklinMessage setLocoDirection(int addr, int dir)
-
getQryLocoFunction
public static MarklinMessage getQryLocoFunction(int addr, int funct)
-
setLocoFunction
public static MarklinMessage setLocoFunction(int addr, int funct, int state)
-
sensorPollMessage
public static MarklinMessage sensorPollMessage(int module)
-
getAddress
public long getAddress()
-
getProgMode
public static MarklinMessage getProgMode()
-
getExitProgMode
public static MarklinMessage getExitProgMode()
-
getReadPagedCV
public static MarklinMessage getReadPagedCV(int cv)
-
getWritePagedCV
public static MarklinMessage getWritePagedCV(int cv, int val)
-
getReadRegister
public static MarklinMessage getReadRegister(int reg)
-
getWriteRegister
public static MarklinMessage getWriteRegister(int reg, int val)
-
getReadDirectCV
public static MarklinMessage getReadDirectCV(int cv)
-
getWriteDirectCV
public static MarklinMessage getWriteDirectCV(int cv, int val)
-
-