int cYSteps,
double cMinSlope,
double cMaxSlope,
int cSlopeSteps) throws jjil.core.Error {
if (cMaxY < cMinY) {
throw new Error(
Error.PACKAGE.ALGORITHM,
jjil.algorithm.ErrorCodes.PARAMETER_RANGE_NULL_OR_NEGATIVE,
new Integer(cMinY).toString(),
new Integer(cMaxY).toString(),
null);
}
this.cMinY = cMinY;
this.cMaxY = cMaxY;
if (cMaxSlope < cMinSlope) {
throw new Error(
Error.PACKAGE.ALGORITHM,
jjil.algorithm.ErrorCodes.PARAMETER_RANGE_NULL_OR_NEGATIVE,
new Double(cMinSlope).toString(),
new Double(cMaxSlope).toString(),
null);
}
if (cSlopeSteps <= 0) {
throw new Error(
Error.PACKAGE.ALGORITHM,
jjil.algorithm.ErrorCodes.PARAMETER_OUT_OF_RANGE,
new Integer(cSlopeSteps).toString(),
new Integer(1).toString(),
new Integer(Integer.MAX_VALUE).toString());
}
if (cYSteps <= 0) {
throw new Error(
Error.PACKAGE.ALGORITHM,
jjil.algorithm.ErrorCodes.PARAMETER_OUT_OF_RANGE,
new Integer(cYSteps).toString(),
new Integer(1).toString(),
new Integer(Integer.MAX_VALUE).toString());