* Sets the value of spatialDimension
*/
public void setSpatialDimension(int spatialDimension) {
Integer oldSpatialDimension = this.spatialDimension;
if (!((spatialDimension >= 0) && (spatialDimension <= 3))) {
throw new SBMLException("Not a valid spatial dimension. Must be 0, 1, 2, or 3.");
}
this.spatialDimension = spatialDimension;
firePropertyChange(SpatialConstants.spatialDimension, oldSpatialDimension, this.spatialDimension);
}