jmri.jmrix.easydcc
Class EasyDccMessage

Show UML class diagram
java.lang.Object
  extended by jmri.jmrix.AbstractMessage
      extended by jmri.jmrix.AbstractMRMessage
          extended by jmri.jmrix.easydcc.EasyDccMessage
All Implemented Interfaces:
Message

public class EasyDccMessage
extends AbstractMRMessage

Encodes a message to an EasyDCC command station. The EasyDccReply class handles the response from the command station.

The EasyDccReply class handles the response from the command station.


Field Summary
(package private) static org.slf4j.Logger log
           
protected static int LONG_TIMEOUT
           
 
Fields inherited from class jmri.jmrix.AbstractMRMessage
SHORT_TIMEOUT
 
Fields inherited from class jmri.jmrix.AbstractMessage
_dataChars, _nDataChars
 
Constructor Summary
EasyDccMessage()
           
EasyDccMessage(EasyDccMessage m)
           
EasyDccMessage(int i)
           
EasyDccMessage(String m)
           
 
Method Summary
static EasyDccMessage getAddConsistNormal(int ConsistAddress, DccLocoAddress LocoAddress)
           
static EasyDccMessage getAddConsistReverse(int ConsistAddress, DccLocoAddress LocoAddress)
           
static EasyDccMessage getDisplayConsist(int ConsistAddress)
           
static EasyDccMessage getEnableMain()
           
static EasyDccMessage getExitProgMode()
           
static EasyDccMessage getKillConsist(int ConsistAddress)
           
static EasyDccMessage getKillMain()
           
static EasyDccMessage getProgMode()
           
static EasyDccMessage getReadPagedCV(int cv)
           
static EasyDccMessage getReadRegister(int reg)
           
static EasyDccMessage getSubtractConsist(int ConsistAddress, DccLocoAddress LocoAddress)
           
static EasyDccMessage getWritePagedCV(int cv, int val)
           
static EasyDccMessage getWriteRegister(int reg, int val)
           
 boolean isEnableMain()
           
 boolean isKillMain()
           
 
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
getElement, getNumDataElements, setElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LONG_TIMEOUT

protected static final int LONG_TIMEOUT
See Also:
Constant Field Values

log

static org.slf4j.Logger log
Constructor Detail

EasyDccMessage

public EasyDccMessage()

EasyDccMessage

public EasyDccMessage(int i)

EasyDccMessage

public EasyDccMessage(EasyDccMessage m)

EasyDccMessage

public EasyDccMessage(String m)
Method Detail

isKillMain

public boolean isKillMain()

isEnableMain

public boolean isEnableMain()

getEnableMain

public static EasyDccMessage getEnableMain()

getKillMain

public static EasyDccMessage getKillMain()

getAddConsistNormal

public static EasyDccMessage getAddConsistNormal(int ConsistAddress,
                                                 DccLocoAddress LocoAddress)

getAddConsistReverse

public static EasyDccMessage getAddConsistReverse(int ConsistAddress,
                                                  DccLocoAddress LocoAddress)

getSubtractConsist

public static EasyDccMessage getSubtractConsist(int ConsistAddress,
                                                DccLocoAddress LocoAddress)

getKillConsist

public static EasyDccMessage getKillConsist(int ConsistAddress)

getDisplayConsist

public static EasyDccMessage getDisplayConsist(int ConsistAddress)

getProgMode

public static EasyDccMessage getProgMode()

getExitProgMode

public static EasyDccMessage getExitProgMode()

getReadPagedCV

public static EasyDccMessage getReadPagedCV(int cv)

getWritePagedCV

public static EasyDccMessage getWritePagedCV(int cv,
                                             int val)

getReadRegister

public static EasyDccMessage getReadRegister(int reg)

getWriteRegister

public static EasyDccMessage getWriteRegister(int reg,
                                              int val)


Copyright © 1997-2013 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads