Package qa.generator.location
Class SetDistanceGenerator
java.lang.Object
qa.generator.location.QALocationGenerator
qa.generator.location.SetDistanceGenerator
Create locations for the source at a preset list of distances from the receiver reference.
- Author:
- dg50
-
Constructor Summary
ConstructorDescriptionSetDistanceGenerator
(QAControl qaControl, QACluster qaCluster, double[] distances, double[] rangeLimits) -
Method Summary
Modifier and TypeMethodDescriptiongetNextLocation
(LatLong currentReference, SoundSequence previousSequence) Generate the next location for testing.boolean
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.void
setSourceDepth
(Double sourceDepth) Methods inherited from class qa.generator.location.QALocationGenerator
getMaxRange, getMinRange, getNominalRange, getQaCluster, getQaControl, getRangeLimits, setRangeLimits
-
Constructor Details
-
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 rangerangeLimits
- min and max ranges. Must be two element array- Returns:
- stepped generator
-
getNextLocation
Description copied from class:QALocationGenerator
Generate the next location for testing.- Specified by:
getNextLocation
in classQALocationGenerator
- 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 classQALocationGenerator
-
getSourceDepth
- Returns:
- the sourceDepth
-
setSourceDepth
- Parameters:
sourceDepth
- the sourceDepth to set
-