ValidationFunction<SBase>
public class AssignmentCycleValidation extends AbstractValidationFunction<SBase>
SBMLErrorCodes.CORE_20906
.
There must not be circular dependencies in the combined set of InitialAssignment , AssignmentRule and KineticLaw objects in a model. Each of these constructs has the effect of assigning a value to an identifier (i.e., the identifier given in the attribute symbol in InitialAssignment , the attribute variable in AssignmentRule , and the attribute id on the KineticLaw ’s enclosing Reaction ). Each of these constructs computes the value using a mathematical formula. The formula for a given identifier cannot make reference to a second identifier whose own definition depends directly or indirectly on the first identifier. (References: SBML L3V1 Section 4.9.5; SBML L3V2 Section 4.9.5.)
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
ASSIGNMENT_CYCLE_VALIDATION_FOUND_CYCLE_IDS |
Key to store a set of ids in the
ValidationContext so that we do not report several times the same cycle. |
Constructor | Description |
---|---|
AssignmentCycleValidation() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
check(ValidationContext ctx,
SBase sb) |
Returns
true if the constraint is valid and false
if it's broken. |
isSelfLogging, setIsSelfLogging
public static final java.lang.String ASSIGNMENT_CYCLE_VALIDATION_FOUND_CYCLE_IDS
ValidationContext
so that we do not report several times the same cycle.public boolean check(ValidationContext ctx, SBase sb)
ValidationFunction
true
if the constraint is valid and false
if it's broken.ctx
- the context in which the validation is performedsb
- the object to checkfalse
if the constraint is broken