if (df.getName().equalsIgnoreCase("time")) {
command.append("cint(field(\"");
command.append(df.getName());
command.append("\",0");
command.append("))");
fields.add(new ProcessField(df.getName(), command.toString()));
} else {
command.append("cfloat(field(\"");
command.append(df.getName());
command.append("\",0");
command.append("))");
fields.add(new ProcessField(df.getName(), command.toString()));
}
}
StringBuilder command = new StringBuilder();
switch (prediction) {
case fieldmax:
command.append("fieldmax(\"");
command.append(predictField);
command.append("\",");
command.append(-forwardWindow);
command.append(",");
command.append(-1);
command.append(")");
break;
case fieldmaxpip:
command.append("fieldmaxpip(\"");
command.append(predictField);
command.append("\",");
command.append(-forwardWindow);
command.append(",");
command.append(-1);
command.append(")");
}
fields.add(new ProcessField("prediction", command.toString()));
}