Package qa.generator.location
Class QALocationGenerator
java.lang.Object
qa.generator.location.QALocationGenerator
- Direct Known Subclasses:
RandomLocationGenerator
,SetDistanceGenerator
Class for generating locations at which sequences should be created.
- Author:
- dg50
-
Constructor Summary
ConstructorDescriptionQALocationGenerator
(QAControl qaControl, QACluster qaCluster, double[] rangeLimits) -
Method Summary
Modifier and TypeMethodDescriptiondouble
double
abstract LatLong
getNextLocation
(LatLong currentReference, SoundSequence previousSequence) Generate the next location for testing.double
double[]
abstract boolean
void
setRangeLimits
(double[] rangeLimits)
-
Constructor Details
-
QALocationGenerator
-
-
Method Details
-
getNextLocation
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
- Returns:
- the qaControl
-
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
-