* @exception IllegalActionException If the parameter value is invalid.
*/
public void attributeChanged(Attribute attribute)
throws IllegalActionException {
if (attribute == precision) {
IntMatrixToken token = (IntMatrixToken) precision.getToken();
if ((token.getRowCount() != 1) || (token.getColumnCount() != 2)) {
throw new IllegalActionException(this,
"Invalid precision (not a 1 by 2 matrix).");
}
Precision precision = new Precision(token.getElementAt(0, 0), token
.getElementAt(0, 1));
output.setTypeEquals(new FixType(precision));
_quantization = _quantization.setPrecision(precision);
} else if (attribute == rounding) {
Rounding r = Rounding.getName(rounding.getExpression());