/** * Returns the number of {@link Rule}s of this {@link Model}. * * @return the number of {@link Rule}s of this {@link Model}. * @libsbml.deprecated use {@link #getRuleCount()} */ public int getNumRules() { return getRuleCount(); }
@Override public boolean check(ValidationContext ctx, EventAssignment ea) { Model m = ea.getModel(); if (m != null) { if (m.getRuleCount() > 0) { for (Rule r : m.getListOfRules()) { if (r.isAssignment()) { AssignmentRule ar = (AssignmentRule) r; if (ar.getVariable().equals(ea.getVariable())) { return false; } } } } } return true; } };
/** * Returns the number of elements that can contain math in the {@link Model} . * * @return the number of elements that can contain math in the {@link Model} . * @see MathContainer */ public int getMathContainerCount() { return getFunctionDefinitionCount() + getInitialAssignmentCount() + getEventAssignmentCount() + getDelayCount() + getConstraintCount() + getRuleCount() + getTriggerCount() + getStoichiometryMathCount() + getKineticLawCount(); }
for (i = 0; i < model.getRuleCount(); i++) { equation = new InnerNode<SBase>(model.getRule(i)); Rule r = model.getRule(i); for (i = 0; i < model.getRuleCount(); i++) { equation = new InnerNode<SBase>(model.getRule(i)); Rule r = model.getRule(i);
for (int i = 0; i < model.getRuleCount(); i++) { Rule rule = model.getRule(i); if (rule instanceof AssignmentRule) {