Package jmri.jmrix.zimo
Class Mx1CommandStation
java.lang.Object
jmri.jmrix.zimo.Mx1CommandStation
- All Implemented Interfaces:
CommandStation
Defines standard operations for Dcc command stations.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMx1CommandStation(String systemName) Mx1CommandStation(String systemName, String userName) -
Method Summary
Modifier and TypeMethodDescriptionintbcdToAsc(int hex) getReadPagedCVMsg(int cv) getWritePagedCVMsg(int cv, int val) 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, waitMethods inherited from interface jmri.CommandStation
sendAccSignalDecoderPkt, sendAltAccSignalDecoderPkt
-
Field Details
-
systemName
-
userName
-
-
Constructor Details
-
Mx1CommandStation
-
Mx1CommandStation
-
Mx1CommandStation
public Mx1CommandStation()
-
-
Method Details
-
sendPacket
Send a specific packet to the rails.This implementation always returns false, as sending a packet isn't implemented for the Zimo command stations
- Specified by:
sendPacketin interfaceCommandStation- Parameters:
packet- Byte array representing the packet, including the error-correction byte.repeats- Number of times to repeat the transmission.- Returns:
trueif the operation succeeds,falseotherwise.
-
getUserName
- Specified by:
getUserNamein interfaceCommandStation
-
getSystemPrefix
- Specified by:
getSystemPrefixin interfaceCommandStation
-
resetModeMsg
-
getReadPagedCVMsg
-
getWritePagedCVMsg
-
bcdToAsc
-