Package cnuphys.adaptiveSwim
Interface IAdaptiveStopper
- All Known Implementing Classes:
- AAdaptiveStopper,- AdaptiveCylinderStopper,- AdaptiveDefaultStopper,- AdaptiveLineStopper,- AdaptivePlaneStopper,- AdaptiveRhoStopper,- AdaptiveSphereStopper,- AdaptiveSStopper,- AdaptiveZStopper
public interface IAdaptiveStopper
- 
Method SummaryModifier and TypeMethodDescriptiondoubleGet the max step size.doublegetS()Get the current independent variabledoublegetSmax()Get the max or final value of the independent variabledouble[]getU()Get the current value of the state vectorbooleanstopIntegration(double snew, double[] unew) Given the current state of the integration, should we stop?
- 
Method Details- 
stopIntegrationboolean 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:
- trueif we should stop now.
 
- 
getSdouble getS()Get the current independent variable- Returns:
- the current independent variable
 
- 
getUdouble[] getU()Get the current value of the state vector- Returns:
- the current value of the state vector
 
- 
getSmaxdouble getSmax()Get the max or final value of the independent variable- Returns:
- the max or final value of the independent variable
 
- 
getMaxStepSizedouble 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
 
 
-