Class LevelControl

  • All Implemented Interfaces:
    Action

    public class LevelControl
    extends StateModel<States>
    State transition model for controlling the level of a tank.
    Author:
    Herbert Praehofer
    • Field Detail

      • FULL_LEVEL

        static final double FULL_LEVEL
        Constants for full und empty level and constant inflow
        See Also:
        Constant Field Values
      • EMPTY_LEVEL

        static final double EMPTY_LEVEL
        Constants for full und empty level and constant inflow
        See Also:
        Constant Field Values
      • INFLOW

        static final double INFLOW
        Constants for full und empty level and constant inflow
        See Also:
        Constant Field Values
      • level

        private final DVar level
        Variables for the current level
      • inflow

        private final DVar inflow
        Variables for the current level and the inflow (which is a control output)
      • stop

        private BVar stop
        Variable for the Boolean input signal to stop filling
    • Constructor Detail

      • LevelControl

        public LevelControl​(DVar _level,
                            BVar _stop,
                            DVar _inflow)
        Constructor for building the level control system. The input and out variables are set. Then the transition model is built using the DSL.
        Parameters:
        _level - the variable for the current level
        _stop - the variable for the stop signal
        _inflow - the variable for the output of the controller defining the inflow to the tank