Class RouteController

  • All Implemented Interfaces:
    java.beans.PropertyChangeListener, java.util.EventListener

    public class RouteController
    extends AbstractController
    implements java.beans.PropertyChangeListener
    • Method Detail

      • handleMessage

        void handleMessage​(java.lang.String message,
                           DeviceServer deviceServer)
        parse and process a route command message

        Format: PRA[command][routename] where command is always '2' for Toggle routename is a complete system name Can return HM error messages to client

        Specified by:
        handleMessage in class AbstractController
        message - Command string to be parsed
        deviceServer - client to send responses (error messages) back to
      • sendTitles

        public void sendTitles()
        Send Info on routes to devices, not specific to any one route.

        Format: PRT]\[routeText}|{routeKey]\[stateText}|{stateKey]\[stateText}|{stateKey...

      • sendList

        public void sendList()
        Send list of routes Format: PRL]\[SysName}|{UsrName}|{CurrentState]\[SysName}|{UsrName}|{CurrentState

        States: 1 - UNKNOWN, 2 - ACTIVE, 4 - INACTIVE (based on turnoutsAligned sensor, if used)

      • propertyChange

        public void propertyChange​(java.beans.PropertyChangeEvent evt)
        This is on the aligned sensor, not the route itself.
        Specified by:
        propertyChange in interface java.beans.PropertyChangeListener