this.endDev = 0;
return;
} else {
for ( Long param : parameters ) {
if ( param.longValue() < 0 ) {
throw new RuntimeDroolsException( "[Coincides Evaluator]: negative values not allowed for temporal distance thresholds: '" + paramText + "'" );
}
}
if ( parameters.length == 1 ) {
// same deviation for both
this.startDev = parameters[0].longValue();
this.endDev = parameters[0].longValue();
} else if ( parameters.length == 2 ) {
// different deviation
this.startDev = parameters[0].longValue();
this.endDev = parameters[1].longValue();
} else {
throw new RuntimeDroolsException( "[Coincides Evaluator]: Not possible to have more than 2 parameters: '" + paramText + "'" );
}
}
}