jmri.jmrix.easydcc
Class EasyDccCommandStation

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

public class EasyDccCommandStation
extends Object
implements CommandStation

EasyDcc implementation of the CommandStation interface.


Field Summary
(package private) static org.slf4j.Logger log
           
(package private)  EasyDccSystemConnectionMemo memo
           
 
Constructor Summary
EasyDccCommandStation(EasyDccSystemConnectionMemo 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

memo

EasyDccSystemConnectionMemo memo

log

static org.slf4j.Logger log
Constructor Detail

EasyDccCommandStation

public EasyDccCommandStation(EasyDccSystemConnectionMemo 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