org.inria.ns.reflex.structures
Class Evaluable.Dual

java.lang.Object
  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.inria.ns.reflex.structures.Evaluable
Evaluable.Dual
 
Field Summary
 
Fields inherited from interface org.inria.ns.reflex.structures.Evaluable
STRING, STRING_LOADER, URI
 
Constructor Summary
Evaluable.Dual(Evaluable firstEvaluable, Evaluable secondEvaluable)
          Create a new dual evaluable.
 
Method Summary
 Object getComputedValue(Object o, DataSet dataSet)
          Return a list of results.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Evaluable.Dual

public Evaluable.Dual(Evaluable firstEvaluable,
                      Evaluable secondEvaluable)
Create a new dual evaluable.

Parameters:
firstEvaluable - The first evaluable.
secondEvaluable - The second evaluable.
Method Detail

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