org.objectweb.proactive.loadbalancing.util
Class JacobiWorker

java.lang.Object
  extended by org.objectweb.proactive.loadbalancing.util.JacobiWorker
All Implemented Interfaces:
java.io.Serializable

public class JacobiWorker
extends java.lang.Object
implements java.io.Serializable

Worker contains a bloc of the global matrix

Author:
cdelbe
See Also:
Serialized Form

Constructor Summary
JacobiWorker()
           
JacobiWorker(java.lang.Integer id)
           
JacobiWorker(java.lang.Integer id, java.lang.Double boundaryValue, java.lang.Integer maxIter)
           
 
Method Summary
 void computeBorderLine()
          Compute varaition for the border value of subMatrix
 void computeInsideLine(int line)
          Compute variation for one line Use to refine granularity of the computation so as to serve get request
 void computeNewSubMatrix()
          One iteration of jacobi process
 void endIter(int iter)
           
 void receiveBoundary(int fromWho, double[] boundary, int iter)
           
 void sendBoundaries()
          return the border line oriented which.value
 int setNeighbours(JacobiWorker up, JacobiWorker down, JacobiWorker left, JacobiWorker right)
           
 int setSubMatrix(int globalMatrixSize, int subMatrixSize, int upperLeftX, int upperLeftY, double[][] subMatrix)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JacobiWorker

public JacobiWorker()

JacobiWorker

public JacobiWorker(java.lang.Integer id)

JacobiWorker

public JacobiWorker(java.lang.Integer id,
                    java.lang.Double boundaryValue,
                    java.lang.Integer maxIter)
Method Detail

setSubMatrix

public int setSubMatrix(int globalMatrixSize,
                        int subMatrixSize,
                        int upperLeftX,
                        int upperLeftY,
                        double[][] subMatrix)

setNeighbours

public int setNeighbours(JacobiWorker up,
                         JacobiWorker down,
                         JacobiWorker left,
                         JacobiWorker right)

computeNewSubMatrix

public void computeNewSubMatrix()
One iteration of jacobi process


computeInsideLine

public void computeInsideLine(int line)
Compute variation for one line Use to refine granularity of the computation so as to serve get request

Parameters:
line - global matrix

computeBorderLine

public void computeBorderLine()
Compute varaition for the border value of subMatrix


sendBoundaries

public void sendBoundaries()
return the border line oriented which.value

Parameters:
which -

endIter

public void endIter(int iter)

receiveBoundary

public void receiveBoundary(int fromWho,
                            double[] boundary,
                            int iter)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright 2001-2007 INRIA All Rights Reserved.