|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.loconet.AbstractAlmImplementation
public abstract class AbstractAlmImplementation
Provide an ALM that lives on the LocoNet.
ALMs work in terms of numbered (indexed) Args, each 14 bits long. These are typically in the SW1, SW2 format, but don't have to be.
This ALM can operate in one of two modes:
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 | |
|---|---|
protected boolean |
mImage
Does this ALM reply on the LocoNet, or just form an image of an implementation elsewhere? |
protected int |
mNumber
What ALM number does this object respond to? |
| Constructor Summary | |
|---|---|
AbstractAlmImplementation(int pNumber,
boolean pImage)
|
|
| Method Summary | |
|---|---|
void |
message(LocoNetMessage msg)
Interpret LocoNet traffic. |
void |
noteChanged(int block)
Notify possible subclass that a block has changed. |
void |
noteReadCmd(int block)
Notify possible subclass that a read cmd is being handled |
void |
noteReadReply(int block)
Notify possible subclass that a read reply is being handled |
void |
noteWriteComplete(int block)
Notify possible subclass that a write operation is complete |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int mNumber
protected boolean mImage
True for image, false for primary implementation on LocoNet
| Constructor Detail |
|---|
public AbstractAlmImplementation(int pNumber,
boolean pImage)
| Method Detail |
|---|
public void message(LocoNetMessage msg)
message in interface LocoNetListenermsg - Input messagepublic void noteChanged(int block)
public void noteReadCmd(int block)
public void noteReadReply(int block)
public void noteWriteComplete(int block)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||