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 voidAdd to the count of new sequences.getNextSequence(long startSample, LatLong currentLocation) Get the next sequence of sounds.intintGet the number of sequences in the test.Get a version number for the test set.booleanisFinsihed(long currentSample) voidsetnOldSequences(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:
 isFinsihedin 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:QATestSetGet the next sequence of sounds. Will return null unless it's the right time to generate a new sequence- Specified by:
 getNextSequencein 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:QATestSetGet a version number for the test set.- Specified by:
 getVersionin classQATestSet- Returns:
 
 - 
getPreviousSequence
- Returns:
 - the previousSequence
 
 - 
getNumSequences
public int getNumSequences()Description copied from class:QATestSetGet the number of sequences in the test. This is the number that have actually been generated, not the number planned.- Specified by:
 getNumSequencesin 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
 
 -