org.sbml.jsbml.ext.arrays.validator.constraints
public class DimensionSizeCheck extends ArraysConstraint
Dimension object has size that is both
scalar and constant. Also, the size should be a non-negative integer.| Modifier and Type | Field and Description |
|---|---|
private Dimension |
dim |
listOfErrors, model| Constructor and Description |
|---|
DimensionSizeCheck(Model model,
Dimension dim) |
| 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 |
checkSize(java.lang.String id)
Given an id, check if it points to a valid parameter that is
both scalar and constant.
|
private void |
logDimensionSizeInvalid(java.lang.String shortMsg)
Log an error indicating that the size associated with the given dimension object
doesn't point to a valid parameter.
|
private void |
logDimensionSizeValueInconsistency(java.lang.String shortMsg)
Log an error indicating that the given dimension has value that is not scalar or
constant or non-negative integer.
|
private void |
logMissingDimensionAttribute(java.lang.String shortMsg)
Log an error indicating that a required attribute value is not set.
|
getListOfErrors, logFailureprivate final Dimension dim
public void check()
ArraysConstraintcheck in class ArraysConstraintprivate void checkSize(java.lang.String id)
id - - identifier that needs to be checkedprivate void logMissingDimensionAttribute(java.lang.String shortMsg)
shortMsg - private void logDimensionSizeInvalid(java.lang.String shortMsg)
shortMsg - private void logDimensionSizeValueInconsistency(java.lang.String shortMsg)
shortMsg -