if (lowerBoundValue instanceof ScalarToken) {
if (((ScalarToken)lowerBoundValue).isGreaterThan((ScalarToken)_latestSum).booleanValue()) {
$ASSIGN$_latestSum(lowerBoundValue);
}
} else {
throw new IllegalActionException(this, "lowerBound parameter only works with scalar values. Value given was: " + lowerBoundValue);
}
}
Token upperBoundValue = upperBound.getToken();
if (upperBoundValue != null) {
if (upperBoundValue instanceof ScalarToken) {
if (((ScalarToken)upperBoundValue).isLessThan((ScalarToken)_latestSum).booleanValue()) {
$ASSIGN$_latestSum(upperBoundValue);
}
} else {
throw new IllegalActionException(this, "upperBound parameter only works with scalar values. Value given was: " + upperBoundValue);
}
}
output.broadcast(_latestSum);
}