Class QALocationGenerator

java.lang.Object
qa.generator.location.QALocationGenerator
Direct Known Subclasses:
RandomLocationGenerator, SetDistanceGenerator

public abstract class QALocationGenerator extends Object
Class for generating locations at which sequences should be created.
Author:
dg50
  • Constructor Details

    • QALocationGenerator

      public QALocationGenerator(QAControl qaControl, QACluster qaCluster, double[] rangeLimits)
  • Method Details

    • getNextLocation

      public abstract LatLong getNextLocation(LatLong currentReference, SoundSequence previousSequence)
      Generate the next location for testing.
      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 abstract boolean isFinished()
    • getQaControl

      public QAControl getQaControl()
      Returns:
      the qaControl
    • getQaCluster

      public QACluster getQaCluster()
      Returns:
      the qaCluster
    • getNominalRange

      public double getNominalRange()
      Returns:
      The nominal range to centre the distribution of distances around.
    • getRangeLimits

      public double[] getRangeLimits()
      Returns:
      the rangeLimits. Two element array in metres.
    • setRangeLimits

      public void setRangeLimits(double[] rangeLimits)
      Parameters:
      rangeLimits - the rangeLimits to set. Two element array in metres.
    • getMinRange

      public double getMinRange()
      Returns:
      the minimum range
    • getMaxRange

      public double getMaxRange()
      Returns:
      the maximum range