Interface ProcessStateNotifier

    • Method Detail

      • getCurrentState

        ControlledProcessState.State getCurrentState()
        Gets the current state of the controlled process.
        Returns:
        the current state. Will not be null
      • addPropertyChangeListener

        void addPropertyChangeListener​(PropertyChangeListener listener)
        Register a listener for changes in the current state. The listener will be notified with a PropertyChangeEvent whose property name will be currentState. If listener is null, no exception is thrown and no action is taken.
        Parameters:
        listener - the listener
      • removePropertyChangeListener

        void removePropertyChangeListener​(PropertyChangeListener listener)
        Remove a listener for changes in the current state. If listener was added more than once, it will be notified one less time after being removed. If listener is null, or was never added, no exception is thrown and no action is taken.
        Parameters:
        listener - the listener