Class AbstractTrigger

    • Field Detail

      • m_TriggerHandler

        protected TriggerHandler m_TriggerHandler
        the restart handler to notify.
    • Constructor Detail

      • AbstractTrigger

        public AbstractTrigger()
    • Method Detail

      • setTriggerHandler

        public void setTriggerHandler​(TriggerHandler value)
        Sets the trigger handler to use.
        Parameters:
        value - the handler to use
      • getTriggerHandler

        public TriggerHandler getTriggerHandler()
        Returns the trigger handler.
        Returns:
        the handler
      • getQuickInfo

        public String getQuickInfo()
        Returns a quick info about the object, which can be displayed in the GUI.
        Default implementation returns null.
        Specified by:
        getQuickInfo in interface QuickInfoSupporter
        Returns:
        null if no info available, otherwise short string
      • check

        protected String check​(Flow flow)
        Performs checks before starting the trigger.
        Parameters:
        flow - the flow to check
        Returns:
        null if successfully checked, otherwise error message
      • doStart

        protected abstract String doStart​(Flow flow)
        Starts the trigger.
        Parameters:
        flow - the flow to handle
        Returns:
        null if successfully started, otherwise error message
      • start

        public String start​(Flow flow)
        Starts the trigger.
        Parameters:
        flow - the flow to handle
        Returns:
        null if successfully started, otherwise error message
      • stop

        public abstract String stop()
        Stops the trigger.
        Returns:
        null if successfully stopped, otherwise error message