Class TestTrajectories

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

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

    • TestTrajectories Link icon

      public TestTrajectories()
  • Method Details Link icon

    • addTrajectory Link icon

      public void addTrajectory(TrajectorySummary summary)
      add a summary to the collection
      Parameters:
      summary - the summary to add
    • getReletiveTolerance Link icon

      public double[] getReletiveTolerance()
      Get the relative tolerance used by the swimmer
      Returns:
      the relative tolerance
    • setRelativeTolerance Link icon

      public TestTrajectories setRelativeTolerance(double[] relTol)
      Set the relative tolerance for the swimmer
      Parameters:
      relTol - the relative tolerance
      Returns:
      this object for chaining
    • get Link icon

      public double get()
      Get the initial step size
      Returns:
      the initial step size in meters
    • set Link icon

      public TestTrajectories set(double value)
      Set the initial step size
      Parameters:
      value - the value in meters
      Returns:
      this object for chaining
    • getAccuracy Link icon

      public double getAccuracy()
      Get the z stopping accuracy
      Returns:
      the z stopping accuracy in meters
    • setAccuracy Link icon

      public TestTrajectories setAccuracy(double value)
      Set the z stopping accuracy in meters
      Parameters:
      value - the value in meters
      Returns:
      this object for chaining
    • getMaxPathLength Link icon

      public double getMaxPathLength()
      Get the max path length
      Returns:
      the max path length in meters
    • setMaxPathLength Link icon

      public TestTrajectories setMaxPathLength(double value)
      Set the max path length
      Parameters:
      value - the value in meters
      Returns:
      this object for chaining
    • getFixedZ Link icon

      public double getFixedZ()
      Get the z stopping value in meters
      Returns:
      the z stopping value in meters
    • setFixedZ Link icon

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

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

      public TestTrajectories setTorusPath(String path)
      Set the path used by the torus
      Parameters:
      path - the full path
      Returns:
      this object for chaining
    • getTorusScale Link icon

      public double getTorusScale()
      Get the scale factor used by the torus
      Returns:
      the scale factor used by the torus
    • setTorusScale Link icon

      public TestTrajectories setTorusScale(double scale)
      Set the scale factor used by the torus
      Parameters:
      scale - the scale factor
      Returns:
      this object for chaining
    • getSolenoidScale Link icon

      public double getSolenoidScale()
      Get the scale factor used by the solenoid
      Returns:
      the scale factor used by the solenoid
    • setSolenoidScale Link icon

      public TestTrajectories setSolenoidScale(double scale)
      Set the scale factor used by the solenoid
      Parameters:
      scale - the scale solenoid
      Returns:
      this object for chaining
    • includeTorus Link icon

      public boolean includeTorus()
      Was the torus used
      Returns:
      true if the torus was included in the swimming
    • setIncludeTorus Link icon

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

      public TestTrajectories setIncludeSolenoid(boolean incSolenoid)
      Set whether we included the solenoid
      Parameters:
      incSolenoid - the value of the flag
    • includeSolenoid Link icon

      public boolean includeSolenoid()
      Was the solenoid used
      Returns:
      true if the solenoid was included in the swimming
    • size Link icon

      public int size()
      Get the number of summaries
      Returns:
      the number of summaries