/** * Adds a SpeciesType instance to the listOfSpeciesTypes of this Model. * * @param speciesType * @return {@code true} if the {@link #listOfSpeciesTypes} was changed as * a result of this call. * @deprecated Only valid in SBML Level 2 for Versions 2 through 4. */ @Deprecated public boolean addSpeciesType(SpeciesType speciesType) { return getListOfSpeciesTypes().add(speciesType); }
/** * Removes the n-th {@link SpeciesType} of the {@link Model}. * * @param n * @return the removed element. * @deprecated Only valid in SBML Level 2 for Versions 2 through 4. */ @Deprecated public SpeciesType removeSpeciesType(int n) { return getListOfSpeciesTypes().remove(n); }
/** * Gets the n<sup>th</sup> {@link SpeciesType} object in this Model. * * @param n the index of the element to return * @return the n<sup>th</sup> {@link SpeciesType} of this Model. Returns * {@code null} if there * are no speciesType 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 SpeciesType getSpeciesType(int n) { return getListOfSpeciesTypes().get(n); }
setListOfSpeciesTypes(model.getListOfSpeciesTypes().clone());