1 package functions.custom;
5 import ca.uqac.lif.cep.Context;
6 import ca.uqac.lif.cep.EventTracker;
7 import ca.uqac.lif.cep.functions.Function;
12 public void evaluate(Object[] inputs, Object[] outputs, Context c, EventTracker t)
14 Number n = (Number) inputs[0];
15 outputs[0] = n.floatValue() * 2;
20 public int getInputArity()
26 public int getOutputArity()
32 public Function duplicate(
boolean with_state)
39 public void getInputTypesFor(Set<Class<?>> s,
int i)
46 public Class<?> getOutputTypeFor(
int i)