Package qa.generator.testset
Class LongRandomTestSet
java.lang.Object
qa.generator.testset.QATestSet
qa.generator.testset.SimpleTestSet
qa.generator.testset.LongRandomTestSet
-
Field Summary
Fields inherited from class qa.generator.testset.QATestSet
STATUS_ACTIVE, STATUS_CANCELLED, STATUS_COMPLETE, STATUS_IDLE
-
Constructor Summary
ConstructorDescriptionLongRandomTestSet
(QAControl qaControl, String testName, QALocationGenerator locationGenerator, QACluster qaCluster, double sampleRate, long currentSample) Generate a long term test set, which will basically go on for ever, repeating if it's sequenced, or continuing with random or smart generated sequences. -
Method Summary
Modifier and TypeMethodDescriptiongetNextSequence
(long startSample, LatLong currentLocation) Get the next sequence of sounds.Get a version number for the test set.boolean
isFinsihed
(long currentSample) void
resetNextSample
(long currentSample, double sampleRate) Methods inherited from class qa.generator.testset.SimpleTestSet
getnOldSequences, getNumSequences, getPreviousSequence, setnOldSequences
Methods inherited from class qa.generator.testset.QATestSet
cancelTest, getEndTime, getLocationGenerator, getQaCluster, getSampleRate, getStatus, getTestDataUnit, getTestName, setEndTime, setQaCluster, setStatus, setTestDataUnit
-
Constructor Details
-
LongRandomTestSet
public LongRandomTestSet(QAControl qaControl, String testName, QALocationGenerator locationGenerator, QACluster qaCluster, double sampleRate, long currentSample) Generate a long term test set, which will basically go on for ever, repeating if it's sequenced, or continuing with random or smart generated sequences. .- Parameters:
testName
-locationGenerator
-qaCluster
-sampleRate
-randomInterval
- Random interval between sequences in seconds.
-
-
Method Details
-
resetNextSample
public void resetNextSample(long currentSample, double sampleRate) -
isFinsihed
public boolean isFinsihed(long currentSample) - Overrides:
isFinsihed
in classSimpleTestSet
- Parameters:
currentSample
- current daq sample.- Returns:
- true when the test is complete so that it can be removed from test lists.
-
getNextSequence
Description copied from class:QATestSet
Get the next sequence of sounds. Will return null unless it's the right time to generate a new sequence- Overrides:
getNextSequence
in classSimpleTestSet
- Parameters:
startSample
- end sample in latest arriving raw datacurrentLocation
- current reference location for tests.- Returns:
- a new sound sequence or null.
-
getVersion
Description copied from class:QATestSet
Get a version number for the test set.- Overrides:
getVersion
in classSimpleTestSet
- Returns:
-