20 import ca.uqac.lif.cep.functions.StreamVariable;
21 import ca.uqac.lif.cep.functions.Function;
22 import ca.uqac.lif.cep.functions.FunctionException;
31 public static void main(String[] args)
throws FunctionException
37 Function foo = StreamVariable.Y;
38 Object values[] =
new Object[1];
42 Object inputs[] =
new Object[]{42,
"foo"};
43 foo.evaluate(inputs, values);
44 String s_value = (String) values[0];
45 System.out.printf(
"The value of foo is %s\n", s_value);
Use the ArgumentPlaceholder function to refer to the i-th argument of a function. ...