Class RatControlState

  • All Implemented Interfaces:
    adams.core.logging.LoggingSupporter, adams.core.SizeOfHandler, Serializable

    public class RatControlState
    extends AbstractControlState<Rat>
    Control state for Rat actor.
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_StopStart

        protected boolean m_StopStart
        the button for stopping/starting.
    • Constructor Detail

      • RatControlState

        public RatControlState()
    • Method Detail

      • stop

        public String stop()
        Stops the rat.
        Returns:
        null if successful, otherwise error message
      • start

        public String start()
        Starts the rat.
        Returns:
        null if successful, otherwise error message
      • stopOrStart

        public String stopOrStart()
        Stops/starts the rat.
        Returns:
        null if successful, otherwise error message
      • updateButtons

        public void updateButtons()
        Updates the state of the buttons.
      • setStoppable

        public void setStoppable​(boolean value)
        Sets the "stoppable" state of the control staet.
        Parameters:
        value - true if to enable
      • isStoppable

        public boolean isStoppable()
        Returns whether the "stoppable" state of the control state is enabled.
        Returns:
        true if enabled