Package jmri
Interface CommandStation
-
- All Known Implementing Classes:
CbusCommandStation
,DCCppCommandStation
,EasyDccCommandStation
,HornbyEliteCommandStation
,LenzCommandStation
,MarklinTrafficController
,Mx1CommandStation
,NceTrafficController
,RocoCommandStation
,RocoZ21CommandStation
,SlotManager
,SprogCommandStation
,TamsTrafficController
,TrafficController
,UhlenbrockSlotManager
public interface CommandStation
Provide a DCC command station's basic ability: Sending DCC packets to the rails.Note that this is separate from higher-level things like access to
Throttle
capability (e.g. viaThrottleManager
), more convenient sending of accessory command messages via JMRITurnout
objects, programming via service mode (Programmer
) or on-main programmers (AddressedProgrammer
) etc.System-specific implementations can be obtained via the
InstanceManager
class.
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
sendPacket
boolean sendPacket(@Nonnull byte[] packet, int repeats)
Send a specific packet to the rails.- Parameters:
packet
- Byte array representing the packet, including the error-correction byte.repeats
- Number of times to repeat the transmission.- Returns:
true
if the operation succeeds,false
otherwise.
-
getUserName
java.lang.String getUserName()
-
getSystemPrefix
@Nonnull java.lang.String getSystemPrefix()
-
-