/** * Removes the n-th {@link CompartmentType} of the {@link Model}. * * @param n * the index of the {@link Compartment} to remove * @return the removed {@link CompartmentType}. * @deprecated Only valid in SBML Level 2 for Versions 2 through 4. */ @Deprecated public CompartmentType removeCompartmentType(int n) { return getListOfCompartmentTypes().remove(n); }
/** * Adds a CompartmentType instance to the listOfCompartmentTypes of this * Model. * * @param compartmentType * @return {@code true} if the {@link #listOfCompartmentTypes} was * changed as a result of this call. * @deprecated Only valid in SBML Level 2 for Versions 2 through 4. */ @Deprecated public boolean addCompartmentType(CompartmentType compartmentType) { return getListOfCompartmentTypes().add(compartmentType); }
/** * Gets the n<sup>th</sup> CompartmentType object in this Model. * * @param n the index of the element to return * @return the n<sup>th</sup> CompartmentType of this Model. Returns * {@code null} if there are no * compartmentType defined or if the index n is too big or lower than * zero. * @deprecated Only valid in SBML Level 2 for Versions 2 through 4. */ @Deprecated public CompartmentType getCompartmentType(int n) { return getListOfCompartmentTypes().get(n); }
setListOfCompartmentTypes(model.getListOfCompartmentTypes().clone());