/* * Performs a set of semantic consistency checks on the document to establish * whether it is compatible with L1 and can be converted. Query * the results by calling getNumErrors() and getError(). * * @return the number of failed checks (errors) encountered. */ unsigned int SBMLInternalValidator::checkL1Compatibility () { if (getModel() == NULL) return 0; L1CompatibilityValidator validator; validator.init(); unsigned int nerrors = validator.validate(*getDocument()); if (nerrors > 0) getErrorLog()->add( validator.getFailures() ); return nerrors; }