Class TransientDataHandler

java.lang.Object
jline.solvers.fluid.handlers.TransientDataHandler
All Implemented Interfaces:
org.apache.commons.math3.ode.sampling.StepHandler

public class TransientDataHandler extends Object implements org.apache.commons.math3.ode.sampling.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.

Uses dense DMatrixRMaj internally for O(1) element access during step handling, converting to Matrix objects only when the integration completes.

Since:
1.0
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Time vector storing integration time points
    State vector matrix storing system state at each time point [time x dimensions]
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    void
    handleStep(org.apache.commons.math3.ode.sampling.StepInterpolator interpolator, boolean isLast)
    Handles each integration step by storing the time and state vector data.
    void
    init(double t0, double[] x0, double t)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • tVec

      public Matrix tVec
      Time vector storing integration time points
    • xVec

      public Matrix xVec
      State vector matrix storing system state at each time point [time x dimensions]
  • Constructor Details

    • TransientDataHandler

      public 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 Details

    • handleStep

      public void handleStep(org.apache.commons.math3.ode.sampling.StepInterpolator interpolator, boolean isLast)
      Handles each integration step by storing the time and state vector data.
      Specified by:
      handleStep in interface org.apache.commons.math3.ode.sampling.StepHandler
      Parameters:
      interpolator - provides access to current time and interpolated state
      isLast - indicates if this is the final integration step
    • init

      public void init(double t0, double[] x0, double t)
      Specified by:
      init in interface org.apache.commons.math3.ode.sampling.StepHandler