jmri.jmrix.mrc
Class MrcMessage

java.lang.Object
  extended by jmri.jmrix.AbstractMessage
      extended by jmri.jmrix.AbstractMRMessage
          extended by jmri.jmrix.mrc.MrcMessage
All Implemented Interfaces:
Message

public class MrcMessage
extends AbstractMRMessage

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

The MrcReply class handles the response from the command station.

Author:
Bob Jacobsen Copyright (C) 2001, 2004

Field Summary
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
MrcMessage()
           
MrcMessage(int i)
           
MrcMessage(MrcMessage m)
           
MrcMessage(String m)
           
 
Method Summary
static MrcMessage getAddConsistNormal(int ConsistAddress, DccLocoAddress LocoAddress)
           
static MrcMessage getAddConsistReverse(int ConsistAddress, DccLocoAddress LocoAddress)
           
static MrcMessage getDisplayConsist(int ConsistAddress)
           
static MrcMessage getEnableMain()
           
static MrcMessage getExitProgMode()
           
static MrcMessage getKillConsist(int ConsistAddress)
           
static MrcMessage getKillMain()
           
static MrcMessage getProgMode()
           
static MrcMessage getReadPagedCV(int cv)
           
static MrcMessage getReadRegister(int reg)
           
static MrcMessage getSubtractConsist(int ConsistAddress, DccLocoAddress LocoAddress)
           
static MrcMessage getWritePagedCV(int cv, int val)
           
static MrcMessage 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 int LONG_TIMEOUT
Constructor Detail

MrcMessage

public MrcMessage()

MrcMessage

public MrcMessage(int i)

MrcMessage

public MrcMessage(MrcMessage m)

MrcMessage

public MrcMessage(String m)
Method Detail

isKillMain

public boolean isKillMain()

isEnableMain

public boolean isEnableMain()

getEnableMain

public static MrcMessage getEnableMain()

getKillMain

public static MrcMessage getKillMain()

getAddConsistNormal

public static MrcMessage getAddConsistNormal(int ConsistAddress,
                                             DccLocoAddress LocoAddress)

getAddConsistReverse

public static MrcMessage getAddConsistReverse(int ConsistAddress,
                                              DccLocoAddress LocoAddress)

getSubtractConsist

public static MrcMessage getSubtractConsist(int ConsistAddress,
                                            DccLocoAddress LocoAddress)

getKillConsist

public static MrcMessage getKillConsist(int ConsistAddress)

getDisplayConsist

public static MrcMessage getDisplayConsist(int ConsistAddress)

getProgMode

public static MrcMessage getProgMode()

getExitProgMode

public static MrcMessage getExitProgMode()

getReadPagedCV

public static MrcMessage getReadPagedCV(int cv)

getWritePagedCV

public static MrcMessage getWritePagedCV(int cv,
                                         int val)

getReadRegister

public static MrcMessage getReadRegister(int reg)

getWriteRegister

public static MrcMessage getWriteRegister(int reg,
                                          int val)


Copyright © 1997 - 2008 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: SourceForge_Logo