org.objectweb.proactive.calcium.skeletons
Class Map<T>

java.lang.Object
  extended by org.objectweb.proactive.calcium.skeletons.DaC<T>
      extended by org.objectweb.proactive.calcium.skeletons.Map<T>
All Implemented Interfaces:
java.io.Serializable, Instruction<T>, Skeleton<T>

public class Map<T>
extends DaC<T>

Map is only a special case of Divide and Conquer, and therfore represents data parallelism. A taks is Divided once into subtaks (without evaluating a condition), the subtasks are then executed using the child skeleton, and then the results are conquered using the Conquer object.

Author:
The ProActive Team (mleyton)
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.objectweb.proactive.calcium.interfaces.Skeleton
logger
 
Constructor Summary
Map(Divide<T> div, Skeleton<T> child, Conquer<T> conq)
           
 
Method Summary
 Task<T> compute(Task<T> t)
           
 
Methods inherited from class org.objectweb.proactive.calcium.skeletons.DaC
conquer, divide, execute, getInstructionStack, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Map

public Map(Divide<T> div,
           Skeleton<T> child,
           Conquer<T> conq)
Method Detail

compute

public Task<T> compute(Task<T> t)
                throws EnvironmentException
Specified by:
compute in interface Instruction<T>
Overrides:
compute in class DaC<T>
Throws:
EnvironmentException


Copyright 2001-2007 INRIA All Rights Reserved.