Package cnuphys.adaptiveSwim
Class AdaptiveSStopper
java.lang.Object
cnuphys.adaptiveSwim.AAdaptiveStopper
cnuphys.adaptiveSwim.AdaptiveSStopper
- All Implemented Interfaces:
- IAdaptiveStopper
For when we want to swim a precise path length
- Author:
- heddle
- 
Field SummaryFields inherited from class cnuphys.adaptiveSwim.AAdaptiveStopper_dim, _hLast, _s, _sf, _THEMAXSTEP, _trajectory, _u
- 
Constructor SummaryConstructorsConstructorDescriptionAdaptiveSStopper(double[] u0, double sf, double accuracy, SwimTrajectory trajectory) Pathlength stopper
- 
Method SummaryModifier and TypeMethodDescriptionbooleanstopIntegration(double snew, double[] unew) Given the current state of the integration, should we stop?Methods inherited from class cnuphys.adaptiveSwim.AAdaptiveStopperaccept, copy, getMaxStepSize, getS, getSmax, getU, setMaxStep
- 
Constructor Details- 
AdaptiveSStopperPathlength stopper- Parameters:
- u0- initial state vector
- sf- final path length meters
- accuracy- the accuracy
- trajectory- optional trajectory
 
 
- 
- 
Method Details- 
stopIntegrationpublic boolean stopIntegration(double snew, double[] unew) Description copied from interface:IAdaptiveStopperGiven 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.- Returns:
- trueif we should stop now.
 
 
-