public abstract class AFileSamplingAlgorithm
extends ai.libs.jaicore.basic.algorithm.AAlgorithm<java.io.File,java.io.File>
| Modifier and Type | Field and Description |
|---|---|
protected java.io.FileWriter |
outputFileWriter |
protected java.lang.Integer |
sampleSize |
| Modifier | Constructor and Description |
|---|---|
protected |
AFileSamplingAlgorithm(java.io.File input) |
| Modifier and Type | Method and Description |
|---|---|
java.io.File |
call() |
protected abstract void |
cleanUp()
Implement custom clean up behaviour.
|
void |
setOutputFileName(java.lang.String outputFilePath) |
void |
setSampleSize(int size) |
activate, announceTimeoutDetected, avoidReinterruptionOnShutdownOnCurrentThread, cancel, checkAndConductTermination, checkTermination, computeTimeoutAware, getActivationTime, getConfig, getId, getInput, getLoggerName, getNumCPUs, getRemainingTimeToDeadline, getState, getTimeout, getTimeoutPrecautionOffset, hasNext, hasThreadBeenInterruptedDuringShutdown, interruptThreadAsPartOfShutdown, isCanceled, isShutdownInitialized, isStopCriterionSatisfied, isTimeouted, iterator, next, post, registerActiveThread, registerListener, resolveShutdownInterruptOnCurrentThread, setConfig, setLoggerName, setMaxNumThreads, setNumCPUs, setState, setTimeout, setTimeout, setTimeoutPrecautionOffset, shutdown, terminate, unregisterActiveThread, unregisterThreadAndShutdownprotected java.lang.Integer sampleSize
protected java.io.FileWriter outputFileWriter
public void setSampleSize(int size)
public void setOutputFileName(java.lang.String outputFilePath)
throws java.io.IOException
java.io.IOExceptionpublic java.io.File call()
throws java.lang.InterruptedException,
ai.libs.jaicore.basic.algorithm.AlgorithmExecutionCanceledException,
ai.libs.jaicore.basic.algorithm.exceptions.AlgorithmException
java.lang.InterruptedExceptionai.libs.jaicore.basic.algorithm.AlgorithmExecutionCanceledExceptionai.libs.jaicore.basic.algorithm.exceptions.AlgorithmExceptionprotected abstract void cleanUp()