throws IllegalActionException, NameDuplicationException {
super(container, name);
input = new TypedIOPort(this, "input", true, false);
input.setMultiport(false);
input.setTypeEquals(BaseType.DOUBLE);
new Parameter(input, "signalType", new StringToken("CONTINUOUS"));
output = new TypedIOPort(this, "output", false, true);
output.setMultiport(false);
output.setTypeEquals(BaseType.BOOLEAN);
new Parameter(output, "signalType", new StringToken("DISCRETE"));
_thWidth = 1e-2;
thresholdWidth = new Parameter(this, "thresholdWidth", new DoubleToken(
_thWidth));
_thCenter = 0.0;
thresholdCenter = new Parameter(this, "thresholdCenter",
new DoubleToken(_thCenter));
_lowerBound = -5e-3;
_upperBound = 5e-3;
}