* @throws BuilderException
* if the source module has not been provided.
*/
public Clamp createModule () throws BuilderException {
if (!hasLower)
throw new BuilderException ("Clamp requires lower bound.");
if (!hasUpper)
throw new BuilderException ("Clamp requires upper bound.");
if (lower > upper)
throw new BuilderException (
"Clamp requires lower bound less than or equal to upper bound.");
return new Clamp (getSource ().createModule (), lower, upper);
}