Class QSS3Pts


  • public final class QSS3Pts
    extends QSSBase
    Implement the QSS3 method for solving ordinary differential equations.

    Pts: When handling a rate-event, select the time at which to estimate the second derivative for the internal, continuous state model using a "pertubation time scale" procedure.

    Since:
    Ptolemy II 11.0
    Version:
    $Id$
    Author:
    David M. Lorenzetti, Contributor: Thierry S. Nouidui
    Pt.AcceptedRating:
    red (reviewmoderator) // FIXME: Fill in.
    Pt.ProposedRating:
    red (dmlorenzetti)
    • Constructor Detail

      • QSS3Pts

        public QSS3Pts()
    • Method Detail

      • getStateModelOrder

        public final int getStateModelOrder()
        Get the order of the external, quantized state models exposed by the integrator.
        Specified by:
        getStateModelOrder in class QSSBase
        Returns:
        Order of the external, quantized state models.
      • _initializeWorker

        public final void _initializeWorker()
        Initialize object fields (QSS-specific).
        Specified by:
        _initializeWorker in class QSSBase
      • _predictQuantizationEventTimeWorker

        protected final Time _predictQuantizationEventTimeWorker​(int stateIdx,
                                                                 Time quantEvtTimeMax)
        Get the predicted quantization-event time for a state (QSS-specific).
        Specified by:
        _predictQuantizationEventTimeWorker in class QSSBase
        Parameters:
        stateIdx - The state index.
        quantEvtTimeMax - The maximum quantization event time.
        Returns:
        the predicted quantization-event time for a state (QSS-specific).
      • _triggerQuantizationEventWorker

        protected final void _triggerQuantizationEventWorker​(int stateIdx)
        Form a new external, quantized state model (QSS-specific).
        Specified by:
        _triggerQuantizationEventWorker in class QSSBase
        Parameters:
        stateIdx - The state index.
      • _triggerRateEventWorker

        protected final void _triggerRateEventWorker()
                                              throws java.lang.Exception
        Form new internal, continuous state models (QSS-specific).
        Specified by:
        _triggerRateEventWorker in class QSSBase
        Throws:
        java.lang.Exception - If the rate event worker fails.
      • _triggerRateEventWorkerEventDetection

        protected final void _triggerRateEventWorkerEventDetection()
                                                            throws java.lang.Exception
        Form new internal, continuous state models (QSS-specific).
        Specified by:
        _triggerRateEventWorkerEventDetection in class QSSBase
        Throws:
        java.lang.Exception - If the rate event worker event detection fails.