Package qa.generator.testset
Class QATestSet
java.lang.Object
qa.generator.testset.QATestSet
- Direct Known Subclasses:
SimpleTestSet
,ViewerTestSet
-
Field Summary
-
Constructor Summary
ConstructorDescriptionQATestSet
(String testName, QALocationGenerator locationGenerator, QACluster qaCluster, double sampleRate) -
Method Summary
Modifier and TypeMethodDescriptionvoid
abstract SoundSequence
getNextSequence
(long startSample, LatLong currentLocation) Get the next sequence of sounds.abstract int
Get the number of sequences in the test.double
abstract String
Get a version number for the test set.abstract boolean
isFinsihed
(long currentSample) void
setEndTime
(Long endTime) void
setQaCluster
(QACluster qaCluster) void
void
setTestDataUnit
(QATestDataUnit testDataUnit)
-
Field Details
-
STATUS_ACTIVE
-
STATUS_COMPLETE
-
STATUS_CANCELLED
-
STATUS_IDLE
-
-
Constructor Details
-
QATestSet
public QATestSet(String testName, QALocationGenerator locationGenerator, QACluster qaCluster, double sampleRate) - Parameters:
soundGenerator
-
-
-
Method Details
-
getSampleRate
public double getSampleRate()- Returns:
- the sampleRate
-
isFinsihed
public abstract boolean isFinsihed(long currentSample) - Parameters:
currentSample
- current daq sample.- Returns:
- true when the test is complete so that it can be removed from test lists.
-
getNextSequence
Get the next sequence of sounds. Will return null unless it's the right time to generate a new sequence- Parameters:
startSample
- end sample in latest arriving raw datacurrentLocation
- current reference location for tests.- Returns:
- a new sound sequence or null.
-
getNumSequences
public abstract int getNumSequences()Get the number of sequences in the test. This is the number that have actually been generated, not the number planned.- Returns:
- Number of sequences generated so far.
-
getVersion
Get a version number for the test set.- Returns:
-
getEndTime
- Returns:
- the endTime
-
setEndTime
- Parameters:
endTime
- the endTime to set
-
getTestName
- Returns:
- the testName
-
getTestDataUnit
- Returns:
- the testDataUnit
-
setTestDataUnit
- Parameters:
testDataUnit
- the testDataUnit to set
-
getQaCluster
- Returns:
- the qaCluster
-
setQaCluster
- Parameters:
qaCluster
- the qaCluster to set
-
getStatus
- Returns:
- the status
-
setStatus
- Parameters:
status
- the status to set
-
cancelTest
public void cancelTest() -
getLocationGenerator
- Returns:
- the locationGenerator
-