|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.AbstractNode
jmri.jmrix.maple.SerialNode
public class SerialNode
Models a serial node, consisting of one Maple Systems HMI touch screen panel.
Nodes are numbered ala the Station number, from 1 to 99.
The array of sensor states is used to update sensor known state only when there's a change on the serial bus. This allows for the sensor state to be updated within the program, keeping this updated state until the next change on the serial bus. E.g. you can manually change a state via an icon, and not have it change back the next time that node is polled.
| Field Summary |
|---|
| Fields inherited from class jmri.jmrix.AbstractNode |
|---|
nodeAddress |
| Constructor Summary | |
|---|---|
SerialNode()
Assumes a node address of 1, and a node type of 0 If this constructor is used, actual node address must be set using setNodeAddress. |
|
SerialNode(int address,
int type)
Creates a new SerialNode and initialize default instance variables address - Address of node on serial bus (0-99) type - 0 (ignored). |
|
| Method Summary | |
|---|---|
protected boolean |
checkNodeAddress(int address)
Check valid node address, must match value configured in the Maple HMI Allowed values are 1-99 |
AbstractMRMessage |
createInitPacket()
Public Method to create an Initialization packet (SerialMessage) for this node Note: Maple Systems devices do not need initialization. |
AbstractMRMessage |
createOutPacket()
Public Method to create an Transmit packet (SerialMessage) Not used in Maple. |
int |
getAddress()
Public access to this node's address |
boolean |
getSensorsActive()
Public method to return state of Sensors. |
int |
getTimeoutCount()
|
boolean |
handleTimeout(AbstractMRMessage m,
AbstractMRListener l)
Deal with a timeout in the transmission controller. |
void |
resetTimeout(AbstractMRMessage m)
A reply was received, so there was not timeout, do any needed processing. |
| Methods inherited from class jmri.jmrix.AbstractNode |
|---|
getNodeAddress, mustSend, resetMustSend, setMustSend, setNodeAddress |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SerialNode()
public SerialNode(int address,
int type)
| Method Detail |
|---|
public boolean getSensorsActive()
getSensorsActive in class AbstractNodeprotected boolean checkNodeAddress(int address)
checkNodeAddress in class AbstractNodepublic int getAddress()
public AbstractMRMessage createInitPacket()
createInitPacket in class AbstractNodepublic AbstractMRMessage createOutPacket()
createOutPacket in class AbstractNode
public boolean handleTimeout(AbstractMRMessage m,
AbstractMRListener l)
AbstractNode
handleTimeout in class AbstractNodem - message that didn't receive a replyl - listener that sent the message
public void resetTimeout(AbstractMRMessage m)
AbstractNode
resetTimeout in class AbstractNodepublic int getTimeoutCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||