Package jline.solvers.fluid.handlers
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 -
Constructor Summary
ConstructorsConstructorDescriptionTransientDataHandler(int numDimensions) Constructs a transient data handler for the specified number of state dimensions. -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleStep(org.apache.commons.math3.ode.sampling.StepInterpolator interpolator, boolean isLast) Handles each integration step by storing the time and state vector data.voidinit(double t0, double[] x0, double t)
-
Field Details
-
tVec
Time vector storing integration time points -
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:
handleStepin interfaceorg.apache.commons.math3.ode.sampling.StepHandler- Parameters:
interpolator- provides access to current time and interpolated stateisLast- indicates if this is the final integration step
-
init
public void init(double t0, double[] x0, double t) - Specified by:
initin interfaceorg.apache.commons.math3.ode.sampling.StepHandler
-