Class SystemUnderCtrl

  • All Implemented Interfaces:
    Action

    public class SystemUnderCtrl
    extends Object
    implements Action
    Class for building a test model for the level control system. Is a simple simulation model of a tank.
    Author:
    Herbert Praehofer
    • Field Detail

      • area

        private final double area
        The base area of the tank
      • losses

        private final double losses
        Losses of the tank
      • level

        private final DVar level
        The variable for the current level of the tank
      • flow

        private final DVar flow
        The variable for the inflow to the tank
      • lastTime

        private long lastTime
    • Constructor Detail

      • SystemUnderCtrl

        public SystemUnderCtrl​(double area,
                               double losses,
                               DVar level,
                               DVar inflow)
        Constructor setting up the tank
        Parameters:
        area - the base area
        losses - the losses of the tank
        level - the level variable
        inflow - the inflow variable
    • Method Detail

      • exec

        public void exec()
        Executes the model.
        Specified by:
        exec in interface Action