jmri.jmrix.srcp
Class SRCPMessage

java.lang.Object
  extended by jmri.jmrix.AbstractMessage
      extended by jmri.jmrix.AbstractMRMessage
          extended by jmri.jmrix.srcp.SRCPMessage
All Implemented Interfaces:
Message

public class SRCPMessage
extends AbstractMRMessage

Encodes a message to an SRCP server. The SRCPReply class handles the response from the command station.

The SRCPReply class handles the response from the command station.

Author:
Bob Jacobsen Copyright (C) 2001, 2004, 2008

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

SRCPMessage

public SRCPMessage()

SRCPMessage

public SRCPMessage(int i)

SRCPMessage

public SRCPMessage(SRCPMessage m)

SRCPMessage

public SRCPMessage(String m)
Method Detail

isKillMain

public boolean isKillMain()

isEnableMain

public boolean isEnableMain()

getEnableMain

public static SRCPMessage getEnableMain()

getKillMain

public static SRCPMessage getKillMain()

getAddConsistNormal

public static SRCPMessage getAddConsistNormal(int ConsistAddress,
                                              DccLocoAddress LocoAddress)

getAddConsistReverse

public static SRCPMessage getAddConsistReverse(int ConsistAddress,
                                               DccLocoAddress LocoAddress)

getSubtractConsist

public static SRCPMessage getSubtractConsist(int ConsistAddress,
                                             DccLocoAddress LocoAddress)

getKillConsist

public static SRCPMessage getKillConsist(int ConsistAddress)

getDisplayConsist

public static SRCPMessage getDisplayConsist(int ConsistAddress)

getProgMode

public static SRCPMessage getProgMode()

getExitProgMode

public static SRCPMessage getExitProgMode()

getReadPagedCV

public static SRCPMessage getReadPagedCV(int cv)

getWritePagedCV

public static SRCPMessage getWritePagedCV(int cv,
                                          int val)

getReadRegister

public static SRCPMessage getReadRegister(int reg)

getWriteRegister

public static SRCPMessage 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