|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.loconet.AbstractAlmImplementation
jmri.jmrix.loconet.Se8AlmImplementation
public class Se8AlmImplementation
ALM implementation for the SE8.
LocoNet ALM messages showing a argument value N will show in the throttle editor as N+1. Here, we refer to these as "arguments" and "throttle values". Similarly, the addresses are "addresses" in the ALM, based on zero, and "entries" in the throttle, based on 1.
Internally, this stores data as a single address-space vector from 0 to some maximum value, addressed by (block)*4+item or by (SE_NUM)*ENTRYSIZE+item. The item index is 0,1,2,3 for blocks, or 0,1,2,...ENTRYSIZE-1 for addressing with an SE.
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 | |
|---|---|
static int |
ENTRYSIZE
|
| Fields inherited from class jmri.jmrix.loconet.AbstractAlmImplementation |
|---|
mImage, mNumber |
| Constructor Summary | |
|---|---|
Se8AlmImplementation(int pNumber,
boolean pImage)
Create an object representing the ALM entries for a single SE8 unit |
|
| Method Summary | |
|---|---|
int |
getACon(int se)
|
int |
getALeg(int se)
|
int |
getBCon(int se)
|
int |
getBLeg(int se)
|
int |
getCCon(int se)
|
int |
getCLeg(int se)
|
int |
getDS(int se)
|
int |
getTO(int se)
|
void |
noteReadReply(int block)
Keep a read going if needed |
void |
noteWriteComplete(int block)
Keep a write going if needed |
int |
retrieveBySE(int SE,
int item)
Retrieve using SE index. |
void |
setACon(int se,
int value)
|
void |
setALeg(int se,
int value)
|
void |
setBCon(int se,
int value)
|
void |
setBLeg(int se,
int value)
|
void |
setCCon(int se,
int value)
|
void |
setCLeg(int se,
int value)
|
void |
setDS(int se,
int value)
|
void |
setTO(int se,
int value)
|
void |
storeBySE(int SE,
int item,
int value)
Store using SE index. |
void |
triggerRead(int se)
Start the process of reading the values for an SE Note that SEs are numbered starting with 1, not zero. |
void |
triggerWrite(int se)
Start the process of writing the values for an SE Note that SEs are numbered starting with 1, not zero. |
| Methods inherited from class jmri.jmrix.loconet.AbstractAlmImplementation |
|---|
message, noteChanged, noteReadCmd |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ENTRYSIZE
| Constructor Detail |
|---|
public Se8AlmImplementation(int pNumber,
boolean pImage)
pNumber - Number of this ALMpImage - Does this appear on LocoNet?| Method Detail |
|---|
public int getACon(int se)
public int getBCon(int se)
public int getCCon(int se)
public int getALeg(int se)
public int getBLeg(int se)
public int getCLeg(int se)
public int getTO(int se)
public int getDS(int se)
public void setACon(int se,
int value)
public void setBCon(int se,
int value)
public void setCCon(int se,
int value)
public void setALeg(int se,
int value)
public void setBLeg(int se,
int value)
public void setCLeg(int se,
int value)
public void setTO(int se,
int value)
public void setDS(int se,
int value)
public int retrieveBySE(int SE,
int item)
public void storeBySE(int SE,
int item,
int value)
public void noteReadReply(int block)
noteReadReply in class AbstractAlmImplementationpublic void noteWriteComplete(int block)
noteWriteComplete in class AbstractAlmImplementationpublic void triggerRead(int se)
Note that SEs are numbered starting with 1, not zero.
public void triggerWrite(int se)
Note that SEs are numbered starting with 1, not zero.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||