Class 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 I createThreadConstants​(int threadNumber)
      Called once per thread.
      boolean isError()  
      protected abstract boolean performSample​(I input, int sampleNumber, org.processmining.framework.plugin.ProMCanceller canceller)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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()