/** * Returns the number of {@link CompartmentType}s of this {@link Model}. * * @return the number of {@link CompartmentType}s of this {@link Model}. * @deprecated using {@link CompartmentType} is not recommended, because this * data structure is only valid in SBML Level 2 for Versions 2 * through 4. */ @Deprecated public int getCompartmentTypeCount() { return isSetListOfCompartmentTypes() ? listOfCompartmentTypes.size() : 0; }
setListOfUnitDefinitions(model.getListOfUnitDefinitions().clone()); if (model.isSetListOfCompartmentTypes()) { setListOfCompartmentTypes(model.getListOfCompartmentTypes().clone());