* @exception NameDuplicationException If the container already has an
* actor with this name.
*/
public ArrayPeakSearch(CompositeEntity container, String name) throws NameDuplicationException, IllegalActionException {
super(container, name);
dip = new Parameter(this, "dip");
dip.setExpression("0.0");
dip.setTypeEquals(BaseType.DOUBLE);
squelch = new Parameter(this, "squelch");
squelch.setExpression("-10.0");
squelch.setTypeEquals(BaseType.DOUBLE);
scale = new StringParameter(this, "scale");
scale.setExpression("absolute");
scale.addChoice("absolute");
scale.addChoice("relative linear");
scale.addChoice("relative amplitude decibels");
scale.addChoice("relative power decibels");
startIndex = new PortParameter(this, "startIndex");
startIndex.setExpression("0");
startIndex.setTypeEquals(BaseType.INT);
endIndex = new PortParameter(this, "endIndex");
endIndex.setExpression("MaxInt");
endIndex.setTypeEquals(BaseType.INT);
maximumNumberOfPeaks = new Parameter(this, "maximumNumberOfPeaks");
maximumNumberOfPeaks.setExpression("MaxInt");
maximumNumberOfPeaks.setTypeEquals(BaseType.INT);
input = new TypedIOPort(this, "input", true, false);
peakValues = new TypedIOPort(this, "peakValues", false, true);
peakIndices = new TypedIOPort(this, "peakIndices", false, true);