@Override public AbstractParallelAlgorithm clone() { AbstractParallelAlgorithm clone = (AbstractParallelAlgorithm) super.clone(); if( this.getThreadPool() != null ) { clone.setThreadPool( ParallelUtil.createThreadPool( this.getNumThreads() ) ); } return clone; }
/** * Creates a new instance of AbstractParallelAlgorithm * @param threadPool * Thread pool used for parallelization. */ public AbstractParallelAlgorithm( final ThreadPoolExecutor threadPool) { super(); this.setThreadPool(threadPool); }
@Override public MaximumLikelihoodDistributionEstimator<DataType> clone() { @SuppressWarnings("unchecked") MaximumLikelihoodDistributionEstimator<DataType> clone = (MaximumLikelihoodDistributionEstimator<DataType>) super.clone(); clone.setDistributions( ObjectUtil.cloneSmartElementsAsArrayList( this.getDistributions() ) ); return clone; }
/** * Creates a new instance of AbstractParallelAlgorithm * @param threadPool * Thread pool used for parallelization. */ public AbstractParallelAlgorithm( final ThreadPoolExecutor threadPool) { super(); this.setThreadPool(threadPool); }
@Override public MaximumLikelihoodDistributionEstimator<DataType> clone() { @SuppressWarnings("unchecked") MaximumLikelihoodDistributionEstimator<DataType> clone = (MaximumLikelihoodDistributionEstimator<DataType>) super.clone(); clone.setDistributions( ObjectUtil.cloneSmartElementsAsArrayList( this.getDistributions() ) ); return clone; }
@Override public AbstractParallelAlgorithm clone() { AbstractParallelAlgorithm clone = (AbstractParallelAlgorithm) super.clone(); if( this.getThreadPool() != null ) { clone.setThreadPool( ParallelUtil.createThreadPool( this.getNumThreads() ) ); } return clone; }
/** * Creates a new instance of AbstractParallelAlgorithm * @param threadPool * Thread pool used for parallelization. */ public AbstractParallelAlgorithm( final ThreadPoolExecutor threadPool) { super(); this.setThreadPool(threadPool); }
@Override public MaximumLikelihoodDistributionEstimator<DataType> clone() { @SuppressWarnings("unchecked") MaximumLikelihoodDistributionEstimator<DataType> clone = (MaximumLikelihoodDistributionEstimator<DataType>) super.clone(); clone.setDistributions( ObjectUtil.cloneSmartElementsAsArrayList( this.getDistributions() ) ); return clone; }
@Override public AbstractParallelAlgorithm clone() { AbstractParallelAlgorithm clone = (AbstractParallelAlgorithm) super.clone(); if( this.getThreadPool() != null ) { clone.setThreadPool( ParallelUtil.createThreadPool( this.getNumThreads() ) ); } return clone; }
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; }