/** Check the dimensions of all parameters and ports.
* @exception IllegalActionException If the dimensions are illegal.
*/
private void _checkParameters() throws IllegalActionException {
// Check state variable names.
ArrayToken stateNames = (ArrayToken) stateVariableNames.getToken();
int n = stateNames.length();
if (n < 1) {
throw new IllegalActionException(this, "There must be at "
+ "least one state variable for a differential system.");
}
// Check if any of the state variable names is an empty string.
for (int i = 0; i < n; i++) {
String name = (((StringToken) stateNames.getElement(i))
.stringValue()).trim();
if (name.equals("")) {
throw new IllegalActionException(this, "A state variable "
+ "name should not be an empty string.");