Package jmri.jmrix.easydcc
Class EasyDccCommandStation
java.lang.Object
jmri.jmrix.easydcc.EasyDccCommandStation
- All Implemented Interfaces:
CommandStation
public class EasyDccCommandStation extends Object implements CommandStation
EasyDCC implementation of the CommandStation interface.
-
Field Summary
Fields Modifier and Type Field Description (package private) EasyDccSystemConnectionMemo
memo
-
Constructor Summary
Constructors Constructor Description EasyDccCommandStation(EasyDccSystemConnectionMemo memo)
-
Method Summary
Modifier and Type Method Description String
getSystemPrefix()
String
getUserName()
boolean
sendPacket(byte[] packet, int repeats)
Send a specific packet to the rails.
-
Field Details
-
Constructor Details
-
Method Details
-
sendPacket
Send a specific packet to the rails.- Specified by:
sendPacket
in 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:
true
if the operation succeeds,false
otherwise.
-
getUserName
- Specified by:
getUserName
in interfaceCommandStation
-
getSystemPrefix
- Specified by:
getSystemPrefix
in interfaceCommandStation
-