Class TransientDataHandler

  • All Implemented Interfaces:
    org.apache.commons.math3.ode.sampling.StepHandler

    
    public class TransientDataHandler
     implements StepHandler
                        

    Step handler for capturing transient data during fluid solver ODE integration.

    This class implements the Apache Commons Math StepHandler interface to collect time series data during numerical integration of ordinary differential equations in fluid queueing network analysis. It captures state vectors at each integration step for transient performance analysis.

    Key capabilities:

    • Dynamic storage of time points and state vectors
    • Automatic array resizing for long simulations
    • Non-negative value enforcement for physical constraints
    • Memory optimization through array shrinking
    Since:

    1.0

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      TransientDataHandler(int numDimensions) Constructs a transient data handler for the specified number of state dimensions.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void handleStep(StepInterpolator interpolator, boolean isLast) Handles each integration step by storing the time and state vector data.
      void init(double t0, Array<double> x0, double t)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TransientDataHandler

        TransientDataHandler(int numDimensions)
        Constructs a transient data handler for the specified number of state dimensions.
        Parameters:
        numDimensions - number of state variables in the ODE system
    • Method Detail

      • handleStep

         void handleStep(StepInterpolator interpolator, boolean isLast)

        Handles each integration step by storing the time and state vector data.

        This method is called by the ODE integrator at each step. It captures the current time and interpolated state vector, enforcing non-negative constraints and managing dynamic array resizing as needed.

        Parameters:
        interpolator - provides access to current time and interpolated state
        isLast - indicates if this is the final integration step
      • init

         void init(double t0, Array<double> x0, double t)