@Deprecated public class PrepareVocalizationDelegate extends AbstractVocalDelegate
Constructor and Description |
---|
PrepareVocalizationDelegate(AbstractVocalModule module,
double minimumProcessingTime,
IChunk cantProcessResult)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected double |
computeHarvestTime(IRequest request,
IChunk result,
double startTime,
java.lang.Object... parameters)
Deprecated.
returns the time at which this result should be made available.
|
protected void |
finalizeProcessingInternal(ChunkTypeRequest pattern,
IChunk result,
java.lang.Object... parameters)
Deprecated.
|
protected IChunk |
processInternal(IRequest request,
java.lang.Object... parameters)
Deprecated.
called on the asynchronous thread, this does the actual processing,
returning some result.
|
protected boolean |
shouldProcess(IRequest request,
java.lang.Object... parameters)
Deprecated.
Called on the initiating thread (i.e.
|
blockingTimedEventCreated, commandStateChanged, createHarvestTimedEvent, enqueue, finalizeProcessing, getCommandIdentifier, setCommandIdentifier, setDriftStates, setEarlyTerminationStates
getMinimumProcessingTime, getModule, process, processInternalCompleted
public PrepareVocalizationDelegate(AbstractVocalModule module, double minimumProcessingTime, IChunk cantProcessResult)
protected void finalizeProcessingInternal(ChunkTypeRequest pattern, IChunk result, java.lang.Object... parameters)
finalizeProcessingInternal
in class AbstractVocalDelegate
protected double computeHarvestTime(IRequest request, IChunk result, double startTime, java.lang.Object... parameters)
AbstractAsynchronousModuleDelegate
#processInternal(ChunkPattern)
finishes, a new
ITimedEvent
is queued that will fire at the returned time. Upon
firing it will call #finalizeProcessing(ChunkPattern, Object)
.
This is called on the asynch threadcomputeHarvestTime
in class AbstractAsynchronousModuleDelegate<AbstractVocalModule,IChunk>
protected IChunk processInternal(IRequest request, java.lang.Object... parameters)
AbstractAsynchronousModuleDelegate
processInternal
in class AbstractAsynchronousModuleDelegate<AbstractVocalModule,IChunk>
protected boolean shouldProcess(IRequest request, java.lang.Object... parameters)
AbstractAsynchronousModuleDelegate
#processInternal(ChunkPattern)
on the asynchronous
executor and then execute #finalizeProcessing(ChunkPattern, Object)
on the model thread once all is completedshouldProcess
in class AbstractAsynchronousModuleDelegate<AbstractVocalModule,IChunk>