Interface IAdaptiveStopper

All Known Implementing Classes:
AAdaptiveStopper, AdaptiveCylinderStopper, AdaptiveDefaultStopper, AdaptiveLineStopper, AdaptivePlaneStopper, AdaptiveRhoStopper, AdaptiveSphereStopper, AdaptiveSStopper, AdaptiveZStopper

public interface IAdaptiveStopper
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    double
    Get the max step size.
    double
    Get the current independent variable
    double
    Get the max or final value of the independent variable
    double[]
    Get the current value of the state vector
    boolean
    stopIntegration(double snew, double[] unew)
    Given the current state of the integration, should we stop?
  • Method Details Link icon

    • stopIntegration Link icon

      boolean stopIntegration(double snew, double[] unew)
      Given the current state of the integration, should we stop? This allows the integration to stop, for example, if some distance from the origin has been exceeded or if the independent variable passes some threshold. It won't be precise, because the check may not happen on every step, but it should be close.
      Parameters:
      sNew - the new value of the independent variable (typically pathlength)
      uNew - the new state vector (typically [x, y, z, vx, vy, vz])
      Returns:
      true if we should stop now.
    • getS Link icon

      double getS()
      Get the current independent variable
      Returns:
      the current independent variable
    • getU Link icon

      double[] getU()
      Get the current value of the state vector
      Returns:
      the current value of the state vector
    • getSmax Link icon

      double getSmax()
      Get the max or final value of the independent variable
      Returns:
      the max or final value of the independent variable
    • getMaxStepSize Link icon

      double getMaxStepSize()
      Get the max step size. This can vary with conditions, primarily with the proximity to a target
      Returns:
      the current max step in meters