Package cnuphys.swimtest
Class TestTrajectories
java.lang.Object
cnuphys.swimtest.TestTrajectories
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTrajectory
(TrajectorySummary summary) add a summary to the collectiondouble
get()
Get the initial step sizedouble
Get the z stopping accuracydouble
Get the z stopping value in metersdouble
Get the max path lengthdouble[]
Get the relative tolerance used by the swimmerdouble
Get the scale factor used by the solenoidGet the path to the torusdouble
Get the scale factor used by the torusboolean
Was the solenoid usedboolean
Was the torus usedset
(double value) Set the initial step sizesetAccuracy
(double value) Set the z stopping accuracy in meterssetFixedZ
(double value) Set the z stopping value in meterssetIncludeSolenoid
(boolean incSolenoid) Set whether we included the solenoidsetIncludeTorus
(boolean incTorus) Set whether we included the torussetMaxPathLength
(double value) Set the max path lengthsetRelativeTolerance
(double[] relTol) Set the relative tolerance for the swimmersetSolenoidScale
(double scale) Set the scale factor used by the solenoidsetTorusPath
(String path) Set the path used by the torussetTorusScale
(double scale) Set the scale factor used by the torusint
size()
Get the number of summaries
-
Constructor Details
-
TestTrajectories
public TestTrajectories()
-
-
Method Details
-
addTrajectory
add a summary to the collection- Parameters:
summary
- the summary to add
-
getReletiveTolerance
public double[] getReletiveTolerance()Get the relative tolerance used by the swimmer- Returns:
- the relative tolerance
-
setRelativeTolerance
Set the relative tolerance for the swimmer- Parameters:
relTol
- the relative tolerance- Returns:
- this object for chaining
-
get
public double get()Get the initial step size- Returns:
- the initial step size in meters
-
set
Set the initial step size- Parameters:
value
- the value in meters- Returns:
- this object for chaining
-
getAccuracy
public double getAccuracy()Get the z stopping accuracy- Returns:
- the z stopping accuracy in meters
-
setAccuracy
Set the z stopping accuracy in meters- Parameters:
value
- the value in meters- Returns:
- this object for chaining
-
getMaxPathLength
public double getMaxPathLength()Get the max path length- Returns:
- the max path length in meters
-
setMaxPathLength
Set the max path length- Parameters:
value
- the value in meters- Returns:
- this object for chaining
-
getFixedZ
public double getFixedZ()Get the z stopping value in meters- Returns:
- the z stopping value in meters
-
setFixedZ
Set the z stopping value in meters- Parameters:
value
- the value in meters- Returns:
- this object for chaining
-
getTorusPath
Get the path to the torus- Returns:
- the path used by the torus
-
setTorusPath
Set the path used by the torus- Parameters:
path
- the full path- Returns:
- this object for chaining
-
getTorusScale
public double getTorusScale()Get the scale factor used by the torus- Returns:
- the scale factor used by the torus
-
setTorusScale
Set the scale factor used by the torus- Parameters:
scale
- the scale factor- Returns:
- this object for chaining
-
getSolenoidScale
public double getSolenoidScale()Get the scale factor used by the solenoid- Returns:
- the scale factor used by the solenoid
-
setSolenoidScale
Set the scale factor used by the solenoid- Parameters:
scale
- the scale solenoid- Returns:
- this object for chaining
-
includeTorus
public boolean includeTorus()Was the torus used- Returns:
true
if the torus was included in the swimming
-
setIncludeTorus
Set whether we included the torus- Parameters:
incTorus
- the value of the flag- Returns:
- this object for chaining
-
setIncludeSolenoid
Set whether we included the solenoid- Parameters:
incSolenoid
- the value of the flag
-
includeSolenoid
public boolean includeSolenoid()Was the solenoid used- Returns:
true
if the solenoid was included in the swimming
-
size
public int size()Get the number of summaries- Returns:
- the number of summaries
-