org.inria.ns.reflex.structures
Class Evaluable.Dual
java.lang.Object
org.inria.ns.reflex.structures.Evaluable.Dual
- All Implemented Interfaces:
- Evaluable
- Enclosing interface:
- Evaluable
public static class Evaluable.Dual
- extends Object
- implements Evaluable
An evaluable partitioned in 2 half evaluable parts.
The output of the first is used as the input
of the second.
- Author:
- Philippe Poulard
Evaluable.Dual
public Evaluable.Dual(Evaluable firstEvaluable,
Evaluable secondEvaluable)
- Create a new dual evaluable.
- Parameters:
firstEvaluable
- The first evaluable.secondEvaluable
- The second evaluable.
getComputedValue
public Object getComputedValue(Object o,
DataSet dataSet)
throws ExecutionException,
XPathException
- Return a list of results.
- Specified by:
getComputedValue
in interface Evaluable
- Parameters:
o
- The object to evaluate.dataSet
- The set of datas used for the computation.
- Returns:
- A list of 2 items, each is the result of the evaluables.
- Throws:
ExecutionException
- If the computation can't be performed.
XPathException
- See Also:
List