org.apfloat.internal
Interface ParallelRunnable


public interface ParallelRunnable

Interface for producing Runnable objects to be run in parallel.

Since:
1.1
Version:
1.1
Author:
Mikko Tommila

Method Summary
 int getLength()
          Get the length of the whole set to be run in parallel.
 Runnable getRunnable(int startValue, int length)
          Get the Runnable object for the specified stride.
 

Method Detail

getLength

int getLength()
Get the length of the whole set to be run in parallel.

Returns:
The length.

getRunnable

Runnable getRunnable(int startValue,
                     int length)
Get the Runnable object for the specified stride.

Parameters:
startValue - The starting value for the stride.
length - The length of the stride.
Returns:
The Runnable object for the specified stride.