org.sbml.jsbml.ext.arrays.validator.constraints
public class ArraysMathCheck extends ArraysConstraint
Modifier and Type | Field and Description |
---|---|
private MathContainer |
mathContainer |
listOfErrors, model
Constructor and Description |
---|
ArraysMathCheck(Model model,
MathContainer mathContainer) |
Modifier and Type | Method and Description |
---|---|
void |
check()
This function is used to check if the given model
doesn't violate the constraint specified by this
object.
|
private void |
checkSelector(ASTNode math) |
private void |
getSelectorNodes(ASTNode math,
java.util.List<ASTNode> listOfNodes)
Recursively checks if a node is of type FUNCTION_SELECTOR.
|
private java.util.List<ASTNode> |
getSelectorNodes(MathContainer mathContainer)
Get all the selector ASTNodes in the given math.
|
private void |
logMathVectorIrregular(java.lang.String shortMsg)
Log an error indicating that the first argument of the selector math is invalid.
|
private void |
logSelectorInconsistency(java.lang.String shortMsg)
Log an error indicating that the first argument of the selector math is invalid.
|
private void |
logVectorInconsistency(java.lang.String shortMsg)
Log an error to indicate that the vector is not regular.
|
getListOfErrors, logFailure
private final MathContainer mathContainer
public ArraysMathCheck(Model model, MathContainer mathContainer)
public void check()
ArraysConstraint
check
in class ArraysConstraint
private void checkSelector(ASTNode math)
private java.util.List<ASTNode> getSelectorNodes(MathContainer mathContainer)
math
- private void getSelectorNodes(ASTNode math, java.util.List<ASTNode> listOfNodes)
math
- listOfNodes
- private void logMathVectorIrregular(java.lang.String shortMsg)
shortMsg
- private void logVectorInconsistency(java.lang.String shortMsg)
shortMsg
- private void logSelectorInconsistency(java.lang.String shortMsg)
shortMsg
-