/** * Sets the conversionFactor of this {@link Species} to the id of * 'conversionFactor'. This is only possible if Level >= 3. * * @param conversionFactor the conversion factor */ public void setConversionFactor(Parameter conversionFactor) { setConversionFactor(conversionFactor != null ? conversionFactor.getId() : null); }
/** * Removes the {@link Parameter} 'p' from the {@link #listOfLocalParameters} * of this {@link KineticLaw}. * * @param p * @return {@code true} if the operation was performed successfully. * @deprecated use {@link #removeLocalParameter(LocalParameter)} */ @Deprecated public boolean removeParameter(Parameter p) { return removeLocalParameter(p.getId()); }
/** * Sets the conversionFactorID of this {@link Model} to the id of the * {@link Parameter} 'conversionFactor'. * * @param conversionFactor */ public void setConversionFactor(Parameter conversionFactor) { setConversionFactor( conversionFactor != null ? conversionFactor.getId() : null); }
if (parameter.getId().equals(variableId)) { selectedRules.add(rule.getMetaId());
@Override public boolean check(ValidationContext ctx, Parameter p) { Model m = p.getModel(); if (m != null && !p.isSetValue()) { boolean setByAssignment = false; if (p.isSetId()) { setByAssignment = m.getInitialAssignmentBySymbol(p.getId()) != null; if (!setByAssignment) { Rule r = m.getRuleByVariable(p.getId()); setByAssignment = r != null && r.isAssignment(); } } return setByAssignment; } return true; } };
if (parameter.getId().equals(variableId) && !selectedEvents.contains(event.getMetaId())) { selectedEvents.add(event.getMetaId());
String pid = p.getId(); boolean relevant = false;
@Override public boolean check(ValidationContext ctx, Parameter p) { if (p.isSetUnits()) { String units = p.getUnits(); Model m = p.getModel(); if (! (Unit.isUnitKind(units, ctx.getLevel(), ctx.getVersion()) || Unit.isPredefined(units, ctx.getLevel()) || (m != null && m.getUnitDefinition(units) != null))) { ValidationConstraint.logError(ctx, CORE_20701, p, p.getId(), p.getUnits()); return false; } } return true; } };