org.eclipse.net4j.util.om.monitor
Class ProgressDistributor

java.lang.Object
  extended by org.eclipse.net4j.util.om.monitor.ProgressDistributor
Direct Known Subclasses:
ProgressDistributor.Arithmetic, ProgressDistributor.Geometric

public abstract class ProgressDistributor
extends Object

Since:
2.0

Nested Class Summary
static class ProgressDistributor.Arithmetic
           
static class ProgressDistributor.Geometric
           
 
Constructor Summary
ProgressDistributor()
           
 
Method Summary
static
<CONTEXT> ProgressDistributable<CONTEXT>[]
array(ProgressDistributable<CONTEXT>... ops)
           
protected abstract  void distribute(double[] distribution, double[] times)
           
<CONTEXT> void
run(ProgressDistributable<CONTEXT>[] distributables, CONTEXT context, OMMonitor monitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgressDistributor

public ProgressDistributor()
Method Detail

run

public final <CONTEXT> void run(ProgressDistributable<CONTEXT>[] distributables,
                                CONTEXT context,
                                OMMonitor monitor)
               throws RuntimeException,
                      WrappedException
Throws:
RuntimeException
WrappedException

distribute

protected abstract void distribute(double[] distribution,
                                   double[] times)

array

public static <CONTEXT> ProgressDistributable<CONTEXT>[] array(ProgressDistributable<CONTEXT>... ops)


Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.