jmri.jmrix.srcp
Class SRCPCommandStation
java.lang.Object
jmri.jmrix.srcp.SRCPCommandStation
- All Implemented Interfaces:
- CommandStation
public class SRCPCommandStation
- extends Object
- implements CommandStation
SRCP implementation of the CommandStation interface.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
adaptermemo
SRCPSystemConnectionMemo adaptermemo
log
static org.slf4j.Logger log
SRCPCommandStation
public SRCPCommandStation(SRCPSystemConnectionMemo memo)
sendPacket
public void sendPacket(byte[] packet,
int repeats)
- Send a specific packet to the rails.
- Specified by:
sendPacket in interface CommandStation
- Parameters:
packet - Byte array representing the packet, including
the error-correction byte. Must not be null.repeats - Number of times to repeat the transmission,
capped at 9
getUserName
public String getUserName()
- Specified by:
getUserName in interface CommandStation
getSystemPrefix
public String getSystemPrefix()
- Specified by:
getSystemPrefix in interface CommandStation
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: