/** * Removes the nth product species (SpeciesReference object) in the list of * products in this Reaction and returns it. * * @param i * the index of the SpeciesReference object to remove. * @return the removed SpeciesReference object, or null if the given index * is out of range. */ public SpeciesReference removeProduct(int i) { return listOfProducts.remove(i); }
/** * Removes the nth modifier species (ModifierSpeciesReference object) in the * list of modifiers in this Reaction and returns it. * * @param i * the index of the ModifierSpeciesReference object to remove. * @return the removed ModifierSpeciesReference object, or null if the given * index is out of range. */ public ModifierSpeciesReference removeModifier(int i) { return getListOfModifiers().remove(i); }
/** * Removes the nth reactant species (SpeciesReference object) in the list of * reactants in this Reaction and returns it. * * @param i * the index of the SpeciesReference object to remove. * @return the removed SpeciesReference object, or null if the given index * is out of range. */ public SpeciesReference removeReactant(int i) { return getListOfReactants().remove(i); }
/** * Removes the i-th {@link Compartment} of the {@link Model}. * * @param i * the index of the {@link Compartment} to remove * @return the removed {@link Compartment}. */ public Compartment removeCompartment(int i) { return getListOfCompartments().remove(i); }
/** * Removes the n-th {@link InitialAssignment} of the {@link Model}. * * @param n * @return the removed element. */ public InitialAssignment removeInitialAssignment(int n) { return getListOfInitialAssignments().remove(n); }
/** * Removes the Parameter 'parameter' from this Model. * * @param parameter * @return {@code true} if the {@link Parameter} was found and removed. */ public boolean removeParameter(Parameter parameter) { return getListOfParameters().remove(parameter); }
/** * @param i position * in the listOfInputs which should be deleted * @throws IndexOutOfBoundsException if the index is invalid. */ public void removeInput(int i) { if (!isSetListOfInputs()) { throw new IndexOutOfBoundsException(Integer.toString(i)); } listOfInputs.remove(i); }
/** * @param input * to remove from the listOfInputs * @return {@code true} if the operation was successful */ public boolean removeInput(Input input) { if (isSetListOfInputs()) { return listOfInputs.remove(input); } return false; }
/** * @param transition * to remove from the listOfTransitions * @return {@code TRUE} if the operation was successful */ public boolean removeTransition(Transition transition) { if (isSetListOfTransitions()) { return listOfTransitions.remove(transition); } return false; }
/** * Removes the SpeciesReference 'modspecref' from the listOfReactants of * this Reaction. * * @param specref * @return */ public boolean removeReactant(SpeciesReference specref) { return getListOfReactants().remove(specref); }
/** * Removes the n-th {@link FunctionDefinition} of the {@link Model}. * * @param n * @return the removed element. */ public FunctionDefinition removeFunctionDefinition(int n) { return getListOfFunctionDefinitions().remove(n); }
/** * Removes the i-th {@link Rule} of the {@link Model}. * * @param i * @return the removed element. */ public Rule removeRule(int i) { return getListOfRules().remove(i); }
/** * Removes a {@link Rule} from the {@link Model}. * * @param rule * the {@link Rule} to be removed. * @return {@code true} if the {@link Rule} was found and removed. */ public boolean removeRule(Rule rule) { return getListOfRules().remove(rule); }
/** * Removes a species from the model. * * @param spec * @return {@code true} if the {@link Species} was found and removed. */ public boolean removeSpecies(Species spec) { return getListOfSpecies().remove(spec); }
/** * Removes the n-th {@link UnitDefinition} of the {@link Model}. * * @param n * @return the removed element. */ public UnitDefinition removeUnitDefinition(int n) { return getListOfUnitDefinitions().remove(n); }
/** * Removes the ModifierSpeciesReference 'modspecref' from this Reaction. * * @param modspecref * @return */ public boolean removeModifier(ModifierSpeciesReference modspecref) { return getListOfModifiers().remove(modspecref); }
/** * 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); }
/** * Removes the n-th {@link Constraint} of the {@link Model}. * * @param n * @return the removed element. */ public Constraint removeConstraint(int n) { return getListOfConstraints().remove(n); }
/** * Removes the n-th {@link Reaction} of the {@link Model}. * * @param n * @return the removed element. */ public Reaction removeReaction(int n) { return getListOfReactions().remove(n); }
/** * Removes a reaction from the model. * * @param reac * @return {@code true} if the {@link Reaction} was found and removed. */ public boolean removeReaction(Reaction reac) { return getListOfReactions().remove(reac); }