Class SerialNode

  • public class SerialNode
    extends AbstractNode
    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.

    • Constructor Detail

      • SerialNode

        public SerialNode​(SerialTrafficController tc)
        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.
        tc - serial traffic controller.
      • SerialNode

        public SerialNode​(int address,
                          int type,
                          SerialTrafficController tc)
        Create a new SerialNode and initialize default instance variables.
        address - Address of node on serial bus (0-99)
        type - 0 (ignored)
        tc - system traffic controller.