|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.lenz.LenzCommandStation
public class LenzCommandStation
Defines the standard/common routines used in multiple classes related to the a Lenz Command Station, on an XPressNet network.
| Constructor Summary | |
|---|---|
LenzCommandStation()
|
|
| Method Summary | |
|---|---|
float |
getCommandStationSoftwareVersion()
return the CS Software Version |
float |
getCommandStationSoftwareVersionBCD()
return the CS Software Version in BCD (for use in comparisons) |
int |
getCommandStationType()
return the CS Type |
static int |
getDCCAddressHigh(int address)
Get the Upper byte of a locomotive address from the decimal locomotive address |
static int |
getDCCAddressLow(int address)
Get the Lower byte of a locomotive address from the decimal locomotive address |
boolean |
getHasServiceMode()
Lenz does use a service mode |
boolean |
getInServiceMode()
If this command station has a service mode, is the command station currently in that mode? |
String |
getVersionString()
Provides the version string returned during the initial check. |
boolean |
isOpsModePossible()
XPressNet command station does provide Ops Mode We should make this return false based on what command station we're using but for now, we'll return true |
void |
sendPacket(byte[] packet,
int repeats)
Send a specific packet to the rails. |
void |
setCommandStationSoftwareVersion(float v)
set the CS Software Version |
void |
setCommandStationSoftwareVersion(XNetReply l)
Set the CS Software Version based on an XPressNet Message |
void |
setCommandStationType(int t)
set the CS Type |
void |
setCommandStationType(XNetReply l)
Set the CS type based on an XPressNet Message |
void |
setTrafficController(XNetTrafficController tc)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LenzCommandStation()
| Method Detail |
|---|
public int getCommandStationType()
public void setCommandStationType(int t)
public void setCommandStationType(XNetReply l)
public float getCommandStationSoftwareVersion()
public float getCommandStationSoftwareVersionBCD()
public void setCommandStationSoftwareVersion(float v)
public void setCommandStationSoftwareVersion(XNetReply l)
public String getVersionString()
getVersionString in interface DccCommandStationpublic boolean getHasServiceMode()
getHasServiceMode in interface DccCommandStationpublic boolean getInServiceMode()
getInServiceMode in interface DccCommandStationpublic boolean isOpsModePossible()
public static int getDCCAddressLow(int address)
public static int getDCCAddressHigh(int address)
public void sendPacket(byte[] packet,
int repeats)
sendPacket in interface CommandStationpacket - Byte array representing the packet, including
the error-correction byte. Must not be null.repeats - Number of times to repeat the transmission.public void setTrafficController(XNetTrafficController tc)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||