Package jmri.jmrix.openlcb
Class OlcbCommandStation
java.lang.Object
jmri.jmrix.openlcb.OlcbCommandStation
- All Implemented Interfaces:
CommandStation
OpenLcb implementation of part of the CommandStation interface.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsendAccSignalDecoderPkt(int address, int aspect, int count) As a shortcut, and to allow for command station types that cannot sent generic packets to the rails, we provide this method to specifically send Accessory Signal Decoder Packets.voidsendAltAccSignalDecoderPkt(int address, int aspect, int count) As a shortcut, and to allow for command station types that cannot sent generic packets to the rails, we provide this method to specifically send the alternate form of Accessory Signal Decoder Packets.booleansendPacket(byte[] packet, int repeats) OpenLCB/LCC does not have a complete, generic process for commanding that a generic DCC packet be sent to the rails.
-
Field Details
-
memo
-
-
Constructor Details
-
OlcbCommandStation
-
-
Method Details
-
sendPacket
OpenLCB/LCC does not have a complete, generic process for commanding that a generic DCC packet be sent to the rails.For now, this method just logs an error when invokved
- 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
- Specified by:
getUserNamein interfaceCommandStation
-
getSystemPrefix
- Specified by:
getSystemPrefixin interfaceCommandStation
-
sendAccSignalDecoderPkt
Description copied from interface:CommandStationAs a shortcut, and to allow for command station types that cannot sent generic packets to the rails, we provide this method to specifically send Accessory Signal Decoder Packets.It's equivalent to calling
NmraPacket.accSignalDecoderPkt(int, int)and sending the resulting packet to the rails- Specified by:
sendAccSignalDecoderPktin interfaceCommandStation- Parameters:
address- The DCC signal decoder address to useaspect- The signal aspect to sendcount- the number of times to repeat the send
-
sendAltAccSignalDecoderPkt
Description copied from interface:CommandStationAs a shortcut, and to allow for command station types that cannot sent generic packets to the rails, we provide this method to specifically send the alternate form of Accessory Signal Decoder Packets.It's equivalent to calling
NmraPacket.altAccSignalDecoderPkt(int, int)and sending the resulting packet to the rails- Specified by:
sendAltAccSignalDecoderPktin interfaceCommandStation- Parameters:
address- The DCC signal decoder address to useaspect- The signal aspect to sendcount- the number of times to repeat the send
-