/** * Creates a new instance of AbstractParallelAlgorithm * @param threadPool * Thread pool used for parallelization. */ public AbstractParallelAlgorithm( final ThreadPoolExecutor threadPool) { super(); this.setThreadPool(threadPool); }
/** * Creates a new instance of AbstractParallelAlgorithm * @param threadPool * Thread pool used for parallelization. */ public AbstractParallelAlgorithm( final ThreadPoolExecutor threadPool) { super(); this.setThreadPool(threadPool); }
/** * Creates a new instance of AbstractParallelAlgorithm * @param threadPool * Thread pool used for parallelization. */ public AbstractParallelAlgorithm( final ThreadPoolExecutor threadPool) { super(); this.setThreadPool(threadPool); }
public ThreadPoolExecutor getThreadPool() { if (this.threadPool == null) { this.setThreadPool(ParallelUtil.createThreadPool()); } return this.threadPool; }
public ThreadPoolExecutor getThreadPool() { if (this.threadPool == null) { this.setThreadPool(ParallelUtil.createThreadPool()); } return this.threadPool; }
public ThreadPoolExecutor getThreadPool() { if (this.threadPool == null) { this.setThreadPool(ParallelUtil.createThreadPool()); } return this.threadPool; }
@Override public AbstractParallelAlgorithm clone() { AbstractParallelAlgorithm clone = (AbstractParallelAlgorithm) super.clone(); if( this.getThreadPool() != null ) { clone.setThreadPool( ParallelUtil.createThreadPool( this.getNumThreads() ) ); } return clone; }
@Override public AbstractParallelAlgorithm clone() { AbstractParallelAlgorithm clone = (AbstractParallelAlgorithm) super.clone(); if( this.getThreadPool() != null ) { clone.setThreadPool( ParallelUtil.createThreadPool( this.getNumThreads() ) ); } return clone; }
@Override public AbstractParallelAlgorithm clone() { AbstractParallelAlgorithm clone = (AbstractParallelAlgorithm) super.clone(); if( this.getThreadPool() != null ) { clone.setThreadPool( ParallelUtil.createThreadPool( this.getNumThreads() ) ); } return clone; }