Package qa.generator.testset
Class SimpleTestSet
java.lang.Object
qa.generator.testset.QATestSet
qa.generator.testset.SimpleTestSet
- Direct Known Subclasses:
LongRandomTestSet
-
Field Summary
Fields inherited from class qa.generator.testset.QATestSet
STATUS_ACTIVE, STATUS_CANCELLED, STATUS_COMPLETE, STATUS_IDLE
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleTestSet
(String testName, QALocationGenerator locationGenerator, QACluster qaCluster, double sampleRate, long currentSample) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Add to the count of new sequences.getNextSequence
(long startSample, LatLong currentLocation) Get the next sequence of sounds.int
int
Get the number of sequences in the test.Get a version number for the test set.boolean
isFinsihed
(long currentSample) void
setnOldSequences
(int nOldSequences) Methods inherited from class qa.generator.testset.QATestSet
cancelTest, getEndTime, getLocationGenerator, getQaCluster, getSampleRate, getStatus, getTestDataUnit, getTestName, setEndTime, setQaCluster, setStatus, setTestDataUnit
-
Constructor Details
-
SimpleTestSet
public SimpleTestSet(String testName, QALocationGenerator locationGenerator, QACluster qaCluster, double sampleRate, long currentSample)
-
-
Method Details
-
isFinsihed
public boolean isFinsihed(long currentSample) - Specified by:
isFinsihed
in classQATestSet
- 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- Specified by:
getNextSequence
in classQATestSet
- 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.- Specified by:
getVersion
in classQATestSet
- Returns:
-
getPreviousSequence
- Returns:
- the previousSequence
-
getNumSequences
public int getNumSequences()Description copied from class:QATestSet
Get the number of sequences in the test. This is the number that have actually been generated, not the number planned.- Specified by:
getNumSequences
in classQATestSet
- Returns:
- Number of sequences generated so far.
-
addNewSeqCount
protected void addNewSeqCount()Add to the count of new sequences. -
getnOldSequences
public int getnOldSequences()- Returns:
- the nOldSequences
-
setnOldSequences
public void setnOldSequences(int nOldSequences) - Parameters:
nOldSequences
- the nOldSequences to set
-