jmri.jmrix.acela
Class AcelaMessage

java.lang.Object
  extended by jmri.jmrix.AbstractMessage
      extended by jmri.jmrix.AbstractMRMessage
          extended by jmri.jmrix.acela.AcelaMessage
All Implemented Interfaces:
Message

public class AcelaMessage
extends AbstractMRMessage

Contains the data payload of an Acela packet.

Author:
Bob Jacobsen Copyright (C) 2001,2003, Bob Coleman Copyright (C) 2007, 2008 Based on CMRI serial example, modified to establish Acela support.

Field Summary
 
Fields inherited from class jmri.jmrix.AbstractMRMessage
LONG_TIMEOUT, SHORT_TIMEOUT
 
Fields inherited from class jmri.jmrix.AbstractMessage
_dataChars, _nDataChars
 
Constructor Summary
AcelaMessage()
           
AcelaMessage(AcelaMessage m)
           
AcelaMessage(byte[] a)
          This ctor interprets the byte array as a sequence of characters to send.
AcelaMessage(int i)
           
AcelaMessage(String m)
          This ctor interprets the String as the exact sequence to send, byte-for-byte.
 
Method Summary
static AcelaMessage getAcelaConfigSensorMsg()
           
static AcelaMessage getAcelaOnlineMsg()
           
static AcelaMessage getAcelaPollNodesMsg()
           
static AcelaMessage getAcelaPollSensorsMsg()
           
static AcelaMessage getAcelaResetMsg()
           
static AcelaMessage getAcelaVersionMsg()
           
 String toString()
           
 
Methods inherited from class jmri.jmrix.AbstractMRMessage
addIntAsFourHex, addIntAsThree, addIntAsThreeHex, addIntAsTwoHex, getNeededMode, getOpCode, getOpCodeHex, getRetries, getTimeout, isBinary, replyExpected, setBinary, setNeededMode, setOpCode, setRetries, setTimeout
 
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
 

Constructor Detail

AcelaMessage

public AcelaMessage()

AcelaMessage

public AcelaMessage(int i)

AcelaMessage

public AcelaMessage(AcelaMessage m)

AcelaMessage

public AcelaMessage(String m)
This ctor interprets the String as the exact sequence to send, byte-for-byte.

Parameters:
m -

AcelaMessage

public AcelaMessage(byte[] a)
This ctor interprets the byte array as a sequence of characters to send.

Parameters:
a - Array of bytes to send
Method Detail

toString

public String toString()
Specified by:
toString in interface Message
Overrides:
toString in class AbstractMRMessage

getAcelaVersionMsg

public static AcelaMessage getAcelaVersionMsg()

getAcelaResetMsg

public static AcelaMessage getAcelaResetMsg()

getAcelaOnlineMsg

public static AcelaMessage getAcelaOnlineMsg()

getAcelaPollNodesMsg

public static AcelaMessage getAcelaPollNodesMsg()

getAcelaPollSensorsMsg

public static AcelaMessage getAcelaPollSensorsMsg()

getAcelaConfigSensorMsg

public static AcelaMessage getAcelaConfigSensorMsg()


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