/** * Returns the number of {@link Species} of this {@link Model}. * * @return the number of {@link Species} of this {@link Model}. */ public int getSpeciesCount() { return isSetListOfSpecies() ? listOfSpecies.size() : 0; }
setListOfCompartments(model.getListOfCompartments().clone()); if (model.isSetListOfSpecies()) { setListOfSpecies(model.getListOfSpecies().clone());
/** * Returns the number of {@link Species} whose boundary condition is set to * {@code true}. * * @return the number of {@link Species} whose boundary condition is set to * {@code true}. */ public int getSpeciesWithBoundaryConditionCount() { return isSetListOfSpecies() ? getListOfSpecies().filterList(new BoundaryConditionFilter()).size() : 0; }
@Override public boolean check(ValidationContext ctx, Model m) { if (m.isSetListOfSpecies() || m.isListOfSpeciesEmpty()) { return new UnknownElementValidationFunction<TreeNodeWithChangeSupport>().check(ctx, m.getListOfSpecies()); } return true; } };
@Override public boolean check(ValidationContext ctx, Model m) { if (m.isSetListOfSpecies() || m.isListOfSpeciesEmpty()) { return new UnknownAttributeValidationFunction<TreeNodeWithChangeSupport>().check(ctx, m.getListOfSpecies()); } return true; } };
Species s = m.isSetListOfSpecies() ? m.getSpecies(id) : null;
if (model.isSetListOfSpecies()) { for (Species s : model.getListOfSpecies()) { if (!s.isConstant()) {
if (model.isSetListOfSpecies()) { for (int i = 0; i < model.getSpeciesCount(); i++) { Species species = model.getSpecies(i);
|| (m.isSetListOfSpecies() && m.getSpecies(symbol) != null) || (m.isSetListOfParameters() && m.getParameter(symbol) != null);