Class MqttSignalMast

  • All Implemented Interfaces:
    java.beans.VetoableChangeListener, java.lang.Comparable<NamedBean>, java.util.EventListener, PropertyChangeProvider, NamedBean, Signal, SignalMast

    public class MqttSignalMast
    extends AbstractSignalMast
    SignalMast implemented via MQTT messages

    System name specifies the creation information:

     IF$mqm:basic:one-searchlight($0001)
     
    The name is a colon-separated series of terms:
    • IF$mqm - defines signal masts of this type
    • basic - name of the signaling system
    • one-searchlight - name of the particular aspect map
    • ($0001) - small ordinal number for telling various signal masts apart apart
    • Constructor Detail

      • MqttSignalMast

        public MqttSignalMast​(java.lang.String systemName,
                              java.lang.String userName)
      • MqttSignalMast

        public MqttSignalMast​(java.lang.String systemName)
    • Method Detail

      • makeSendTopic

        protected java.lang.String makeSendTopic​(java.lang.String systemName)
      • setHeld

        public void setHeld​(boolean held)
        Description copied from class: AbstractSignalMast
        Set the held property of the signal mast.

        Note that this does not directly effect the output on the layout; the held property is a local variable which effects the aspect only via higher-level logic.

        Specified by:
        setHeld in interface Signal
        Specified by:
        setHeld in interface SignalMast
        Overrides:
        setHeld in class AbstractSignalMast
        Parameters:
        held - the new value of the help property
      • setLastRef

        protected static void setLastRef​(int newVal)
        Parameters:
        newVal - for ordinal of all MqttSignalMasts in use
      • getLastRef

        public static int getLastRef()
        Returns:
        highest ordinal of all MqttSignalMasts in use