org.objectweb.proactive.calcium.skeletons
Class If<T>
java.lang.Object
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
Fields inherited from interface org.objectweb.proactive.calcium.interfaces.Skeleton |
logger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
If
public If(Condition<T> cond,
Skeleton<T> ifChild,
Skeleton<T> elseChild)
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.