SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.parallel
Interface LoopBody


public interface LoopBody

The implementation of this interface contains the code inside a for-loop construct.


Method Summary
 void run(int i)
          This method contains the code inside the for-loop, as in a native for-loop like this: for (int i = start; i < end; i += increment) { // loop body }
 

Method Detail

run

void run(int i)
         throws java.lang.Exception
This method contains the code inside the for-loop, as in a native for-loop like this:

 for (int i = start; i < end; i += increment) {
     // loop body
 }
 

Parameters:
i - the current loop count
Throws:
java.lang.Exception - any exception thrown during execution

SuanShu, a Java numerical and statistical library

Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.