ARLO Adapt
Public Member Functions | Private Member Functions | List of all members
arlo.SupervisedTagDiscovery Class Reference
Inheritance diagram for arlo.SupervisedTagDiscovery:
Inheritance graph
[legend]
Collaboration diagram for arlo.SupervisedTagDiscovery:
Collaboration graph
[legend]

Public Member Functions

boolean shouldStop ()
 Check if this job has been queued to stop by the user. More...
 
void run ()
 Launch the job when running threaded from ServiceHead. More...
 
boolean QueueTaskRun (Connection connection)
 Launch the job when running from QueueTask_SupervisedTagDiscovery. More...
 
boolean runJob (NesterSupervisedTagDiscoveryBias nesterSupervisedTagDiscoveryBias, Connection connection)
 Run the Supervised Tag Discovery. More...
 
- Public Member Functions inherited from arlo.TagDiscovery
 TagDiscovery (TagDiscoveryBias tagDiscoveryBias)
 
void pauseThread ()
 
void resumeThread ()
 
void stopThread ()
 
void runTagDiscoveryStart (int project_id, Connection connection)
 Initialize some data to prepare for running. More...
 
void runEnd ()
 
void setupSpectralDataMemoryMaps ()
 
int[] loadAudioFileSpectraData (int audioFileIndex, long startFrame, long numFrames, boolean allocateMemory)
 
int[] computeAudioFileSpectraData (NesterAudioFile audioFile, double startTime, double endTime)
 

Private Member Functions

boolean searchWithinAudioFile (NesterAudioFile candidateNesterAudioFile, double searchWithinFileStartTime, double searchWithinFileEndTime, NesterSupervisedTagDiscoveryBias nesterSupervisedTagDiscoveryBias, Connection connection, Vector< NesterTagExample > searchWithinTagExampleVector, double timeContextSize, Vector< NesterTagExample > originalAllTagExamples, int audioFileIndex, HashMap< Integer, Double > tagClassIDToMatchQuality, Vector< NesterTagExample > allTagExamples)
 Search for Tags within a file, or a portion thereof. More...
 

Additional Inherited Members

- Public Attributes inherited from arlo.TagDiscovery
Vector< NesterAudioFiletagDiscoveryNesterAudioFiles
 

Member Function Documentation

boolean arlo.SupervisedTagDiscovery.QueueTaskRun ( Connection  connection)

Launch the job when running from QueueTask_SupervisedTagDiscovery.

Parameters
connectionAn opened database connection.
Returns
True if success, false if any error occurred.
void arlo.SupervisedTagDiscovery.run ( )

Launch the job when running threaded from ServiceHead.

Used to start a thread when called by ServiceHead to start a job. Not used by QueueTask_SupervisedTagDiscovery. Note that this function is an override inherited from Thread.

boolean arlo.SupervisedTagDiscovery.runJob ( NesterSupervisedTagDiscoveryBias  nesterSupervisedTagDiscoveryBias,
Connection  connection 
)

Run the Supervised Tag Discovery.

Can be called from multiple locations. Removed from ServiceHead so that it can be called from QueueTask_SupervisedTagDiscovery.

Parameters
nesterSupervisedTagDiscoveryBias
connectionAn opened database connection.
Returns
True if completed or stopped, False if any error encountered.
boolean arlo.SupervisedTagDiscovery.searchWithinAudioFile ( NesterAudioFile  candidateNesterAudioFile,
double  searchWithinFileStartTime,
double  searchWithinFileEndTime,
NesterSupervisedTagDiscoveryBias  nesterSupervisedTagDiscoveryBias,
Connection  connection,
Vector< NesterTagExample searchWithinTagExampleVector,
double  timeContextSize,
Vector< NesterTagExample originalAllTagExamples,
int  audioFileIndex,
HashMap< Integer, Double >  tagClassIDToMatchQuality,
Vector< NesterTagExample allTagExamples 
)
private

Search for Tags within a file, or a portion thereof.

Can be called from multiple locations. Removed from ServiceHead so that it can be called from QueueTask_SupervisedTagDiscovery.

Parameters
nesterSupervisedTagDiscoveryBias
connectionAn opened database connection.
Returns
True if completed or stopped, False if any error encountered.
boolean arlo.SupervisedTagDiscovery.shouldStop ( )

Check if this job has been queued to stop by the user.

This is currently only implemented if the job is called by ServiceHead, which maintains a list of jobs to stop.

Returns
True if this Job should stop, False otherwise.

The documentation for this class was generated from the following file: