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) EasyDccSystemConnectionMemo
memo
-
Constructor Summary
Constructors Constructor Description EasyDccCommandStation(EasyDccSystemConnectionMemo memo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getSystemPrefix()
java.lang.String
getUserName()
boolean
sendPacket(byte[] packet, int repeats)
Send a specific packet to the rails.
-
-
-
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:
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
public java.lang.String getUserName()
- Specified by:
getUserName
in interfaceCommandStation
-
getSystemPrefix
public java.lang.String getSystemPrefix()
- Specified by:
getSystemPrefix
in interfaceCommandStation
-
-