|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.loconet.LnSensorAddress
public class LnSensorAddress
Utilities for handling LocoNet sensor addresses.
There are three addressing spaces for LocoNet sensors:
Some of the message formats used in this class are Copyright Digitrax, Inc. and used with permission as part of the JMRI project. That permission does not extend to uses in other software products. If you wish to use this code, algorithm or these message formats outside of JMRI, please contact Digitrax Inc for separate permission.
| Field Summary | |
|---|---|
(package private) int |
_as
|
(package private) int |
_high
|
(package private) int |
_low
|
(package private) boolean |
_valid
|
(package private) static org.slf4j.Logger |
log
|
(package private) String |
prefix
|
| Constructor Summary | |
|---|---|
LnSensorAddress(int sw1,
int sw2)
Deprecated. 2.9.4 |
|
LnSensorAddress(int sw1,
int sw2,
String prefix)
|
|
LnSensorAddress(String s)
Deprecated. 2.9.4 |
|
LnSensorAddress(String s,
String prefix)
|
|
| Method Summary | |
|---|---|
protected int |
asInt()
|
int |
getASBit()
The bit representing the Aux or Sensor input |
String |
getBDL16Address()
Name in the BDL16 space |
String |
getDS54Address()
Name in the DS54 space |
int |
getHighBits()
|
int |
getLowBits()
|
String |
getNumericAddress()
Name in the 1-4096 space |
void |
insertAddress(LocoNetMessage m)
Update a LocoNet message to have this address. |
boolean |
isValid()
|
boolean |
matchAddress(int a1,
int a2)
|
(package private) void |
reportParseError(String s)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
int _low
int _high
int _as
String prefix
boolean _valid
static org.slf4j.Logger log
| Constructor Detail |
|---|
public LnSensorAddress(int sw1,
int sw2,
String prefix)
@Deprecated
public LnSensorAddress(int sw1,
int sw2)
@Deprecated public LnSensorAddress(String s)
public LnSensorAddress(String s,
String prefix)
| Method Detail |
|---|
void reportParseError(String s)
public void insertAddress(LocoNetMessage m)
m -
public boolean matchAddress(int a1,
int a2)
protected int asInt()
public int getLowBits()
public int getHighBits()
public int getASBit()
public boolean isValid()
public String toString()
toString in class Objectpublic String getNumericAddress()
public String getDS54Address()
public String getBDL16Address()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||