![]() |
0.10.8-alpha
|
A function that acts as a placeholder for a value to be computed at a later time. More...
Public Member Functions | |
| Variable () | |
| Creates a new placeholder. More... | |
| void | evaluate (Object[] inputs, Object[] outputs) |
| int | getInputArity () |
| int | getOutputArity () |
| void | reset () |
| void | getInputTypesFor (Set< Class<?>> classes, int index) |
| Class<?> | getOutputTypeFor (int index) |
Public Member Functions inherited from ca.uqac.lif.cep.functions.Function | |
| void | evaluate (Object[] inputs, Object[] outputs, Context context) |
| Evaluates the outputs of the function, given some inputs. More... | |
| abstract void | evaluate (Object[] inputs, Object[] outputs, Context context, EventTracker tracker) |
| Evaluates the outputs of the function, given some inputs. More... | |
| void | evaluate (Object[] inputs, Object[] outputs) |
| Evaluates the outputs of the function, given some inputs. More... | |
| boolean | evaluatePartial (Object[] inputs, Object[] outputs, Context context) |
| Evaluates the outputs of the function, given some inputs. More... | |
| boolean | evaluateLazy (Object[] inputs, Object[] outputs) |
| Attempts a lazy evaluation of the function, given some inputs. More... | |
| abstract int | getInputArity () |
| Gets the function's input arity, i.e. More... | |
| abstract int | getOutputArity () |
| Gets the function's output arity, i.e. More... | |
| void | reset () |
| Resets the function to its initial state. More... | |
| abstract void | getInputTypesFor (Set< Class<?>> classes, int index) |
| Populates the set of classes accepted by the function for its i-th input. More... | |
| abstract Class<?> | getOutputTypeFor (int index) |
| Returns the type of the events produced by the function for its i-th output. More... | |
| Future< Object[]> | evaluateFast (Object[] inputs, Object[] outputs, Context context, ExecutorService service) |
| Utility method that delegates the call to evaluate() More... | |
| final Function | duplicate () |
| Duplicates an object and sets it to its initial state. More... | |
| abstract Function | duplicate (boolean with_state) |
| Duplicates an object. More... | |
| Object | print (ObjectPrinter<?> printer) |
| final Function | read (ObjectReader<?> reader, Object o) throws FunctionException |
| Reads the content of a function from a serialized object. More... | |
Additional Inherited Members | |
Static Public Attributes inherited from ca.uqac.lif.cep.functions.Function | |
| static final int | s_maxInputArity = 10 |
| The maximum input arity that a function can have. More... | |
Protected Member Functions inherited from ca.uqac.lif.cep.functions.Function | |
| Object | printState () |
| Produces an object that represents the state of the current function. More... | |
| Function | readState (Object o) |
| Reads the state of a function and uses it to create a new instance. More... | |
A function that acts as a placeholder for a value to be computed at a later time.
Definition at line 28 of file Variable.java.
| ca.uqac.lif.cep.functions.Variable.Variable | ( | ) |
Creates a new placeholder.
Definition at line 33 of file Variable.java.
| void ca.uqac.lif.cep.functions.Variable.evaluate | ( | Object [] | inputs, |
| Object [] | outputs | ||
| ) |
Definition at line 39 of file Variable.java.
| int ca.uqac.lif.cep.functions.Variable.getInputArity | ( | ) |
Definition at line 45 of file Variable.java.
| void ca.uqac.lif.cep.functions.Variable.getInputTypesFor | ( | Set< Class<?>> | classes, |
| int | index | ||
| ) |
Definition at line 63 of file Variable.java.
| int ca.uqac.lif.cep.functions.Variable.getOutputArity | ( | ) |
Definition at line 51 of file Variable.java.
| Class<?> ca.uqac.lif.cep.functions.Variable.getOutputTypeFor | ( | int | index | ) |
Definition at line 69 of file Variable.java.
| void ca.uqac.lif.cep.functions.Variable.reset | ( | ) |
Definition at line 57 of file Variable.java.