/** * * @return the number of products {@link SpeciesReference}. */ public int getProductCount() { return listOfProducts == null ? 0 : listOfProducts.size(); }
/** * Returns {@code true} if the listOfProducts of this reaction is empty. * * @return {@code true} if the listOfProducts of this reaction is empty. */ public boolean isListOfProductsEmpty() { return (listOfProducts != null) && (listOfProducts.size() == 0); }
/** * * @return {@code true} if the listOfProducts of this reaction is not {@code true} and not * empty. */ public boolean isSetListOfProducts() { return (listOfProducts != null) && (listOfProducts.size() > 0); }
/** * Checks if the listOfRules is <code>!= null</code>, but has no * children. * * @return <code>true</code> if list exists, but has no children, * <code>false</code> otherwise. */ public boolean isListOfRulesEmpty() { return listOfRules != null && listOfRules.size() == 0; }
/** * Returns {@code true} if the listOfCompartments of this Model is not * {@code null} and not * empty. * * @return {@code true} if the listOfCompartments of this Model is not * {@code null} and not * empty. */ public boolean isSetListOfCompartments() { return (listOfCompartments != null) && (listOfCompartments.size() > 0); }
/** * Returns {@code true} if the listOfSpecies of this Model is not {@code null} * and not empty. * * @return {@code true} if the listOfSpecies of this Model is not {@code null} * and not empty. */ public boolean isSetListOfSpecies() { return (listOfSpecies != null) && (listOfSpecies.size() > 0); }
/** * Returns {@code true} if the listOfUnits is not null and not empty. * * @return {@code true} if the listOfUnits is not null and not empty. */ public boolean isSetListOfUnits() { return (listOfUnits != null) && (listOfUnits.size() > 0); }
/** * * @return the number of reactants {@link SpeciesReference}. */ public int getReactantCount() { return listOfReactants == null ? 0 : listOfReactants.size(); }
/** * Checks if the listOfParameters is <code>!= null</code>, but has no * children. * * @return <code>true</code> if list exists, but has no children, * <code>false</code> otherwise. */ public boolean isListOfParametersEmpty() { return listOfParameters != null && listOfParameters.size() == 0; }
/** * Checks if the listOfSpeciesTypes is <code>!= null</code>, but has no * children. * * @return <code>true</code> if list exists, but has no children, * <code>false</code> otherwise. */ public boolean isListOfSpeciesTypesEmpty() { return listOfSpeciesTypes != null && listOfSpeciesTypes.size() == 0; }
/** * Returns the number of {@link Group}s of this {@link GroupsModelPlugin}. * * @return the number of {@link Group}s of this {@link GroupsModelPlugin}. */ public int getGroupCount() { return isSetListOfGroups() ? listOfGroups.size() : 0; }
/** * Returns the number of {@link Compartment}s of this {@link Model}. * * @return the number of {@link Compartment}s of this {@link Model}. */ public int getCompartmentCount() { return isSetListOfCompartments() ? listOfCompartments.size() : 0; }
/** * Returns the number of {@link Constraint}s of this {@link Model}. * * @return the number of {@link Constraint}s of this {@link Model}. */ public int getConstraintCount() { return isSetListOfConstraints() ? listOfConstraints.size() : 0; }
/** * Returns the number of {@link Event}s of this {@link Model}. * * @return the number of {@link Event}s of this {@link Model}. */ public int getEventCount() { return isSetListOfEvents() ? listOfEvents.size() : 0; }
/** * Returns the number of {@link Parameter}s of this {@link Model}. * * @return the number of {@link Parameter}s of this {@link Model}. */ public int getParameterCount() { return isSetListOfParameters() ? listOfParameters.size() : 0; }
/** * Returns the number of {@link Rule}s of this {@link Model}. * * @return the number of {@link Rule}s of this {@link Model}. */ public int getRuleCount() { return isSetListOfRules() ? listOfRules.size() : 0; }
/** * * @return */ public int getInputCount() { return isSetListOfInputs() ? getListOfInputs().size() : 0; }
/** * Returns the number of {@link QualitativeSpecies} objects in this {@link QualModelPlugin}. * * @return the number of {@link QualitativeSpecies} objects in this {@link QualModelPlugin}. */ public int getQualitativeSpeciesCount() { if (!isSetListOfQualitativeSpecies()) { return 0; } return getListOfQualitativeSpecies().size(); }
/** * Returns the number of {@link Transition} objects in this {@link QualModelPlugin}. * * @return the number of {@link Transition} objects in this {@link QualModelPlugin}. */ public int getTransitionCount() { if (!isSetListOfTransitions()) { return 0; } return getListOfTransitions().size(); }
/** * Returns the number of {@link SubListOfSpeciesFeature}s in this * {@link MultiSpeciesPlugin}. * * @return the number of {@link SubListOfSpeciesFeature}s in this * {@link MultiSpeciesPlugin}. */ public int getSubListOfSpeciesFeatureCount() { return isSetListOfSubListOfSpeciesFeatures() ? getListOfSubListOfSpeciesFeatures().size() : 0; }