Class ConcurrentSamples<I>
- java.lang.Object
-
- org.processmining.statisticaltests.helperclasses.ConcurrentSamples<I>
-
public abstract class ConcurrentSamples<I> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ConcurrentSamples(int numberOfThreads, int numberOfSamples, int firstSampleNumber, org.processmining.framework.plugin.ProMCanceller canceller, org.processmining.framework.plugin.Progress progress)ConcurrentSamples(int numberOfThreads, int numberOfSamples, org.processmining.framework.plugin.ProMCanceller canceller, org.processmining.framework.plugin.Progress progress)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract IcreateThreadConstants(int threadNumber)Called once per thread.booleanisError()protected abstract booleanperformSample(I input, int sampleNumber, org.processmining.framework.plugin.ProMCanceller canceller)
-
-
-
Constructor Detail
-
ConcurrentSamples
public ConcurrentSamples(int numberOfThreads, int numberOfSamples, org.processmining.framework.plugin.ProMCanceller canceller, org.processmining.framework.plugin.Progress progress) throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
ConcurrentSamples
public ConcurrentSamples(int numberOfThreads, int numberOfSamples, int firstSampleNumber, org.processmining.framework.plugin.ProMCanceller canceller, org.processmining.framework.plugin.Progress progress) throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
-
Method Detail
-
createThreadConstants
protected abstract I createThreadConstants(int threadNumber)
Called once per thread.- Returns:
-
performSample
protected abstract boolean performSample(I input, int sampleNumber, org.processmining.framework.plugin.ProMCanceller canceller)
- Parameters:
input-sampleNumber-- Returns:
- whether the sample was successful
-
isError
public boolean isError()
-
-