* @throws BuilderException
* if the source module has not been provided.
*/
public Sawtooth createModule () throws BuilderException {
if (!hasFrequency)
throw new BuilderException ("Sawtooth requires frequency.");
if (!hasAmplitude)
throw new BuilderException ("Sawtooth requires amplitude.");
if (frequency < 0.0)
throw new BuilderException ("Sawtooth requires non-negative frequency.");
return new Sawtooth (getSource ().createModule (), frequency, amplitude);
}