/** * * @param i * @return the ith ModifierSpeciesReference of the listOfModifiers. Can be * null if it doesn't exist. */ public ModifierSpeciesReference getModifier(int i) { return getListOfModifiers().get(i); }
/** * * @param i * @return the ith {@link LocalParameter} object in the * {@link #listOfLocalParameters} in this {@link KineticLaw} * instance. */ public LocalParameter getLocalParameter(int i) { return getListOfParameters().get(i); }
/** * Returns a specific Unit instance belonging to this UnitDefinition. * * @param i * an integer, the index of the Unit to be returned. * @return the ith Unit of this UnitDefinition */ public Unit getUnit(int i) { return getListOfUnits().get(i); }
/** * * @param i * @return the ith reactant {@link SpeciesReference} of the listOfReactants. * Can be null if it doesn't exist. */ public SpeciesReference getReactant(int i) { return getListOfReactants().get(i); }
/** * Gets the n<sup>th</sup> Event object in this Model. * * @param n the index of the element to return * @return the n<sup>th</sup> Event of this Model. Returns {@code null} if * there are no event * defined or if the index n is too big or lower than zero. */ public Event getEvent(int n) { return getListOfEvents().get(n); }
/** * Gets the n<sup>th</sup> {@link Parameter} object in this {@link Model}. * * @param n the index of the element to return * @return the n<sup>th</sup> {@link Parameter} of this {@link Model}. */ public Parameter getParameter(int n) { return getListOfParameters().get(n); }
/** * Returns the n-th {@link ExternalModelDefinition} object in this {@link CompSBMLDocumentPlugin}. * * @param index an index * @return the {@link ExternalModelDefinition} with the given index if it exists. * @throws IndexOutOfBoundsException if the index is out of range: (index < 0 || index >= size()) */ public ExternalModelDefinition getExternalModelDefinition(int index) { return getListOfExternalModelDefinitions().get(index); }
/** * Gets the n<sup>th</sup> Constraint object in this Model. * * @param n the index of the element to return * @return the n<sup>th</sup> Constraint of this Model. Returns {@code null} * if there are no * constraint defined or if the index n is too big or lower than zero. */ public Constraint getConstraint(int n) { return getListOfConstraints().get(n); }
/** * Gets the n<sup>th</sup> {@link Rule} of the listOfRules. * * @param n the index of the element to return * @return the n<sup>th</sup> {@link Rule} of the listOfRules. {@code null} if * it doesn't exist. */ public Rule getRule(int n) { return getListOfRules().get(n); }
/** * Gets the n-th {@link Species} object in this Model. * * @param n the index of the element to return * @return the {@link Species} with the given index if it exists, * {@code null} otherwise. */ public Species getSpecies(int n) { return getListOfSpecies().get(n); }
/** * Returns the n-th {@link Port} object in this {@link CompModelPlugin}. * * @param index an index * @return the {@link Port} with the given index if it exists. * @throws IndexOutOfBoundsException if the index is out of range: (index < 0 || index >= size()) */ public Port getPort(int index) { return getListOfPorts().get(index); }
/** * * @param i * @return the ith product SpeciesReference of the listOfProducts. Can be * null if it doesn't exist. */ public SpeciesReference getProduct(int i) { return getListOfProducts().get(i); }
/** * Gets the n<sup>th</sup> {@link InitialAssignment} object in this * {@link Model}. * * @param n the index of the element to return * @return the n<sup>th</sup> {@link InitialAssignment} of this {@link Model}. * {@code null} if * the listOfInitialAssignments is not set. */ public InitialAssignment getInitialAssignment(int n) { return getListOfInitialAssignments().get(n); }
/** * Gets the n-th {@link Reaction} object in this Model. * * @param n * the reaction index * @return the n-th {@link Reaction} of this Model. */ public Reaction getReaction(int n) { return getListOfReactions().get(n); }
/** * Returns the n-th {@link Submodel} object in this {@link CompModelPlugin}. * * @param index an index * @return the {@link Submodel} with the given index if it exists. * @throws IndexOutOfBoundsException if the index is out of range: (index < 0 || index >= size()) */ public Submodel getSubmodel(int index) { return getListOfSubmodels().get(index); }
/** * Gets the ith {@link QualitativeSpecies}. * * @param i * * @return the ith {@link QualitativeSpecies} * @throws IndexOutOfBoundsException is the index is invalid. */ public QualitativeSpecies getQualitativeSpecies(int i) { return getListOfQualitativeSpecies().get(i); }
/** * Returns the n-th {@link ReplacedElement} object in this {@link CompSBasePlugin}. * * @param index an index * @return the {@link ReplacedElement} with the given index if it exists. * @throws IndexOutOfBoundsException if the index is out of range: (index < 0 || index >= size()) */ public ReplacedElement getReplacedElement(int index) { return getListOfReplacedElements().get(index); }
/** * Gets the ith {@link MultiSpeciesType}. * * @param i * * @return the ith {@link MultiSpeciesType} * @throws IndexOutOfBoundsException if the index is invalid. */ public MultiSpeciesType getSpeciesType(int i) { return getListOfSpeciesTypes().get(i); }
/** * Gets an element from the listOfEventAssignments, with the given id. * * @param eventAssignmentId the id of the {@link EventAssignment} element to get. * @return an element from the listOfEventAssignments with the given id or null. */ public EventAssignment getEventAssignment(String eventAssignmentId) { if (isSetListOfEventAssignments()) { return getListOfEventAssignments().get(eventAssignmentId); } return null; }
/** * Gets an element from the listOfDimensions, with the given id. * * @param fieldId the id of the {@link Dimension} element to get. * @return an element from the listOfDimensions with the given id or {@code null}. */ public Dimension getDimension(String fieldId) { if (isSetListOfDimensions()) { return getListOfDimensions().get(fieldId); } return null; }