Class QSSIntegrator

    • Field Detail

      • u

        public TypedIOPort u
        Deprecated.
        Input (the derivative).
      • q

        public TypedIOPort q
        Deprecated.
        Output (the quantized state).
      • xInit

        public Parameter xInit
        Deprecated.
        Initial value of the state.
      • quantum

        public Parameter quantum
        Deprecated.
        Quantum.
      • _SMALL

        protected static final double _SMALL
        Deprecated.
        A small number, below which the slope is considered to be zero.
        See Also:
        Constant Field Values
    • Method Detail

      • isStrict

        public boolean isStrict()
        Deprecated.
        Return false, indicating that this actor can fire even if its input is unknown.
        Specified by:
        isStrict in interface Executable
        Overrides:
        isStrict in class AtomicActor<TypedIOPort>
        Returns:
        False.
      • _derivative

        protected double _derivative​(double input)
        Deprecated.
        Return the derivative (slope) at the current time with the given input value. In this base class, the input is assumed to be the derivative, so this method just returns its argument. Derived classes may provide some other function to provide a derivative.
        Parameters:
        input - The input value.
        Returns:
        The current derivative.
      • _nextCrossingTime

        protected Time _nextCrossingTime​(double slope,
                                         double start,
                                         double reference,
                                         double quantum,
                                         Time currentTime)
        Deprecated.
        Return the next time at which a line with the given slope will rise or fall from the specified starting point to the specified reference plus or minus the specified quantum. If the specified slope is smaller than the value of _SMALL, then return Time.POSITIVE_INFINITY. If the starting point has already hit or crossed the specified reference plus or minus the specified quantum, then return the current time.
        Parameters:
        slope - The derivative.
        start - The starting point.
        reference - The reference point.
        quantum - The quantum.
        currentTime - The current time.
        Returns:
        The next event time.
      • _nextOutputValue

        protected double _nextOutputValue​(double slope,
                                          double reference,
                                          double quantum)
        Deprecated.
        Return the next output value, which is the reference plus the quantum if the slope is positive, and the reference minus the quantum otherwise.
        Parameters:
        slope - The slope.
        reference - The reference.
        quantum - The quantum.
        Returns:
        The reference plus or minus the quantum.
      • _quantize

        protected double _quantize​(double x)
                            throws IllegalActionException
        Deprecated.
        Return the argument quantized to a multiple of quantum given by the quantum parameter.
        Parameters:
        x - The value to quantize.
        Returns:
        A quantized value.
        Throws:
        IllegalActionException - If the quantum parameter cannot be evaluated.