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
ConstructorsConstructorDescriptionSetDistanceGenerator(QAControl qaControl, QACluster qaCluster, double[] distances, double[] rangeLimits) -
Method Summary
Modifier and TypeMethodDescriptiongetNextLocation(LatLong currentReference, SoundSequence previousSequence) Generate the next location for testing.booleanstatic SetDistanceGeneratormakeSteppedGenerator(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.voidsetSourceDepth(Double sourceDepth) Methods inherited from class qa.generator.location.QALocationGenerator
getMaxRange, getMinRange, getNominalRange, getQaCluster, getQaControl, getRangeLimits, setLocationHeight, 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:QALocationGeneratorGenerate the next location for testing.- Specified by:
getNextLocationin 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:
isFinishedin classQALocationGenerator
-
getSourceDepth
- Returns:
- the sourceDepth
-
setSourceDepth
- Parameters:
sourceDepth- the sourceDepth to set
-