Class TestTrajectories

java.lang.Object
cnuphys.swimtest.TestTrajectories
All Implemented Interfaces:
Serializable

public class TestTrajectories extends Object implements Serializable
See Also:
  • Constructor Details

    • TestTrajectories

      public TestTrajectories()
  • Method Details

    • addTrajectory

      public void addTrajectory(TrajectorySummary summary)
      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

      public TestTrajectories setRelativeTolerance(double[] relTol)
      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

      public TestTrajectories set(double value)
      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

      public TestTrajectories setAccuracy(double value)
      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

      public TestTrajectories setMaxPathLength(double value)
      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

      public TestTrajectories setFixedZ(double value)
      Set the z stopping value in meters
      Parameters:
      value - the value in meters
      Returns:
      this object for chaining
    • getTorusPath

      public String getTorusPath()
      Get the path to the torus
      Returns:
      the path used by the torus
    • setTorusPath

      public TestTrajectories setTorusPath(String path)
      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

      public TestTrajectories setTorusScale(double scale)
      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

      public TestTrajectories setSolenoidScale(double scale)
      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

      public TestTrajectories setIncludeTorus(boolean incTorus)
      Set whether we included the torus
      Parameters:
      incTorus - the value of the flag
      Returns:
      this object for chaining
    • setIncludeSolenoid

      public TestTrajectories setIncludeSolenoid(boolean incSolenoid)
      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