@Override public ReportingFloatValue add(double coefficient, Number factor) { ReportingFloatValue result = ((ReportingFloatValue) super.add(coefficient, factor)); if (hasExpression()) { report(new StringBuilder(256).append("<apply><plus/>").append(getExpression()).append("<apply><times/>").append("<cn>").append(((float) coefficient)).append("</cn>").append("<cn>").append(factor.floatValue()).append("</cn>").append("</apply></apply>").toString()); } else { report(new StringBuilder(256).append("<apply><times/>").append("<cn>").append(((float) coefficient)).append("</cn>").append("<cn>").append(factor.floatValue()).append("</cn>").append("</apply>").toString()); } return result; }
@Override public ReportingFloatValue add(double coefficient, Number factor, int exponent) { ReportingFloatValue result = ((ReportingFloatValue) super.add(coefficient, factor, exponent)); if (hasExpression()) { report(new StringBuilder(256).append("<apply><plus/>").append(getExpression()).append("<apply><times/>").append("<cn>").append(((float) coefficient)).append("</cn>").append("<apply><power/>").append("<cn>").append(factor.floatValue()).append("</cn>").append("<cn>").append(((float) exponent)).append("</cn>").append("</apply></apply></apply>").toString()); } else { report(new StringBuilder(256).append("<apply><times/>").append("<cn>").append(((float) coefficient)).append("</cn>").append("<apply><power/>").append("<cn>").append(factor.floatValue()).append("</cn>").append("<cn>").append(((float) exponent)).append("</cn>").append("</apply></apply>").toString()); } return result; }
@Override public ReportingFloatValue add(double coefficient, Number firstFactor, Number secondFactor) { ReportingFloatValue result = ((ReportingFloatValue) super.add(coefficient, firstFactor, secondFactor)); if (hasExpression()) { report(new StringBuilder(256).append("<apply><plus/>").append(getExpression()).append("<apply><times/>").append("<cn>").append(((float) coefficient)).append("</cn>").append("<cn>").append(firstFactor.floatValue()).append("</cn>").append("<cn>").append(secondFactor.floatValue()).append("</cn>").append("</apply></apply>").toString()); } else { report(new StringBuilder(256).append("<apply><times/>").append("<cn>").append(((float) coefficient)).append("</cn>").append("<cn>").append(firstFactor.floatValue()).append("</cn>").append("<cn>").append(secondFactor.floatValue()).append("</cn>").append("</apply>").toString()); } return result; }
@Override public ReportingFloatValue subtract(double value) { ReportingFloatValue result = ((ReportingFloatValue) super.subtract(value)); if (hasExpression()) { report(new StringBuilder(256).append("<apply><minus/>").append(getExpression()).append("<cn>").append(((float) value)).append("</cn>").append("</apply>").toString()); } else { report(new StringBuilder(256).append("<apply><minus/>").append("<cn>").append(((float) value)).append("</cn>").append("</apply>").toString()); } return result; }
@Override public ReportingFloatValue add(double value) { ReportingFloatValue result = ((ReportingFloatValue) super.add(value)); if (hasExpression()) { report(new StringBuilder(256).append("<apply><plus/>").append(getExpression()).append("<cn>").append(((float) value)).append("</cn>").append("</apply>").toString()); } else { report(new StringBuilder(256).append("<cn>").append(((float) value)).append("</cn>").toString()); } return result; }
@Override public ReportingFloatValue subtract(org.jpmml.evaluator.Value<? extends Number> value) { ReportingFloatValue result = ((ReportingFloatValue) super.subtract(value)); if (hasExpression()) { report(new StringBuilder(256).append("<apply><minus/>").append(getExpression()).append("<cn>").append(value.floatValue()).append("</cn>").append("</apply>").toString()); } else { report(new StringBuilder(256).append("<apply><minus/>").append("<cn>").append(value.floatValue()).append("</cn>").append("</apply>").toString()); } return result; }
@Override public ReportingFloatValue add(double coefficient, Number... factors) { ReportingFloatValue result = ((ReportingFloatValue) super.add(coefficient)); if (hasExpression()) { report(new StringBuilder(256).append("<apply><plus/>").append(getExpression()).append("<apply><times/>").append("<cn>").append(((float) coefficient)).append("</cn>").append(format(factors)).append("</apply></apply>").toString()); } else { report(new StringBuilder(256).append("<apply><times/>").append("<cn>").append(((float) coefficient)).append("</cn>").append(format(factors)).append("</apply>").toString()); } return result; }
@Override public ReportingFloatValue add(org.jpmml.evaluator.Value<? extends Number> value) { ReportingFloatValue result = ((ReportingFloatValue) super.add(value)); if (hasExpression()) { report(new StringBuilder(256).append("<apply><plus/>").append(getExpression()).append("<cn>").append(value.floatValue()).append("</cn>").append("</apply>").toString()); } else { report(new StringBuilder(256).append("<cn>").append(value.floatValue()).append("</cn>").toString()); } return result; }