jmri.jmrix.srcp
Class SRCPCommandStation

Show UML class diagram
java.lang.Object
  extended by jmri.jmrix.srcp.SRCPCommandStation
All Implemented Interfaces:
CommandStation

public class SRCPCommandStation
extends Object
implements CommandStation

SRCP implementation of the CommandStation interface.


Field Summary
(package private)  SRCPSystemConnectionMemo adaptermemo
           
(package private) static org.slf4j.Logger log
           
 
Constructor Summary
SRCPCommandStation(SRCPSystemConnectionMemo memo)
           
 
Method Summary
 String getSystemPrefix()
           
 String getUserName()
           
 void sendPacket(byte[] packet, int repeats)
          Send a specific packet to the rails.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

adaptermemo

SRCPSystemConnectionMemo adaptermemo

log

static org.slf4j.Logger log
Constructor Detail

SRCPCommandStation

public SRCPCommandStation(SRCPSystemConnectionMemo memo)
Method Detail

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: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads