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

java.lang.Object
  extended by org.objectweb.proactive.calcium.skeletons.If<T>
Type Parameters:
T -
All Implemented Interfaces:
java.io.Serializable, Instruction<T>, Skeleton<T>

public class If<T>
extends java.lang.Object
implements Skeleton<T>, Instruction<T>

This class provides If conditioning. Depending on the result of the Condition, either one child skeletal structure will be executed, or the other.

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

Field Summary
 
Fields inherited from interface org.objectweb.proactive.calcium.interfaces.Skeleton
logger
 
Constructor Summary
If(Condition<T> cond, Skeleton<T> ifChild, Skeleton<T> elseChild)
           
 
Method Summary
 Task<T> compute(Task<T> t)
           
 java.util.Vector<Instruction<T>> getInstructionStack()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

If

public If(Condition<T> cond,
          Skeleton<T> ifChild,
          Skeleton<T> elseChild)
Method Detail

getInstructionStack

public java.util.Vector<Instruction<T>> getInstructionStack()
Specified by:
getInstructionStack in interface Skeleton<T>

compute

public Task<T> compute(Task<T> t)
                throws java.lang.Exception
Specified by:
compute in interface Instruction<T>
Throws:
java.lang.Exception


Copyright 2001-2007 INRIA All Rights Reserved.