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
ConstructorsConstructorDescriptionQALocationGenerator(QAControl qaControl, QACluster qaCluster, double[] rangeLimits)  - 
Method Summary
Modifier and TypeMethodDescriptiondoubledoubleabstract LatLonggetNextLocation(LatLong currentReference, SoundSequence previousSequence) Generate the next location for testing.doubledouble[]abstract booleanprotected doublesetLocationHeight(LatLong location) Set the location height based on the depth distribution.voidsetRangeLimits(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
 
 - 
setLocationHeight
Set the location height based on the depth distribution. N.B depth distributions are what they say and return a positive number for a diving animal, whereas the returned height will generally be negative.- Parameters:
 location- current location- Returns:
 - location height
 
 
 -