Class SetDistanceGenerator

java.lang.Object
qa.generator.location.QALocationGenerator
qa.generator.location.SetDistanceGenerator

public class SetDistanceGenerator extends QALocationGenerator
Create locations for the source at a preset list of distances from the receiver reference.
Author:
dg50
  • Constructor Details

    • SetDistanceGenerator

      public SetDistanceGenerator(QAControl qaControl, QACluster qaCluster, double[] distances, double[] rangeLimits)
      Parameters:
      distances - a list of distances to test.
      rangeLimits -
  • Method Details

    • makeSteppedGenerator

      public static SetDistanceGenerator makeSteppedGenerator(QAControl qaControl, QACluster cluster, int totalSequences, double[] rangeLimits)
      Make a stepped generator, starting at 1/3 nom range and working up to 3x nom range.
      Parameters:
      qaControl -
      cluster -
      totalSequences - total sequences to generate.
      rangeLimits -
      defaultRange - nominal range
      rangeLimits - min and max ranges. Must be two element array
      Returns:
      stepped generator
    • getNextLocation

      public LatLong getNextLocation(LatLong currentReference, SoundSequence previousSequence)
      Description copied from class: QALocationGenerator
      Generate the next location for testing.
      Specified by:
      getNextLocation in class QALocationGenerator
      Parameters:
      currentReference - current receiver reference position (vessel, Array or Mitigation zone)
      previousSequence - previous sequence (may want to check to see that how got on and move the source dynamically)
      Returns:
      new position for the source.
    • isFinished

      public boolean isFinished()
      Specified by:
      isFinished in class QALocationGenerator
    • getSourceDepth

      public Double getSourceDepth()
      Returns:
      the sourceDepth
    • setSourceDepth

      public void setSourceDepth(Double sourceDepth)
      Parameters:
      sourceDepth - the sourceDepth to set