Package jmri.jmrix.easydcc
Class EasyDccCommandStation
- java.lang.Object
-
- jmri.jmrix.easydcc.EasyDccCommandStation
-
- All Implemented Interfaces:
CommandStation
public class EasyDccCommandStation extends java.lang.Object implements CommandStation
EasyDCC implementation of the CommandStation interface.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) EasyDccSystemConnectionMemomemo
-
Constructor Summary
Constructors Constructor Description EasyDccCommandStation(EasyDccSystemConnectionMemo memo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetSystemPrefix()java.lang.StringgetUserName()booleansendPacket(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
-
Methods inherited from interface jmri.CommandStation
sendAccSignalDecoderPkt, sendAltAccSignalDecoderPkt
-
-
-
-
Constructor Detail
-
EasyDccCommandStation
public EasyDccCommandStation(EasyDccSystemConnectionMemo memo)
-
-
Method Detail
-
sendPacket
public boolean sendPacket(byte[] packet, int repeats)
Send a specific packet to the rails.- Specified by:
sendPacketin interfaceCommandStation- 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- Returns:
trueif the operation succeeds,falseotherwise.
-
getUserName
public java.lang.String getUserName()
- Specified by:
getUserNamein interfaceCommandStation
-
getSystemPrefix
public java.lang.String getSystemPrefix()
- Specified by:
getSystemPrefixin interfaceCommandStation
-
-