use of org.diirt.vtype.VNumber in project yamcs-studio by yamcs.
the class StepFormulaFunction method calculate.
@Override
public Object calculate(final List<Object> args) {
VNumber initialValue = (VNumber) args.get(0);
VNumber increment = (VNumber) args.get(1);
if (initialValue == null || increment == null) {
return null;
}
return VTableFactory.step(initialValue.getValue().doubleValue(), increment.getValue().doubleValue());
}
Aggregations