|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
marf.util.BaseThread
marf.FeatureExtraction.FeatureExtractionAggregator.FeatureExtractionThread
public class FeatureExtractionAggregator.FeatureExtractionThread
A feature extraction thread simply calls its concrete encapsulated feature extraction module and collects any results or errors from its run.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
protected double[] |
adSampleData
Sample data container reference if the data is coming not from preprocessing. |
protected boolean |
bRetVal
Keeps return value from extractFeatures()
in case someone is interested. |
protected IFeatureExtraction |
oFeatureExtraction
A reference to the feature extraction module. |
protected java.lang.Exception |
oLastException
Last exception captured after feature extraction run. |
| Fields inherited from class marf.util.BaseThread |
|---|
iTID, oTarget, siNextTID |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
FeatureExtractionAggregator.FeatureExtractionThread(IFeatureExtraction poFeatureExtraction,
ExpandedThreadGroup poGroup)
Constructs a feature extraction thread with a given module. |
|
FeatureExtractionAggregator.FeatureExtractionThread(IFeatureExtraction poFeatureExtraction,
ExpandedThreadGroup poGroup,
double[] padSampleData)
Constructs a feature extraction thread with a given module and sample data from external source. |
|
| Method Summary | |
|---|---|
IFeatureExtraction |
getFeatureExtraction()
Allows obtaining the reference to the contained feature extraction module. |
java.lang.Exception |
getLastException()
Allows to query for the last error happened while extracting features. |
boolean |
getRetVal()
Allows to query for the feature extraction success return value. |
void |
run()
Internally calls extractFeatures() and
collects its return value and possibly its last error. |
| Methods inherited from class marf.util.BaseThread |
|---|
getMARFSourceCodeRevision, getNextTID, getTarget, getTID |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected IFeatureExtraction oFeatureExtraction
protected boolean bRetVal
extractFeatures()
in case someone is interested.
IFeatureExtraction.extractFeatures()protected java.lang.Exception oLastException
protected double[] adSampleData
| Constructor Detail |
|---|
public FeatureExtractionAggregator.FeatureExtractionThread(IFeatureExtraction poFeatureExtraction,
ExpandedThreadGroup poGroup)
poFeatureExtraction - the module; must not be nullpoGroup - the thread group to attach this thread to
public FeatureExtractionAggregator.FeatureExtractionThread(IFeatureExtraction poFeatureExtraction,
ExpandedThreadGroup poGroup,
double[] padSampleData)
poFeatureExtraction - the module; must not be nullpoGroup - the thread group to attach this thread topadSampleData - | Method Detail |
|---|
public void run()
extractFeatures() and
collects its return value and possibly its last error.
run in interface java.lang.Runnablerun in class java.lang.ThreadRunnable.run(),
IFeatureExtraction.extractFeatures()public boolean getRetVal()
extractFeatures()IFeatureExtraction.extractFeatures()public IFeatureExtraction getFeatureExtraction()
public java.lang.Exception getLastException()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||