You can subscribe to this list here.
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(121) |
Aug
(343) |
Sep
(98) |
Oct
(55) |
Nov
(158) |
Dec
(219) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2009 |
Jan
(278) |
Feb
(170) |
Mar
(286) |
Apr
(32) |
May
(83) |
Jun
(140) |
Jul
(212) |
Aug
(242) |
Sep
(52) |
Oct
(29) |
Nov
(132) |
Dec
(259) |
2010 |
Jan
(251) |
Feb
(147) |
Mar
(76) |
Apr
(140) |
May
(43) |
Jun
(66) |
Jul
(273) |
Aug
(205) |
Sep
(260) |
Oct
(100) |
Nov
(58) |
Dec
(264) |
2011 |
Jan
(219) |
Feb
(344) |
Mar
(320) |
Apr
(334) |
May
(125) |
Jun
(131) |
Jul
(195) |
Aug
(155) |
Sep
(55) |
Oct
(261) |
Nov
(286) |
Dec
(216) |
2012 |
Jan
(188) |
Feb
(177) |
Mar
(39) |
Apr
(179) |
May
(148) |
Jun
(43) |
Jul
(229) |
Aug
(104) |
Sep
(76) |
Oct
(82) |
Nov
(93) |
Dec
(180) |
2013 |
Jan
(323) |
Feb
(335) |
Mar
(35) |
Apr
(220) |
May
(238) |
Jun
(122) |
Jul
(316) |
Aug
(73) |
Sep
(135) |
Oct
(515) |
Nov
(320) |
Dec
(185) |
2014 |
Jan
(81) |
Feb
(146) |
Mar
(337) |
Apr
(234) |
May
(112) |
Jun
(239) |
Jul
(323) |
Aug
(123) |
Sep
(83) |
Oct
(285) |
Nov
(321) |
Dec
(96) |
2015 |
Jan
(77) |
Feb
(79) |
Mar
(124) |
Apr
(71) |
May
(35) |
Jun
(45) |
Jul
(77) |
Aug
(44) |
Sep
(22) |
Oct
(84) |
Nov
(120) |
Dec
(37) |
2016 |
Jan
(38) |
Feb
(74) |
Mar
(242) |
Apr
(153) |
May
(59) |
Jun
(44) |
Jul
(67) |
Aug
(74) |
Sep
(150) |
Oct
(35) |
Nov
(69) |
Dec
(43) |
2017 |
Jan
(43) |
Feb
(9) |
Mar
(274) |
Apr
(40) |
May
(81) |
Jun
(81) |
Jul
(87) |
Aug
(46) |
Sep
(98) |
Oct
(50) |
Nov
(220) |
Dec
(66) |
2018 |
Jan
(110) |
Feb
(22) |
Mar
(20) |
Apr
(147) |
May
(148) |
Jun
(30) |
Jul
(83) |
Aug
(63) |
Sep
(40) |
Oct
(53) |
Nov
(51) |
Dec
(104) |
2019 |
Jan
(14) |
Feb
(81) |
Mar
(80) |
Apr
(102) |
May
(16) |
Jun
(5) |
Jul
(34) |
Aug
(24) |
Sep
(9) |
Oct
(12) |
Nov
(42) |
Dec
(76) |
2020 |
Jan
(15) |
Feb
(11) |
Mar
(12) |
Apr
(7) |
May
(6) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2021 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(5) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <luc...@us...> - 2019-08-29 23:04:40
|
Revision: 26120 http://sourceforge.net/p/sbml/code/26120 Author: luciansmith Date: 2019-08-29 23:04:36 +0000 (Thu, 29 Aug 2019) Log Message: ----------- Add validation rule spatial-21750. Also fix its name. Modified Paths: -------------- branches/libsbml-experimental/src/sbml/packages/spatial/validator/SpatialSBMLError.h branches/libsbml-experimental/src/sbml/packages/spatial/validator/SpatialSBMLErrorTable.h branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraints.cpp branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraintsDeclared.cxx Added Paths: ----------- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221750-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221750-pass-00-01.xml Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/SpatialSBMLError.h =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/SpatialSBMLError.h 2019-08-29 22:51:56 UTC (rev 26119) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/SpatialSBMLError.h 2019-08-29 23:04:36 UTC (rev 26120) @@ -158,8 +158,8 @@ , SpatialSampledVolumeSampledValueMustBeDouble = 1221706 , SpatialSampledVolumeMinValueMustBeDouble = 1221707 , SpatialSampledVolumeMaxValueMustBeDouble = 1221708 -, SpatialSampledVolumeNeedsMinWithMax = 1221750 -, SpatialSampledVolumeNeedsMaxWithMin = 1221751 +, SpatialSampledVolumeNeedsMaxWithMin = 1221750 +, SpatialSampledVolumeNeedsMinWithMax = 1221751 , SpatialSampledVolumeNoSampledValueWithMinMax = 1221752 , SpatialSampledVolumeNoMinMaxWithSampledValue = 1221753 , SpatialSampledVolumeMinMaxOrSampledValue = 1221754 Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/SpatialSBMLErrorTable.h =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/SpatialSBMLErrorTable.h 2019-08-29 22:51:56 UTC (rev 26119) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/SpatialSBMLErrorTable.h 2019-08-29 23:04:36 UTC (rev 26120) @@ -1199,7 +1199,7 @@ }, // 1221750 - { SpatialSampledVolumeNeedsMinWithMax, + { SpatialSampledVolumeNeedsMaxWithMin, "A 'minValue' attribute goes with the 'maxValue' attribute.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, @@ -1209,7 +1209,7 @@ }, // 1221751 - { SpatialSampledVolumeNeedsMaxWithMin, + { SpatialSampledVolumeNeedsMinWithMax, "A 'maxValue' attribute goes with the 'minValue' attribute.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraints.cpp =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraints.cpp 2019-08-29 22:51:56 UTC (rev 26119) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraints.cpp 2019-08-29 23:04:36 UTC (rev 26120) @@ -523,5 +523,26 @@ END_CONSTRAINT +// 1221750 +START_CONSTRAINT(SpatialSampledVolumeNeedsMaxWithMin, SampledVolume, svol) +{ + bool fail = false; + if (svol.isSetMinValue() && !svol.isSetMaxValue()) { + fail = true; + stringstream ss_msg; + ss_msg << "A SampledVolume"; + if (svol.isSetId()) + { + ss_msg << " with id '" << svol.getId() << "'"; + } + ss_msg << " has a minValue of '" << svol.getMinValue() << "', but does not set the maxValue attribute."; + msg = ss_msg.str(); + } + + inv(fail == false); +} +END_CONSTRAINT + + /** @endcond */ Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraintsDeclared.cxx =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraintsDeclared.cxx 2019-08-29 22:51:56 UTC (rev 26119) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraintsDeclared.cxx 2019-08-29 23:04:36 UTC (rev 26120) @@ -52,6 +52,7 @@ addConstraint(new VConstraintSampledFieldSpatialSampledFieldOneSampleIn1DGeometry(*this)); addConstraint(new VConstraintSampledFieldSpatialSampledFieldTwoSamplesIn2DGeometry(*this)); addConstraint(new VConstraintSampledFieldSpatialSampledFieldThreeSamplesIn3DGeometry(*this)); +addConstraint(new VConstraintSampledVolumeSpatialSampledVolumeNeedsMaxWithMin(*this)); /** @endcond */ Added: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221750-fail-01-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221750-fail-01-01.xml (rev 0) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221750-fail-01-01.xml 2019-08-29 23:04:36 UTC (rev 26120) @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sbml level="3" spatial:required="true" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> + <model> + <spatial:geometry spatial:coordinateSystem="cartesian" spatial:id="geometry_1"> + <spatial:listOfCoordinateComponents> + <spatial:coordinateComponent spatial:id="coordinateComponent_1" spatial:type="cartesianX" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + </spatial:listOfCoordinateComponents> + <spatial:listOfDomainTypes> + <spatial:domainType spatial:id="domainType_1" spatial:spatialDimensions="1"/> + </spatial:listOfDomainTypes> + <spatial:listOfGeometryDefinitions> + <spatial:sampledFieldGeometry spatial:id="geometryDefinition_2" spatial:isActive="false" spatial:sampledField="sampledField_1"> + <spatial:listOfSampledVolumes> + <spatial:sampledVolume spatial:domainType="domainType_1" spatial:id="sampledVolume_1" spatial:minValue="0"/> + </spatial:listOfSampledVolumes> + </spatial:sampledFieldGeometry> + </spatial:listOfGeometryDefinitions> + <spatial:listOfSampledFields> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="3">0 0 1</spatial:sampledField> + </spatial:listOfSampledFields> + </spatial:geometry> + </model> +</sbml> Added: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221750-pass-00-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221750-pass-00-01.xml (rev 0) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221750-pass-00-01.xml 2019-08-29 23:04:36 UTC (rev 26120) @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sbml level="3" spatial:required="true" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> + <model> + <spatial:geometry spatial:coordinateSystem="cartesian" spatial:id="geometry_1"> + <spatial:listOfCoordinateComponents> + <spatial:coordinateComponent spatial:id="coordinateComponent_1" spatial:type="cartesianX" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + </spatial:listOfCoordinateComponents> + <spatial:listOfDomainTypes> + <spatial:domainType spatial:id="domainType_1" spatial:spatialDimensions="1"/> + </spatial:listOfDomainTypes> + <spatial:listOfGeometryDefinitions> + <spatial:sampledFieldGeometry spatial:id="geometryDefinition_2" spatial:isActive="false" spatial:sampledField="sampledField_1"> + <spatial:listOfSampledVolumes> + <spatial:sampledVolume spatial:domainType="domainType_1" spatial:id="sampledVolume_1" spatial:minValue="0" spatial:maxValue="0.5"/> + </spatial:listOfSampledVolumes> + </spatial:sampledFieldGeometry> + </spatial:listOfGeometryDefinitions> + <spatial:listOfSampledFields> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="3">0 0 1</spatial:sampledField> + </spatial:listOfSampledFields> + </spatial:geometry> + </model> +</sbml> |
From: <luc...@us...> - 2019-08-29 22:52:00
|
Revision: 26119 http://sourceforge.net/p/sbml/code/26119 Author: luciansmith Date: 2019-08-29 22:51:56 +0000 (Thu, 29 Aug 2019) Log Message: ----------- Test files for spatial-21652. Added Paths: ----------- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221652-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221652-fail-01-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221652-fail-01-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221652-pass-00-01.xml Added: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221652-fail-01-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221652-fail-01-01.xml (rev 0) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221652-fail-01-01.xml 2019-08-29 22:51:56 UTC (rev 26119) @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sbml level="3" spatial:required="true" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> + <model> + <spatial:geometry spatial:coordinateSystem="cartesian" spatial:id="geometry_1"> + <spatial:listOfCoordinateComponents> + <spatial:coordinateComponent spatial:id="coordinateComponent_1" spatial:type="cartesianX"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + <spatial:coordinateComponent spatial:id="coordinateComponent_2" spatial:type="cartesianX"> + <spatial:boundaryMin spatial:id="boundary_3" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_4" spatial:value="1"/> + </spatial:coordinateComponent> + <spatial:coordinateComponent spatial:id="coordinateComponent_3" spatial:type="cartesianZ"> + <spatial:boundaryMin spatial:id="boundary_5" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_6" spatial:value="1"/> + </spatial:coordinateComponent> + </spatial:listOfCoordinateComponents> + <spatial:listOfSampledFields> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:name="someString" spatial:numSamples1="3" spatial:samplesLength="6">0 0 3 1 0 5</spatial:sampledField> + </spatial:listOfSampledFields> + </spatial:geometry> + </model> +</sbml> + Added: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221652-fail-01-02.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221652-fail-01-02.xml (rev 0) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221652-fail-01-02.xml 2019-08-29 22:51:56 UTC (rev 26119) @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sbml level="3" spatial:required="true" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> + <model> + <spatial:geometry spatial:coordinateSystem="cartesian" spatial:id="geometry_1"> + <spatial:listOfCoordinateComponents> + <spatial:coordinateComponent spatial:id="coordinateComponent_1" spatial:type="cartesianX"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + <spatial:coordinateComponent spatial:id="coordinateComponent_2" spatial:type="cartesianX"> + <spatial:boundaryMin spatial:id="boundary_3" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_4" spatial:value="1"/> + </spatial:coordinateComponent> + <spatial:coordinateComponent spatial:id="coordinateComponent_3" spatial:type="cartesianZ"> + <spatial:boundaryMin spatial:id="boundary_5" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_6" spatial:value="1"/> + </spatial:coordinateComponent> + </spatial:listOfCoordinateComponents> + <spatial:listOfSampledFields> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:name="someString" spatial:numSamples1="3" spatial:numSamples3="1" spatial:samplesLength="6">0 0 3 1 0 5</spatial:sampledField> + </spatial:listOfSampledFields> + </spatial:geometry> + </model> +</sbml> + Added: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221652-fail-01-03.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221652-fail-01-03.xml (rev 0) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221652-fail-01-03.xml 2019-08-29 22:51:56 UTC (rev 26119) @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sbml level="3" spatial:required="true" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> + <model> + <spatial:geometry spatial:coordinateSystem="cartesian" spatial:id="geometry_1"> + <spatial:listOfCoordinateComponents> + <spatial:coordinateComponent spatial:id="coordinateComponent_1" spatial:type="cartesianX"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + <spatial:coordinateComponent spatial:id="coordinateComponent_2" spatial:type="cartesianX"> + <spatial:boundaryMin spatial:id="boundary_3" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_4" spatial:value="1"/> + </spatial:coordinateComponent> + <spatial:coordinateComponent spatial:id="coordinateComponent_3" spatial:type="cartesianZ"> + <spatial:boundaryMin spatial:id="boundary_5" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_6" spatial:value="1"/> + </spatial:coordinateComponent> + </spatial:listOfCoordinateComponents> + <spatial:listOfSampledFields> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:name="someString" spatial:numSamples1="3" spatial:numSamples2="2" spatial:samplesLength="6">0 0 3 1 0 5</spatial:sampledField> + </spatial:listOfSampledFields> + </spatial:geometry> + </model> +</sbml> + Added: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221652-pass-00-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221652-pass-00-01.xml (rev 0) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221652-pass-00-01.xml 2019-08-29 22:51:56 UTC (rev 26119) @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sbml level="3" spatial:required="true" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> + <model> + <spatial:geometry spatial:coordinateSystem="cartesian" spatial:id="geometry_1"> + <spatial:listOfCoordinateComponents> + <spatial:coordinateComponent spatial:id="coordinateComponent_1" spatial:type="cartesianX"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + <spatial:coordinateComponent spatial:id="coordinateComponent_2" spatial:type="cartesianX"> + <spatial:boundaryMin spatial:id="boundary_3" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_4" spatial:value="1"/> + </spatial:coordinateComponent> + <spatial:coordinateComponent spatial:id="coordinateComponent_3" spatial:type="cartesianZ"> + <spatial:boundaryMin spatial:id="boundary_5" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_6" spatial:value="1"/> + </spatial:coordinateComponent> + </spatial:listOfCoordinateComponents> + <spatial:listOfSampledFields> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:name="someString" spatial:numSamples1="3" spatial:numSamples2="2" spatial:numSamples3="1" spatial:samplesLength="6">0 0 3 1 0 5</spatial:sampledField> + </spatial:listOfSampledFields> + </spatial:geometry> + </model> +</sbml> + |
From: <luc...@us...> - 2019-08-29 22:29:47
|
Revision: 26118 http://sourceforge.net/p/sbml/code/26118 Author: luciansmith Date: 2019-08-29 22:29:44 +0000 (Thu, 29 Aug 2019) Log Message: ----------- Add validation rule spatial-21652. Modified Paths: -------------- branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraints.cpp branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraintsDeclared.cxx Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraints.cpp =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraints.cpp 2019-08-29 22:22:20 UTC (rev 26117) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraints.cpp 2019-08-29 22:29:44 UTC (rev 26118) @@ -489,5 +489,39 @@ END_CONSTRAINT +// 1221652 +START_CONSTRAINT(SpatialSampledFieldThreeSamplesIn3DGeometry, SampledField, sfield) +{ + const Geometry* geometry = static_cast<const Geometry*>(sfield.getParentSBMLObject()->getParentSBMLObject()); + pre(geometry->getNumCoordinateComponents()==3); + + bool fail = false; + stringstream wrongvals; + if (!sfield.isSetNumSamples2()) { + fail = true; + wrongvals << " doesn't define the numSamples2 attribute"; + } + if (!sfield.isSetNumSamples3()) { + if (fail) { + wrongvals << ", and also"; + } + wrongvals << " doesn't define the numSamples3 attribute"; + fail = true; + } + if (fail) { + msg = "A SampledField"; + if (sfield.isSetId()) + { + msg += " with id '" + sfield.getId() + "'"; + } + msg += wrongvals.str(); + msg += ", but the ListOfCoordinateComponents has exactly three children."; + } + + inv(fail == false); +} +END_CONSTRAINT + + /** @endcond */ Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraintsDeclared.cxx =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraintsDeclared.cxx 2019-08-29 22:22:20 UTC (rev 26117) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraintsDeclared.cxx 2019-08-29 22:29:44 UTC (rev 26118) @@ -51,6 +51,7 @@ addConstraint(new VConstraintDomainTypeSpatialDomainTypeDimensionsMustMatch1DGeometry(*this)); addConstraint(new VConstraintSampledFieldSpatialSampledFieldOneSampleIn1DGeometry(*this)); addConstraint(new VConstraintSampledFieldSpatialSampledFieldTwoSamplesIn2DGeometry(*this)); +addConstraint(new VConstraintSampledFieldSpatialSampledFieldThreeSamplesIn3DGeometry(*this)); /** @endcond */ |
From: <luc...@us...> - 2019-08-29 22:22:24
|
Revision: 26117 http://sourceforge.net/p/sbml/code/26117 Author: luciansmith Date: 2019-08-29 22:22:20 +0000 (Thu, 29 Aug 2019) Log Message: ----------- Fix X->Y for second dimension. Modified Paths: -------------- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221651-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221651-fail-01-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221651-fail-01-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221651-pass-00-01.xml Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221651-fail-01-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221651-fail-01-01.xml 2019-08-29 22:14:49 UTC (rev 26116) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221651-fail-01-01.xml 2019-08-29 22:22:20 UTC (rev 26117) @@ -7,7 +7,7 @@ <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> </spatial:coordinateComponent> - <spatial:coordinateComponent spatial:id="coordinateComponent_2" spatial:type="cartesianX"> + <spatial:coordinateComponent spatial:id="coordinateComponent_2" spatial:type="cartesianY"> <spatial:boundaryMin spatial:id="boundary_3" spatial:value="0"/> <spatial:boundaryMax spatial:id="boundary_4" spatial:value="1"/> </spatial:coordinateComponent> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221651-fail-01-02.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221651-fail-01-02.xml 2019-08-29 22:14:49 UTC (rev 26116) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221651-fail-01-02.xml 2019-08-29 22:22:20 UTC (rev 26117) @@ -7,7 +7,7 @@ <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> </spatial:coordinateComponent> - <spatial:coordinateComponent spatial:id="coordinateComponent_2" spatial:type="cartesianX"> + <spatial:coordinateComponent spatial:id="coordinateComponent_2" spatial:type="cartesianY"> <spatial:boundaryMin spatial:id="boundary_3" spatial:value="0"/> <spatial:boundaryMax spatial:id="boundary_4" spatial:value="1"/> </spatial:coordinateComponent> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221651-fail-01-03.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221651-fail-01-03.xml 2019-08-29 22:14:49 UTC (rev 26116) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221651-fail-01-03.xml 2019-08-29 22:22:20 UTC (rev 26117) @@ -7,7 +7,7 @@ <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> </spatial:coordinateComponent> - <spatial:coordinateComponent spatial:id="coordinateComponent_2" spatial:type="cartesianX"> + <spatial:coordinateComponent spatial:id="coordinateComponent_2" spatial:type="cartesianY"> <spatial:boundaryMin spatial:id="boundary_3" spatial:value="0"/> <spatial:boundaryMax spatial:id="boundary_4" spatial:value="1"/> </spatial:coordinateComponent> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221651-pass-00-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221651-pass-00-01.xml 2019-08-29 22:14:49 UTC (rev 26116) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221651-pass-00-01.xml 2019-08-29 22:22:20 UTC (rev 26117) @@ -7,7 +7,7 @@ <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> </spatial:coordinateComponent> - <spatial:coordinateComponent spatial:id="coordinateComponent_2" spatial:type="cartesianX"> + <spatial:coordinateComponent spatial:id="coordinateComponent_2" spatial:type="cartesianY"> <spatial:boundaryMin spatial:id="boundary_3" spatial:value="0"/> <spatial:boundaryMax spatial:id="boundary_4" spatial:value="1"/> </spatial:coordinateComponent> |
From: <luc...@us...> - 2019-08-29 22:14:56
|
Revision: 26116 http://sourceforge.net/p/sbml/code/26116 Author: luciansmith Date: 2019-08-29 22:14:49 +0000 (Thu, 29 Aug 2019) Log Message: ----------- Add validation rule spatial-21651. Modified Paths: -------------- branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraints.cpp branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraintsDeclared.cxx Added Paths: ----------- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221651-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221651-fail-01-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221651-fail-01-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221651-pass-00-01.xml Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraints.cpp =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraints.cpp 2019-08-29 22:13:38 UTC (rev 26115) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraints.cpp 2019-08-29 22:14:49 UTC (rev 26116) @@ -450,5 +450,44 @@ END_CONSTRAINT +// 1221651 +START_CONSTRAINT(SpatialSampledFieldTwoSamplesIn2DGeometry, SampledField, sfield) +{ + const Geometry* geometry = static_cast<const Geometry*>(sfield.getParentSBMLObject()->getParentSBMLObject()); + pre(geometry->getNumCoordinateComponents()==2); + + bool fail = false; + stringstream wrongvals; + if (!sfield.isSetNumSamples2()) { + fail = true; + wrongvals << " doesn't define the numSamples2 attribute"; + } + if (sfield.isSetNumSamples3()) { + if (fail) { + wrongvals << ", and has a "; + } + else { + wrongvals << " defines a "; + } + wrongvals << "numSamples3 with a value of '"; + wrongvals << sfield.getNumSamples3(); + wrongvals << "'"; + fail = true; + } + if (fail) { + msg = "A SampledField"; + if (sfield.isSetId()) + { + msg += " with id '" + sfield.getId() + "'"; + } + msg += wrongvals.str(); + msg += ", but the ListOfCoordinateComponents has exactly two children."; + } + + inv(fail == false); +} +END_CONSTRAINT + + /** @endcond */ Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraintsDeclared.cxx =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraintsDeclared.cxx 2019-08-29 22:13:38 UTC (rev 26115) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraintsDeclared.cxx 2019-08-29 22:14:49 UTC (rev 26116) @@ -50,6 +50,7 @@ addConstraint(new VConstraintDomainTypeSpatialDomainTypeDimensionsMustMatch2DGeometry(*this)); addConstraint(new VConstraintDomainTypeSpatialDomainTypeDimensionsMustMatch1DGeometry(*this)); addConstraint(new VConstraintSampledFieldSpatialSampledFieldOneSampleIn1DGeometry(*this)); +addConstraint(new VConstraintSampledFieldSpatialSampledFieldTwoSamplesIn2DGeometry(*this)); /** @endcond */ Added: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221651-fail-01-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221651-fail-01-01.xml (rev 0) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221651-fail-01-01.xml 2019-08-29 22:14:49 UTC (rev 26116) @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sbml level="3" spatial:required="true" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> + <model> + <spatial:geometry spatial:coordinateSystem="cartesian" spatial:id="geometry_1"> + <spatial:listOfCoordinateComponents> + <spatial:coordinateComponent spatial:id="coordinateComponent_1" spatial:type="cartesianX"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + <spatial:coordinateComponent spatial:id="coordinateComponent_2" spatial:type="cartesianX"> + <spatial:boundaryMin spatial:id="boundary_3" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_4" spatial:value="1"/> + </spatial:coordinateComponent> + </spatial:listOfCoordinateComponents> + <spatial:listOfSampledFields> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:name="someString" spatial:numSamples1="3" spatial:samplesLength="6">0 0 3 1 0 5</spatial:sampledField> + </spatial:listOfSampledFields> + </spatial:geometry> + </model> +</sbml> + Added: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221651-fail-01-02.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221651-fail-01-02.xml (rev 0) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221651-fail-01-02.xml 2019-08-29 22:14:49 UTC (rev 26116) @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sbml level="3" spatial:required="true" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> + <model> + <spatial:geometry spatial:coordinateSystem="cartesian" spatial:id="geometry_1"> + <spatial:listOfCoordinateComponents> + <spatial:coordinateComponent spatial:id="coordinateComponent_1" spatial:type="cartesianX"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + <spatial:coordinateComponent spatial:id="coordinateComponent_2" spatial:type="cartesianX"> + <spatial:boundaryMin spatial:id="boundary_3" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_4" spatial:value="1"/> + </spatial:coordinateComponent> + </spatial:listOfCoordinateComponents> + <spatial:listOfSampledFields> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:name="someString" spatial:numSamples1="3" spatial:numSamples3="2" spatial:samplesLength="6">0 0 3 1 0 5</spatial:sampledField> + </spatial:listOfSampledFields> + </spatial:geometry> + </model> +</sbml> + Added: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221651-fail-01-03.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221651-fail-01-03.xml (rev 0) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221651-fail-01-03.xml 2019-08-29 22:14:49 UTC (rev 26116) @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sbml level="3" spatial:required="true" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> + <model> + <spatial:geometry spatial:coordinateSystem="cartesian" spatial:id="geometry_1"> + <spatial:listOfCoordinateComponents> + <spatial:coordinateComponent spatial:id="coordinateComponent_1" spatial:type="cartesianX"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + <spatial:coordinateComponent spatial:id="coordinateComponent_2" spatial:type="cartesianX"> + <spatial:boundaryMin spatial:id="boundary_3" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_4" spatial:value="1"/> + </spatial:coordinateComponent> + </spatial:listOfCoordinateComponents> + <spatial:listOfSampledFields> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:name="someString" spatial:numSamples1="3" spatial:numSamples2="2" spatial:numSamples3="1" spatial:samplesLength="6">0 0 3 1 0 5</spatial:sampledField> + </spatial:listOfSampledFields> + </spatial:geometry> + </model> +</sbml> + Added: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221651-pass-00-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221651-pass-00-01.xml (rev 0) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221651-pass-00-01.xml 2019-08-29 22:14:49 UTC (rev 26116) @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sbml level="3" spatial:required="true" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> + <model> + <spatial:geometry spatial:coordinateSystem="cartesian" spatial:id="geometry_1"> + <spatial:listOfCoordinateComponents> + <spatial:coordinateComponent spatial:id="coordinateComponent_1" spatial:type="cartesianX"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + <spatial:coordinateComponent spatial:id="coordinateComponent_2" spatial:type="cartesianX"> + <spatial:boundaryMin spatial:id="boundary_3" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_4" spatial:value="1"/> + </spatial:coordinateComponent> + </spatial:listOfCoordinateComponents> + <spatial:listOfSampledFields> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:name="someString" spatial:numSamples1="3" spatial:numSamples2="2" spatial:samplesLength="6">0 0 3 1 0 5</spatial:sampledField> + </spatial:listOfSampledFields> + </spatial:geometry> + </model> +</sbml> + |
From: <luc...@us...> - 2019-08-29 22:13:44
|
Revision: 26115 http://sourceforge.net/p/sbml/code/26115 Author: luciansmith Date: 2019-08-29 22:13:38 +0000 (Thu, 29 Aug 2019) Log Message: ----------- More fixes for existing files. Modified Paths: -------------- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220301-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220301-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220501-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220501-fail-01-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220501-fail-01-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220501-fail-01-04.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220501-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221201-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221201-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221201-pass-00-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221201-pass-00-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221202-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221202-pass-00-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221202-pass-00-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221203-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221203-fail-01-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221203-fail-01-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221203-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221204-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221204-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221501-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221501-pass-00-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221501-pass-00-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221502-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221502-pass-00-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221502-pass-00-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221503-fail-01-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221503-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221504-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221504-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221505-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221505-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221506-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221506-pass-00-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221506-pass-00-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221507-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221507-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221507-pass-00-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221507-pass-00-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221650-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221650-fail-01-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221650-fail-01-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221650-pass-00-01.xml Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220301-fail-01-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220301-fail-01-01.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220301-fail-01-01.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -55,7 +55,7 @@ </spatial:mixedGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="0" spatial:numSamples2="0" spatial:numSamples3="0" spatial:samplesLength="0"/> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="0" spatial:numSamples2="0" spatial:numSamples3="0" spatial:samplesLength="3"/> </spatial:listOfSampledFields> </spatial:geometry> <listOfCompartments> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220301-pass-00-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220301-pass-00-01.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220301-pass-00-01.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -55,7 +55,7 @@ </spatial:mixedGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="0" spatial:numSamples2="0" spatial:numSamples3="0" spatial:samplesLength="0"/> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="0" spatial:numSamples2="0" spatial:numSamples3="0" spatial:samplesLength="3"/> </spatial:listOfSampledFields> </spatial:geometry> <listOfCompartments> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220501-fail-01-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220501-fail-01-01.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220501-fail-01-01.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -55,7 +55,7 @@ </spatial:mixedGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="0" spatial:numSamples2="0" spatial:numSamples3="0" spatial:samplesLength="0"/> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="0" spatial:numSamples2="0" spatial:numSamples3="0" spatial:samplesLength="3"/> </spatial:listOfSampledFields> </spatial:geometry> <listOfCompartments> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220501-fail-01-02.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220501-fail-01-02.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220501-fail-01-02.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -55,7 +55,7 @@ </spatial:mixedGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="0" spatial:numSamples2="0" spatial:numSamples3="0" spatial:samplesLength="0"/> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="0" spatial:numSamples2="0" spatial:numSamples3="0" spatial:samplesLength="3"/> </spatial:listOfSampledFields> </spatial:geometry> <listOfCompartments> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220501-fail-01-03.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220501-fail-01-03.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220501-fail-01-03.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -55,7 +55,7 @@ </spatial:mixedGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="0" spatial:numSamples2="0" spatial:numSamples3="0" spatial:samplesLength="0"/> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="0" spatial:numSamples2="0" spatial:numSamples3="0" spatial:samplesLength="3"/> </spatial:listOfSampledFields> </spatial:geometry> <listOfCompartments> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220501-fail-01-04.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220501-fail-01-04.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220501-fail-01-04.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -55,7 +55,7 @@ </spatial:mixedGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="0" spatial:numSamples2="0" spatial:numSamples3="0" spatial:samplesLength="0"/> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="0" spatial:numSamples2="0" spatial:numSamples3="0" spatial:samplesLength="3"/> </spatial:listOfSampledFields> </spatial:geometry> <listOfCompartments> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220501-pass-00-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220501-pass-00-01.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220501-pass-00-01.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -55,7 +55,7 @@ </spatial:mixedGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="0" spatial:numSamples2="0" spatial:numSamples3="0" spatial:samplesLength="0"/> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="0" spatial:numSamples2="0" spatial:numSamples3="0" spatial:samplesLength="3"/> </spatial:listOfSampledFields> </spatial:geometry> <listOfCompartments> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221201-fail-01-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221201-fail-01-01.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221201-fail-01-01.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -55,7 +55,7 @@ </spatial:mixedGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="0" spatial:numSamples2="0" spatial:numSamples3="0" spatial:samplesLength="0"/> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:numSamples2="1" spatial:numSamples3="1" spatial:samplesLength="3"/> </spatial:listOfSampledFields> </spatial:geometry> </model> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221201-pass-00-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221201-pass-00-01.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221201-pass-00-01.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -55,7 +55,7 @@ </spatial:mixedGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="0" spatial:numSamples2="0" spatial:numSamples3="0" spatial:samplesLength="0"/> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:numSamples2="1" spatial:numSamples3="1" spatial:samplesLength="3"/> </spatial:listOfSampledFields> </spatial:geometry> </model> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221201-pass-00-02.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221201-pass-00-02.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221201-pass-00-02.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -55,7 +55,7 @@ </spatial:mixedGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="0" spatial:numSamples2="0" spatial:numSamples3="0" spatial:samplesLength="0"/> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:numSamples2="1" spatial:numSamples3="1" spatial:samplesLength="3"/> </spatial:listOfSampledFields> </spatial:geometry> </model> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221201-pass-00-03.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221201-pass-00-03.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221201-pass-00-03.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -55,7 +55,7 @@ </spatial:mixedGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="0" spatial:numSamples2="0" spatial:numSamples3="0" spatial:samplesLength="0"/> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:numSamples2="1" spatial:numSamples3="1" spatial:samplesLength="3"/> </spatial:listOfSampledFields> </spatial:geometry> </model> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221202-pass-00-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221202-pass-00-01.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221202-pass-00-01.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -55,7 +55,7 @@ </spatial:mixedGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="0" spatial:numSamples2="0" spatial:numSamples3="0" spatial:samplesLength="0"/> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:numSamples2="1" spatial:numSamples3="1" spatial:samplesLength="3"/> </spatial:listOfSampledFields> </spatial:geometry> </model> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221202-pass-00-02.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221202-pass-00-02.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221202-pass-00-02.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -56,7 +56,7 @@ </spatial:mixedGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="0" spatial:numSamples2="0" spatial:numSamples3="0" spatial:samplesLength="0"/> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:numSamples2="1" spatial:numSamples3="1" spatial:samplesLength="3"/> </spatial:listOfSampledFields> </spatial:geometry> </model> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221202-pass-00-03.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221202-pass-00-03.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221202-pass-00-03.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -56,7 +56,7 @@ </spatial:mixedGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="0" spatial:numSamples2="0" spatial:numSamples3="0" spatial:samplesLength="0"/> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:numSamples2="1" spatial:numSamples3="1" spatial:samplesLength="3"/> </spatial:listOfSampledFields> </spatial:geometry> </model> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221203-fail-01-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221203-fail-01-01.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221203-fail-01-01.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -55,7 +55,7 @@ </spatial:mixedGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="0" spatial:numSamples2="0" spatial:numSamples3="0" spatial:samplesLength="0"/> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:numSamples2="1" spatial:numSamples3="1" spatial:samplesLength="3"/> </spatial:listOfSampledFields> </spatial:geometry> </model> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221203-fail-01-02.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221203-fail-01-02.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221203-fail-01-02.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -55,7 +55,7 @@ </spatial:mixedGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="0" spatial:numSamples2="0" spatial:numSamples3="0" spatial:samplesLength="0"/> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:numSamples2="1" spatial:numSamples3="1" spatial:samplesLength="3"/> </spatial:listOfSampledFields> </spatial:geometry> </model> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221203-fail-01-03.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221203-fail-01-03.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221203-fail-01-03.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -55,7 +55,7 @@ </spatial:mixedGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="0" spatial:numSamples2="0" spatial:numSamples3="0" spatial:samplesLength="0"/> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:numSamples2="1" spatial:numSamples3="1" spatial:samplesLength="3"/> </spatial:listOfSampledFields> </spatial:geometry> </model> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221203-pass-00-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221203-pass-00-01.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221203-pass-00-01.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -55,7 +55,7 @@ </spatial:mixedGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="0" spatial:numSamples2="0" spatial:numSamples3="0" spatial:samplesLength="0"/> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:numSamples2="1" spatial:numSamples3="1" spatial:samplesLength="3"/> </spatial:listOfSampledFields> </spatial:geometry> </model> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221204-fail-01-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221204-fail-01-01.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221204-fail-01-01.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -55,7 +55,7 @@ </spatial:mixedGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="0" spatial:numSamples2="0" spatial:numSamples3="0" spatial:samplesLength="0"/> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:numSamples2="1" spatial:numSamples3="1" spatial:samplesLength="3"/> </spatial:listOfSampledFields> </spatial:geometry> </model> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221204-pass-00-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221204-pass-00-01.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221204-pass-00-01.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -55,7 +55,7 @@ </spatial:mixedGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="0" spatial:numSamples2="0" spatial:numSamples3="0" spatial:samplesLength="0"/> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:numSamples2="1" spatial:numSamples3="1" spatial:samplesLength="3"/> </spatial:listOfSampledFields> </spatial:geometry> </model> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221501-pass-00-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221501-pass-00-01.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221501-pass-00-01.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -16,7 +16,7 @@ </spatial:sampledFieldGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="0">0 0 1</spatial:sampledField> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="3">0 0 1</spatial:sampledField> </spatial:listOfSampledFields> </spatial:geometry> </model> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221501-pass-00-02.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221501-pass-00-02.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221501-pass-00-02.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -16,7 +16,7 @@ </spatial:sampledFieldGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="0">0 0 1</spatial:sampledField> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="3">0 0 1</spatial:sampledField> </spatial:listOfSampledFields> </spatial:geometry> </model> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221501-pass-00-03.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221501-pass-00-03.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221501-pass-00-03.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -16,7 +16,7 @@ </spatial:sampledFieldGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="0">0 0 1</spatial:sampledField> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="3">0 0 1</spatial:sampledField> </spatial:listOfSampledFields> </spatial:geometry> </model> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221502-pass-00-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221502-pass-00-01.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221502-pass-00-01.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -16,7 +16,7 @@ </spatial:sampledFieldGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="0">0 0 1</spatial:sampledField> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="3">0 0 1</spatial:sampledField> </spatial:listOfSampledFields> </spatial:geometry> </model> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221502-pass-00-02.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221502-pass-00-02.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221502-pass-00-02.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -17,7 +17,7 @@ </spatial:sampledFieldGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="0">0 0 1</spatial:sampledField> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="3">0 0 1</spatial:sampledField> </spatial:listOfSampledFields> </spatial:geometry> </model> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221502-pass-00-03.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221502-pass-00-03.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221502-pass-00-03.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -17,7 +17,7 @@ </spatial:sampledFieldGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="0">0 0 1</spatial:sampledField> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="3">0 0 1</spatial:sampledField> </spatial:listOfSampledFields> </spatial:geometry> </model> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221503-fail-01-02.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221503-fail-01-02.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221503-fail-01-02.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -16,7 +16,7 @@ </spatial:sampledFieldGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="0">0 0 1</spatial:sampledField> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="3">0 0 1</spatial:sampledField> </spatial:listOfSampledFields> </spatial:geometry> </model> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221503-pass-00-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221503-pass-00-01.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221503-pass-00-01.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -16,7 +16,7 @@ </spatial:sampledFieldGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="0">0 0 1</spatial:sampledField> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="3">0 0 1</spatial:sampledField> </spatial:listOfSampledFields> </spatial:geometry> </model> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221504-fail-01-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221504-fail-01-01.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221504-fail-01-01.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -19,7 +19,7 @@ </spatial:sampledFieldGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="0">0 0 1</spatial:sampledField> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="3">0 0 1</spatial:sampledField> </spatial:listOfSampledFields> </spatial:geometry> </model> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221504-pass-00-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221504-pass-00-01.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221504-pass-00-01.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -16,7 +16,7 @@ </spatial:sampledFieldGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="0">0 0 1</spatial:sampledField> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="3">0 0 1</spatial:sampledField> </spatial:listOfSampledFields> </spatial:geometry> </model> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221505-fail-01-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221505-fail-01-01.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221505-fail-01-01.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -16,7 +16,7 @@ </spatial:sampledFieldGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="0">0 0 1</spatial:sampledField> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="3">0 0 1</spatial:sampledField> </spatial:listOfSampledFields> </spatial:geometry> </model> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221505-pass-00-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221505-pass-00-01.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221505-pass-00-01.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -16,7 +16,7 @@ </spatial:sampledFieldGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="0">0 0 1</spatial:sampledField> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="3">0 0 1</spatial:sampledField> </spatial:listOfSampledFields> </spatial:geometry> </model> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221506-pass-00-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221506-pass-00-01.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221506-pass-00-01.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -16,7 +16,7 @@ </spatial:sampledFieldGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="0">0 0 1</spatial:sampledField> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="3">0 0 1</spatial:sampledField> </spatial:listOfSampledFields> </spatial:geometry> </model> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221506-pass-00-02.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221506-pass-00-02.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221506-pass-00-02.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -20,7 +20,7 @@ </spatial:sampledFieldGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="0">0 0 1</spatial:sampledField> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="3">0 0 1</spatial:sampledField> </spatial:listOfSampledFields> </spatial:geometry> </model> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221506-pass-00-03.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221506-pass-00-03.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221506-pass-00-03.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -17,7 +17,7 @@ </spatial:sampledFieldGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="0">0 0 1</spatial:sampledField> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="3">0 0 1</spatial:sampledField> </spatial:listOfSampledFields> </spatial:geometry> </model> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221507-fail-01-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221507-fail-01-01.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221507-fail-01-01.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -16,7 +16,7 @@ </spatial:sampledFieldGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="0">0 0 1</spatial:sampledField> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="3">0 0 1</spatial:sampledField> </spatial:listOfSampledFields> </spatial:geometry> </model> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221507-pass-00-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221507-pass-00-01.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221507-pass-00-01.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -16,7 +16,7 @@ </spatial:sampledFieldGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="0">0 0 1</spatial:sampledField> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="3">0 0 1</spatial:sampledField> </spatial:listOfSampledFields> </spatial:geometry> </model> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221507-pass-00-02.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221507-pass-00-02.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221507-pass-00-02.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -16,7 +16,7 @@ </spatial:sampledFieldGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="0">0 0 1</spatial:sampledField> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="3">0 0 1</spatial:sampledField> </spatial:listOfSampledFields> </spatial:geometry> </model> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221507-pass-00-03.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221507-pass-00-03.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221507-pass-00-03.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -16,7 +16,7 @@ </spatial:sampledFieldGeometry> </spatial:listOfGeometryDefinitions> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="0">0 0 1</spatial:sampledField> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="3" spatial:samplesLength="3">0 0 1</spatial:sampledField> </spatial:listOfSampledFields> </spatial:geometry> </model> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221650-fail-01-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221650-fail-01-01.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221650-fail-01-01.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -9,7 +9,7 @@ </spatial:coordinateComponent> </spatial:listOfCoordinateComponents> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:name="someString" spatial:numSamples1="0" spatial:numSamples2="0" spatial:samplesLength="0"/> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:name="someString" spatial:numSamples1="0" spatial:numSamples2="0" spatial:samplesLength="3"/> </spatial:listOfSampledFields> </spatial:geometry> </model> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221650-fail-01-02.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221650-fail-01-02.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221650-fail-01-02.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -9,7 +9,7 @@ </spatial:coordinateComponent> </spatial:listOfCoordinateComponents> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:name="someString" spatial:numSamples1="0" spatial:numSamples3="0" spatial:samplesLength="0"/> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:name="someString" spatial:numSamples1="0" spatial:numSamples3="0" spatial:samplesLength="3"/> </spatial:listOfSampledFields> </spatial:geometry> </model> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221650-fail-01-03.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221650-fail-01-03.xml 2019-08-29 21:32:56 UTC (rev 26114) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221650-fail-01-03.xml 2019-08-29 22:13:38 UTC (rev 26115) @@ -9,7 +9,7 @@ </spatial:coordinateComponent> </spatial:listOfCoordinateComponents> <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:name="someString" spatial:numSamples1="0" spatial:numSamples2="0" spatial:numSamples3="0" spatial:samplesLength="0"/> + <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:name="someString" spatial:numSamples1="0" spatial:numSamples2="0" spatial:numSamples3="0" spatial:samplesLength="3"/> </spatial:listOfSampledFields> </spatial:geometry> </model> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221650-pass-00-01.xml =================================================================== --- branches/libsbml-experime... [truncated message content] |
From: <luc...@us...> - 2019-08-29 21:33:41
|
Revision: 26114 http://sourceforge.net/p/sbml/code/26114 Author: luciansmith Date: 2019-08-29 21:32:56 +0000 (Thu, 29 Aug 2019) Log Message: ----------- * Add setting rule that numSamplesX must be positive. * Add constraint spatial-21650 * When adding that constraint revealed that a bajillion other spatial test files failed that rule, and after looking at some of the other test files and seeing other errors ready and waiting to be found, stripped down all the spatial test files so they only contained what they needed to test, so they wouldn't later trigger all the other things wrong with them. Fixed what I couldn't strip, i.e. some dimensionality. Modified Paths: -------------- branches/libsbml-experimental/src/sbml/packages/spatial/sbml/SampledField.cpp branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraints.cpp branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraintsDeclared.cxx branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1210101-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220101-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220101-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220102-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220102-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220103-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220103-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220201-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220201-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220301-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220301-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220401-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220401-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220401-pass-00-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220402-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220402-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220501-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220501-fail-01-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220501-fail-01-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220501-fail-01-04.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220501-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220601-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220601-fail-01-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220601-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220602-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220602-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220701-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220701-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220701-pass-00-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220701-pass-00-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220702-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220702-pass-00-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220702-pass-00-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220703-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220703-fail-01-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220703-fail-01-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220703-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220704-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220704-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220801-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220801-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220801-pass-00-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220801-pass-00-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220802-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220802-pass-00-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220802-pass-00-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220803-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220803-fail-01-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220803-fail-01-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220803-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220804-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220804-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220805-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220805-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220806-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220806-pass-00-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220806-pass-00-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220807-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220807-pass-00-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220808-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220808-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220808-pass-00-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220808-pass-00-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220901-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220901-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220901-pass-00-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220901-pass-00-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220902-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220902-pass-00-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220902-pass-00-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220903-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220903-fail-01-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220903-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220903-pass-00-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220903-pass-00-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220904-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220904-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220905-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220905-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220906-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220906-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221001-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221001-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221001-pass-00-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221001-pass-00-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221002-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221002-pass-00-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221002-pass-00-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221003-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221003-fail-01-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221003-fail-01-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221003-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221004-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221004-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221101-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221101-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221101-pass-00-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221101-pass-00-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221102-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221102-pass-00-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221102-pass-00-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221103-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221103-fail-01-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221103-fail-01-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221103-fail-01-04.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221103-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221104-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221104-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221105-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221105-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221201-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221201-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221201-pass-00-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221201-pass-00-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221202-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221202-pass-00-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221202-pass-00-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221203-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221203-fail-01-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221203-fail-01-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221203-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221204-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221204-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221301-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221301-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221301-pass-00-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221301-pass-00-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221302-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221302-pass-00-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221302-pass-00-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221303-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221303-fail-01-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221303-fail-01-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221303-fail-01-04.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221303-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221304-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221304-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221305-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221305-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221401-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221401-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221401-pass-00-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221401-pass-00-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221402-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221402-pass-00-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221402-pass-00-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221403-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221403-fail-01-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221403-fail-01-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221403-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221403-pass-00-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221404-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221404-fail-01-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221404-fail-01-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221404-fail-01-04.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221404-fail-01-05.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221404-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221405-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221405-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221407-fail-01-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221407-fail-02-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221407-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221501-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221501-pass-00-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221501-pass-00-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221502-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221502-pass-00-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221502-pass-00-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221503-fail-01-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221503-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221504-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221504-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221505-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221505-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221506-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221506-pass-00-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221506-pass-00-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221507-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221507-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221507-pass-00-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221507-pass-00-03.xml Added Paths: ----------- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221650-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221650-fail-01-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221650-fail-01-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1221650-pass-00-01.xml Modified: branches/libsbml-experimental/src/sbml/packages/spatial/sbml/SampledField.cpp =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/sbml/SampledField.cpp 2019-08-29 00:24:19 UTC (rev 26113) +++ branches/libsbml-experimental/src/sbml/packages/spatial/sbml/SampledField.cpp 2019-08-29 21:32:56 UTC (rev 26114) @@ -646,6 +646,9 @@ int SampledField::setNumSamples1(int numSamples1) { + if (numSamples1 < 1) { + return LIBSBML_INVALID_ATTRIBUTE_VALUE; + } mNumSamples1 = numSamples1; mIsSetNumSamples1 = true; return LIBSBML_OPERATION_SUCCESS; @@ -658,6 +661,9 @@ int SampledField::setNumSamples2(int numSamples2) { + if (numSamples2 < 1) { + return LIBSBML_INVALID_ATTRIBUTE_VALUE; + } mNumSamples2 = numSamples2; mIsSetNumSamples2 = true; return LIBSBML_OPERATION_SUCCESS; @@ -670,6 +676,9 @@ int SampledField::setNumSamples3(int numSamples3) { + if (numSamples3 < 1) { + return LIBSBML_INVALID_ATTRIBUTE_VALUE; + } mNumSamples3 = numSamples3; mIsSetNumSamples3 = true; return LIBSBML_OPERATION_SUCCESS; Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraints.cpp =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraints.cpp 2019-08-29 00:24:19 UTC (rev 26113) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraints.cpp 2019-08-29 21:32:56 UTC (rev 26114) @@ -412,5 +412,43 @@ END_CONSTRAINT +// 1221650 +START_CONSTRAINT(SpatialSampledFieldOneSampleIn1DGeometry, SampledField, sfield) +{ + const Geometry* geometry = static_cast<const Geometry*>(sfield.getParentSBMLObject()->getParentSBMLObject()); + pre(geometry->getNumCoordinateComponents()==1); + + bool fail = false; + stringstream wrongvals; + if (sfield.isSetNumSamples2()) { + fail = true; + wrongvals << "numSamples2 with a value of '"; + wrongvals << sfield.getNumSamples2(); + wrongvals << "'"; + } + if (sfield.isSetNumSamples3()) { + if (fail) { + wrongvals << ", and a "; + } + wrongvals << "numSamples3 with a value of '"; + wrongvals << sfield.getNumSamples3(); + wrongvals << "'"; + fail = true; + } + if (fail) { + msg = "A SampledField"; + if (sfield.isSetId()) + { + msg += " with id '" + sfield.getId() + "'"; + } + msg += " defines a " + wrongvals.str(); + msg += ", but the ListOfCoordinateComponents has exactly one child."; + } + + inv(fail == false); +} +END_CONSTRAINT + + /** @endcond */ Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraintsDeclared.cxx =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraintsDeclared.cxx 2019-08-29 00:24:19 UTC (rev 26113) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraintsDeclared.cxx 2019-08-29 21:32:56 UTC (rev 26114) @@ -49,6 +49,7 @@ addConstraint(new VConstraintDomainTypeSpatialDomainTypeDimensionsMustMatch3DGeometry(*this)); addConstraint(new VConstraintDomainTypeSpatialDomainTypeDimensionsMustMatch2DGeometry(*this)); addConstraint(new VConstraintDomainTypeSpatialDomainTypeDimensionsMustMatch1DGeometry(*this)); +addConstraint(new VConstraintSampledFieldSpatialSampledFieldOneSampleIn1DGeometry(*this)); /** @endcond */ Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1210101-pass-00-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1210101-pass-00-01.xml 2019-08-29 00:24:19 UTC (rev 26113) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1210101-pass-00-01.xml 2019-08-29 21:32:56 UTC (rev 26114) @@ -1,71 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> <sbml level="3" spatial:required="true" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> - <model> - <spatial:geometry spatial:coordinateSystem="cartesian" spatial:id="geometry_1"> - <spatial:listOfCoordinateComponents> - <spatial:coordinateComponent spatial:id="coordinateComponent_1" spatial:type="cartesianX" spatial:unit="dimensionless"> - <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> - <spatial:boundaryMax spatial:id="boundary_2" spatial:value="0"/> - </spatial:coordinateComponent> - </spatial:listOfCoordinateComponents> - <spatial:listOfDomainTypes> - <spatial:domainType spatial:id="domainType_1" spatial:spatialDimensions="0"/> - </spatial:listOfDomainTypes> - <spatial:listOfDomains> - <spatial:domain spatial:domainType="domainType_1" spatial:id="domain_1"> - <spatial:listOfInteriorPoints> - <spatial:interiorPoint spatial:coord1="0" spatial:coord2="0" spatial:coord3="0"/> - </spatial:listOfInteriorPoints> - </spatial:domain> - </spatial:listOfDomains> - <spatial:listOfAdjacentDomains> - <spatial:adjacentDomains spatial:domain1="domain_1" spatial:domain2="domain_1" spatial:id="adjacentDomains_1"/> - </spatial:listOfAdjacentDomains> - <spatial:listOfGeometryDefinitions> - <spatial:analyticGeometry spatial:id="geometryDefinition_1" spatial:isActive="false"> - <spatial:listOfAnalyticVolumes> - <spatial:analyticVolume spatial:domainType="domainType_1" spatial:functionType="layered" spatial:id="analyticVolume_1" spatial:ordinal="0"> - <math xmlns="http://www.w3.org/1998/Math/MathML"/> - </spatial:analyticVolume> - </spatial:listOfAnalyticVolumes> - </spatial:analyticGeometry> - <spatial:sampledFieldGeometry spatial:id="geometryDefinition_2" spatial:isActive="false" spatial:sampledField="sampledField_1"> - <spatial:listOfSampledVolumes> - <spatial:sampledVolume spatial:domainType="domainType_1" spatial:id="sampledVolume_1" spatial:maxValue="0" spatial:minValue="0" spatial:sampledValue="0"/> - </spatial:listOfSampledVolumes> - </spatial:sampledFieldGeometry> - <spatial:parametricGeometry spatial:id="geometryDefinition_3" spatial:isActive="false"> - <spatial:spatialPoints spatial:arrayDataLength="0" spatial:compression="uncompressed" spatial:dataType="double" spatial:id="spatialPoints_1"/> - <spatial:listOfParametricObjects> - <spatial:parametricObject spatial:compression="uncompressed" spatial:dataType="double" spatial:domainType="domainType_1" spatial:id="parametricObject_1" spatial:pointIndexLength="0" spatial:polygonType="triangle"/> - </spatial:listOfParametricObjects> - </spatial:parametricGeometry> - <spatial:mixedGeometry spatial:id="geometryDefinition_4" spatial:isActive="false"> - <spatial:listOfOrdinalMappings> - <spatial:ordinalMapping spatial:geometryDefinition="geometryDefinition_4" spatial:ordinal="0"/> - </spatial:listOfOrdinalMappings> - </spatial:mixedGeometry> - </spatial:listOfGeometryDefinitions> - <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="0" spatial:numSamples2="0" spatial:numSamples3="0" spatial:samplesLength="0"/> - </spatial:listOfSampledFields> - </spatial:geometry> - <listOfCompartments> - <compartment constant="false" id="compartment"> - <spatial:compartmentMapping spatial:domainType="domainType_1" spatial:id="compartmentMapping_1" spatial:unitSize="0"/> - </compartment> - </listOfCompartments> - <listOfSpecies> - <species boundaryCondition="false" compartment="compartment" constant="false" hasOnlySubstanceUnits="false" id="id_2" spatial:isSpatial="false"/> - </listOfSpecies> - <listOfParameters> - <parameter constant="false" id="id_3"> - <spatial:spatialSymbolReference spatial:spatialRef="geometry_1"/> - <spatial:advectionCoefficient spatial:coordinate="cartesianX" spatial:variable="species_1"/> - <spatial:boundaryCondition spatial:boundaryDomainType="domainType_1" spatial:coordinateBoundary="boundary_2" spatial:type="Robin_valueCoefficient" spatial:variable="species_1"/> - <spatial:diffusionCoefficient spatial:coordinateReference1="cartesianX" spatial:coordinateReference2="cartesianX" spatial:type="isotropic" spatial:variable="species_1"/> - </parameter> - </listOfParameters> - </model> + <model/> </sbml> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220101-fail-01-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220101-fail-01-01.xml 2019-08-29 00:24:19 UTC (rev 26113) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220101-fail-01-01.xml 2019-08-29 21:32:56 UTC (rev 26114) @@ -1,71 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> <sbml level="3" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> - <model> - <spatial:geometry spatial:coordinateSystem="cartesian" spatial:id="geometry_1"> - <spatial:listOfCoordinateComponents> - <spatial:coordinateComponent spatial:id="coordinateComponent_1" spatial:type="cartesianX" spatial:unit="dimensionless"> - <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> - <spatial:boundaryMax spatial:id="boundary_2" spatial:value="0"/> - </spatial:coordinateComponent> - </spatial:listOfCoordinateComponents> - <spatial:listOfDomainTypes> - <spatial:domainType spatial:id="domainType_1" spatial:spatialDimensions="0"/> - </spatial:listOfDomainTypes> - <spatial:listOfDomains> - <spatial:domain spatial:domainType="domainType_1" spatial:id="domain_1"> - <spatial:listOfInteriorPoints> - <spatial:interiorPoint spatial:coord1="0" spatial:coord2="0" spatial:coord3="0"/> - </spatial:listOfInteriorPoints> - </spatial:domain> - </spatial:listOfDomains> - <spatial:listOfAdjacentDomains> - <spatial:adjacentDomains spatial:domain1="domain_1" spatial:domain2="domain_1" spatial:id="adjacentDomains_1"/> - </spatial:listOfAdjacentDomains> - <spatial:listOfGeometryDefinitions> - <spatial:analyticGeometry spatial:id="geometryDefinition_1" spatial:isActive="false"> - <spatial:listOfAnalyticVolumes> - <spatial:analyticVolume spatial:domainType="domainType_1" spatial:functionType="layered" spatial:id="analyticVolume_1" spatial:ordinal="0"> - <math xmlns="http://www.w3.org/1998/Math/MathML"/> - </spatial:analyticVolume> - </spatial:listOfAnalyticVolumes> - </spatial:analyticGeometry> - <spatial:sampledFieldGeometry spatial:id="geometryDefinition_2" spatial:isActive="false" spatial:sampledField="sampledField_1"> - <spatial:listOfSampledVolumes> - <spatial:sampledVolume spatial:domainType="domainType_1" spatial:id="sampledVolume_1" spatial:maxValue="0" spatial:minValue="0" spatial:sampledValue="0"/> - </spatial:listOfSampledVolumes> - </spatial:sampledFieldGeometry> - <spatial:parametricGeometry spatial:id="geometryDefinition_3" spatial:isActive="false"> - <spatial:spatialPoints spatial:arrayDataLength="0" spatial:compression="uncompressed" spatial:dataType="double" spatial:id="spatialPoints_1"/> - <spatial:listOfParametricObjects> - <spatial:parametricObject spatial:compression="uncompressed" spatial:dataType="double" spatial:domainType="domainType_1" spatial:id="parametricObject_1" spatial:pointIndexLength="0" spatial:polygonType="triangle"/> - </spatial:listOfParametricObjects> - </spatial:parametricGeometry> - <spatial:mixedGeometry spatial:id="geometryDefinition_4" spatial:isActive="false"> - <spatial:listOfOrdinalMappings> - <spatial:ordinalMapping spatial:geometryDefinition="geometryDefinition_4" spatial:ordinal="0"/> - </spatial:listOfOrdinalMappings> - </spatial:mixedGeometry> - </spatial:listOfGeometryDefinitions> - <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="0" spatial:numSamples2="0" spatial:numSamples3="0" spatial:samplesLength="0"/> - </spatial:listOfSampledFields> - </spatial:geometry> - <listOfCompartments> - <compartment constant="false" id="compartment"> - <spatial:compartmentMapping spatial:domainType="domainType_1" spatial:id="compartmentMapping_1" spatial:unitSize="0"/> - </compartment> - </listOfCompartments> - <listOfSpecies> - <species boundaryCondition="false" compartment="compartment" constant="false" hasOnlySubstanceUnits="false" id="id_2" spatial:isSpatial="false"/> - </listOfSpecies> - <listOfParameters> - <parameter constant="false" id="id_3"> - <spatial:spatialSymbolReference spatial:spatialRef="geometry_1"/> - <spatial:advectionCoefficient spatial:coordinate="cartesianX" spatial:variable="species_1"/> - <spatial:boundaryCondition spatial:boundaryDomainType="domainType_1" spatial:coordinateBoundary="boundary_2" spatial:type="Robin_valueCoefficient" spatial:variable="species_1"/> - <spatial:diffusionCoefficient spatial:coordinateReference1="cartesianX" spatial:coordinateReference2="cartesianX" spatial:type="isotropic" spatial:variable="species_1"/> - </parameter> - </listOfParameters> - </model> + <model/> </sbml> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220101-pass-00-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220101-pass-00-01.xml 2019-08-29 00:24:19 UTC (rev 26113) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220101-pass-00-01.xml 2019-08-29 21:32:56 UTC (rev 26114) @@ -1,71 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> <sbml level="3" spatial:required="true" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> - <model> - <spatial:geometry spatial:coordinateSystem="cartesian" spatial:id="geometry_1"> - <spatial:listOfCoordinateComponents> - <spatial:coordinateComponent spatial:id="coordinateComponent_1" spatial:type="cartesianX" spatial:unit="dimensionless"> - <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> - <spatial:boundaryMax spatial:id="boundary_2" spatial:value="0"/> - </spatial:coordinateComponent> - </spatial:listOfCoordinateComponents> - <spatial:listOfDomainTypes> - <spatial:domainType spatial:id="domainType_1" spatial:spatialDimensions="0"/> - </spatial:listOfDomainTypes> - <spatial:listOfDomains> - <spatial:domain spatial:domainType="domainType_1" spatial:id="domain_1"> - <spatial:listOfInteriorPoints> - <spatial:interiorPoint spatial:coord1="0" spatial:coord2="0" spatial:coord3="0"/> - </spatial:listOfInteriorPoints> - </spatial:domain> - </spatial:listOfDomains> - <spatial:listOfAdjacentDomains> - <spatial:adjacentDomains spatial:domain1="domain_1" spatial:domain2="domain_1" spatial:id="adjacentDomains_1"/> - </spatial:listOfAdjacentDomains> - <spatial:listOfGeometryDefinitions> - <spatial:analyticGeometry spatial:id="geometryDefinition_1" spatial:isActive="false"> - <spatial:listOfAnalyticVolumes> - <spatial:analyticVolume spatial:domainType="domainType_1" spatial:functionType="layered" spatial:id="analyticVolume_1" spatial:ordinal="0"> - <math xmlns="http://www.w3.org/1998/Math/MathML"/> - </spatial:analyticVolume> - </spatial:listOfAnalyticVolumes> - </spatial:analyticGeometry> - <spatial:sampledFieldGeometry spatial:id="geometryDefinition_2" spatial:isActive="false" spatial:sampledField="sampledField_1"> - <spatial:listOfSampledVolumes> - <spatial:sampledVolume spatial:domainType="domainType_1" spatial:id="sampledVolume_1" spatial:maxValue="0" spatial:minValue="0" spatial:sampledValue="0"/> - </spatial:listOfSampledVolumes> - </spatial:sampledFieldGeometry> - <spatial:parametricGeometry spatial:id="geometryDefinition_3" spatial:isActive="false"> - <spatial:spatialPoints spatial:arrayDataLength="0" spatial:compression="uncompressed" spatial:dataType="double" spatial:id="spatialPoints_1"/> - <spatial:listOfParametricObjects> - <spatial:parametricObject spatial:compression="uncompressed" spatial:dataType="double" spatial:domainType="domainType_1" spatial:id="parametricObject_1" spatial:pointIndexLength="0" spatial:polygonType="triangle"/> - </spatial:listOfParametricObjects> - </spatial:parametricGeometry> - <spatial:mixedGeometry spatial:id="geometryDefinition_4" spatial:isActive="false"> - <spatial:listOfOrdinalMappings> - <spatial:ordinalMapping spatial:geometryDefinition="geometryDefinition_4" spatial:ordinal="0"/> - </spatial:listOfOrdinalMappings> - </spatial:mixedGeometry> - </spatial:listOfGeometryDefinitions> - <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="0" spatial:numSamples2="0" spatial:numSamples3="0" spatial:samplesLength="0"/> - </spatial:listOfSampledFields> - </spatial:geometry> - <listOfCompartments> - <compartment constant="false" id="compartment"> - <spatial:compartmentMapping spatial:domainType="domainType_1" spatial:id="compartmentMapping_1" spatial:unitSize="0"/> - </compartment> - </listOfCompartments> - <listOfSpecies> - <species boundaryCondition="false" compartment="compartment" constant="false" hasOnlySubstanceUnits="false" id="id_2" spatial:isSpatial="false"/> - </listOfSpecies> - <listOfParameters> - <parameter constant="false" id="id_3"> - <spatial:spatialSymbolReference spatial:spatialRef="geometry_1"/> - <spatial:advectionCoefficient spatial:coordinate="cartesianX" spatial:variable="species_1"/> - <spatial:boundaryCondition spatial:boundaryDomainType="domainType_1" spatial:coordinateBoundary="boundary_2" spatial:type="Robin_valueCoefficient" spatial:variable="species_1"/> - <spatial:diffusionCoefficient spatial:coordinateReference1="cartesianX" spatial:coordinateReference2="cartesianX" spatial:type="isotropic" spatial:variable="species_1"/> - </parameter> - </listOfParameters> - </model> + <model/> </sbml> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220102-fail-01-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220102-fail-01-01.xml 2019-08-29 00:24:19 UTC (rev 26113) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220102-fail-01-01.xml 2019-08-29 21:32:56 UTC (rev 26114) @@ -1,71 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> <sbml level="3" spatial:required="-3.4" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> - <model> - <spatial:geometry spatial:coordinateSystem="cartesian" spatial:id="geometry_1"> - <spatial:listOfCoordinateComponents> - <spatial:coordinateComponent spatial:id="coordinateComponent_1" spatial:type="cartesianX" spatial:unit="dimensionless"> - <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> - <spatial:boundaryMax spatial:id="boundary_2" spatial:value="0"/> - </spatial:coordinateComponent> - </spatial:listOfCoordinateComponents> - <spatial:listOfDomainTypes> - <spatial:domainType spatial:id="domainType_1" spatial:spatialDimensions="0"/> - </spatial:listOfDomainTypes> - <spatial:listOfDomains> - <spatial:domain spatial:domainType="domainType_1" spatial:id="domain_1"> - <spatial:listOfInteriorPoints> - <spatial:interiorPoint spatial:coord1="0" spatial:coord2="0" spatial:coord3="0"/> - </spatial:listOfInteriorPoints> - </spatial:domain> - </spatial:listOfDomains> - <spatial:listOfAdjacentDomains> - <spatial:adjacentDomains spatial:domain1="domain_1" spatial:domain2="domain_1" spatial:id="adjacentDomains_1"/> - </spatial:listOfAdjacentDomains> - <spatial:listOfGeometryDefinitions> - <spatial:analyticGeometry spatial:id="geometryDefinition_1" spatial:isActive="false"> - <spatial:listOfAnalyticVolumes> - <spatial:analyticVolume spatial:domainType="domainType_1" spatial:functionType="layered" spatial:id="analyticVolume_1" spatial:ordinal="0"> - <math xmlns="http://www.w3.org/1998/Math/MathML"/> - </spatial:analyticVolume> - </spatial:listOfAnalyticVolumes> - </spatial:analyticGeometry> - <spatial:sampledFieldGeometry spatial:id="geometryDefinition_2" spatial:isActive="false" spatial:sampledField="sampledField_1"> - <spatial:listOfSampledVolumes> - <spatial:sampledVolume spatial:domainType="domainType_1" spatial:id="sampledVolume_1" spatial:maxValue="0" spatial:minValue="0" spatial:sampledValue="0"/> - </spatial:listOfSampledVolumes> - </spatial:sampledFieldGeometry> - <spatial:parametricGeometry spatial:id="geometryDefinition_3" spatial:isActive="false"> - <spatial:spatialPoints spatial:arrayDataLength="0" spatial:compression="uncompressed" spatial:dataType="double" spatial:id="spatialPoints_1"/> - <spatial:listOfParametricObjects> - <spatial:parametricObject spatial:compression="uncompressed" spatial:dataType="double" spatial:domainType="domainType_1" spatial:id="parametricObject_1" spatial:pointIndexLength="0" spatial:polygonType="triangle"/> - </spatial:listOfParametricObjects> - </spatial:parametricGeometry> - <spatial:mixedGeometry spatial:id="geometryDefinition_4" spatial:isActive="false"> - <spatial:listOfOrdinalMappings> - <spatial:ordinalMapping spatial:geometryDefinition="geometryDefinition_4" spatial:ordinal="0"/> - </spatial:listOfOrdinalMappings> - </spatial:mixedGeometry> - </spatial:listOfGeometryDefinitions> - <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="0" spatial:numSamples2="0" spatial:numSamples3="0" spatial:samplesLength="0"/> - </spatial:listOfSampledFields> - </spatial:geometry> - <listOfCompartments> - <compartment constant="false" id="compartment"> - <spatial:compartmentMapping spatial:domainType="domainType_1" spatial:id="compartmentMapping_1" spatial:unitSize="0"/> - </compartment> - </listOfCompartments> - <listOfSpecies> - <species boundaryCondition="false" compartment="compartment" constant="false" hasOnlySubstanceUnits="false" id="id_2" spatial:isSpatial="false"/> - </listOfSpecies> - <listOfParameters> - <parameter constant="false" id="id_3"> - <spatial:spatialSymbolReference spatial:spatialRef="geometry_1"/> - <spatial:advectionCoefficient spatial:coordinate="cartesianX" spatial:variable="species_1"/> - <spatial:boundaryCondition spatial:boundaryDomainType="domainType_1" spatial:coordinateBoundary="boundary_2" spatial:type="Robin_valueCoefficient" spatial:variable="species_1"/> - <spatial:diffusionCoefficient spatial:coordinateReference1="cartesianX" spatial:coordinateReference2="cartesianX" spatial:type="isotropic" spatial:variable="species_1"/> - </parameter> - </listOfParameters> - </model> + <model/> </sbml> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220102-pass-00-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220102-pass-00-01.xml 2019-08-29 00:24:19 UTC (rev 26113) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220102-pass-00-01.xml 2019-08-29 21:32:56 UTC (rev 26114) @@ -1,71 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> <sbml level="3" spatial:required="true" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> - <model> - <spatial:geometry spatial:coordinateSystem="cartesian" spatial:id="geometry_1"> - <spatial:listOfCoordinateComponents> - <spatial:coordinateComponent spatial:id="coordinateComponent_1" spatial:type="cartesianX" spatial:unit="dimensionless"> - <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> - <spatial:boundaryMax spatial:id="boundary_2" spatial:value="0"/> - </spatial:coordinateComponent> - </spatial:listOfCoordinateComponents> - <spatial:listOfDomainTypes> - <spatial:domainType spatial:id="domainType_1" spatial:spatialDimensions="0"/> - </spatial:listOfDomainTypes> - <spatial:listOfDomains> - <spatial:domain spatial:domainType="domainType_1" spatial:id="domain_1"> - <spatial:listOfInteriorPoints> - <spatial:interiorPoint spatial:coord1="0" spatial:coord2="0" spatial:coord3="0"/> - </spatial:listOfInteriorPoints> - </spatial:domain> - </spatial:listOfDomains> - <spatial:listOfAdjacentDomains> - <spatial:adjacentDomains spatial:domain1="domain_1" spatial:domain2="domain_1" spatial:id="adjacentDomains_1"/> - </spatial:listOfAdjacentDomains> - <spatial:listOfGeometryDefinitions> - <spatial:analyticGeometry spatial:id="geometryDefinition_1" spatial:isActive="false"> - <spatial:listOfAnalyticVolumes> - <spatial:analyticVolume spatial:domainType="domainType_1" spatial:functionType="layered" spatial:id="analyticVolume_1" spatial:ordinal="0"> - <math xmlns="http://www.w3.org/1998/Math/MathML"/> - </spatial:analyticVolume> - </spatial:listOfAnalyticVolumes> - </spatial:analyticGeometry> - <spatial:sampledFieldGeometry spatial:id="geometryDefinition_2" spatial:isActive="false" spatial:sampledField="sampledField_1"> - <spatial:listOfSampledVolumes> - <spatial:sampledVolume spatial:domainType="domainType_1" spatial:id="sampledVolume_1" spatial:maxValue="0" spatial:minValue="0" spatial:sampledValue="0"/> - </spatial:listOfSampledVolumes> - </spatial:sampledFieldGeometry> - <spatial:parametricGeometry spatial:id="geometryDefinition_3" spatial:isActive="false"> - <spatial:spatialPoints spatial:arrayDataLength="0" spatial:compression="uncompressed" spatial:dataType="double" spatial:id="spatialPoints_1"/> - <spatial:listOfParametricObjects> - <spatial:parametricObject spatial:compression="uncompressed" spatial:dataType="double" spatial:domainType="domainType_1" spatial:id="parametricObject_1" spatial:pointIndexLength="0" spatial:polygonType="triangle"/> - </spatial:listOfParametricObjects> - </spatial:parametricGeometry> - <spatial:mixedGeometry spatial:id="geometryDefinition_4" spatial:isActive="false"> - <spatial:listOfOrdinalMappings> - <spatial:ordinalMapping spatial:geometryDefinition="geometryDefinition_4" spatial:ordinal="0"/> - </spatial:listOfOrdinalMappings> - </spatial:mixedGeometry> - </spatial:listOfGeometryDefinitions> - <spatial:listOfSampledFields> - <spatial:sampledField spatial:compression="uncompressed" spatial:dataType="double" spatial:id="sampledField_1" spatial:interpolationType="nearestNeighbor" spatial:numSamples1="0" spatial:numSamples2="0" spatial:numSamples3="0" spatial:samplesLength="0"/> - </spatial:listOfSampledFields> - </spatial:geometry> - <listOfCompartments> - <compartment constant="false" id="compartment"> - <spatial:compartmentMapping spatial:domainType="domainType_1" spatial:id="compartmentMapping_1" spatial:unitSize="0"/> - </compartment> - </listOfCompartments> - <listOfSpecies> - <species boundaryCondition="false" compartment="compartment" constant="false" hasOnlySubstanceUnits="false" id="id_2" spatial:isSpatial="false"/> - </listOfSpecies> - <listOfParameters> - <parameter constant="false" id="id_3"> - <spatial:spatialSymbolReference spatial:spatialRef="geometry_1"/> - <spatial:advectionCoefficient spatial:coordinate="cartesianX" spatial:variable="species_1"/> - <spatial:boundaryCondition spatial:boundaryDomainType="domainType_1" spatial:coordinateBoundary="boundary_2" spatial:type="Robin_valueCoefficient" spatial:variable="species_1"/> - <spatial:diffusionCoefficient spatial:coordinateReference1="cartesianX" spatial:coordinateReference2="cartesianX" spatial:type="isotropic" spatial:variable="species_1"/> - </parameter> - </listOfParameters> - </model> + <model/> </sbml> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220103-fail-01-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220103-fail-01-01.xml 2019-08-29 00:24:19 UTC (rev 26113) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220103-fail-01-01.xml 2019-08-29 21:32:56 UTC (rev 26114) @@ -1,71 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> <sbml level="3" spatial:required="false" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> - <model> - <spatial:geometry spatial:coordinateSystem="cartesian" spatial:id="geometry_1"> - <spatial:listOfCoordinateComponents> - <spatial:coordinateComponent spatial:id="coordinateComponent_1" spatial:type="cartesianX" spatial:unit="dimensionless"> - <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> - <spatial:boundaryMax spatial:id="boundary_2" spatial:value="0"/> - </spatial:coordinateComponent> - </spatial:listOfCoordinateComponents> - <spatial:listOfDomainTypes> - <spatial:domainType spatial:id="domainType_1" spatial:spatialDimensions="0"/> - </spatial:listOfDomainTypes> - <spatial:listOfDomains> - <spatial:domain spatial:domainType="domainType_1" spatial:id="domain_1"> - <spatial:listOfInteriorPoints> - <spatial:interiorPoint spatial:coord1="0" spatial:coord2="0" spatial:coord3="0"/> - </spatial:listOfInteriorPoints> - </spatial:domain> - </spatial:listOfDomains> - <spatial:listOfAdjacentDomains> - <spatial:adjacentDomains spatial:domain1="domain_1" spatial:domain2="domain_1" spatial:id="adjacentDomains_1"/> - </spatial:listOfAdjacentDomains> - <spatial:listOfGeometryDefinitions> - <spatial:analyticGeometry spatial:id="geometryDefinition_1" spatial:isActive="false"> - <spatial:listOfAnalyticVolumes> - <spatial:analyticVolume spatial:domainType="domainType_1" spatial:functionType="layered" spatial:id="analyticVolume_1" spatial:ordinal="0"> - <math xmlns="http://www.w3.org/1998/Math/MathML"/> - </spatial:analyticVolume> - ... [truncated message content] |
From: <luc...@us...> - 2019-08-29 00:24:23
|
Revision: 26113 http://sourceforge.net/p/sbml/code/26113 Author: luciansmith Date: 2019-08-29 00:24:19 +0000 (Thu, 29 Aug 2019) Log Message: ----------- Documentation fixes. Modified Paths: -------------- branches/libsbml-experimental/src/sbml/math/L3FormulaFormatter.cpp branches/libsbml-experimental/src/sbml/packages/render/sbml/GradientBase.h Modified: branches/libsbml-experimental/src/sbml/math/L3FormulaFormatter.cpp =================================================================== --- branches/libsbml-experimental/src/sbml/math/L3FormulaFormatter.cpp 2019-08-29 00:23:40 UTC (rev 26112) +++ branches/libsbml-experimental/src/sbml/math/L3FormulaFormatter.cpp 2019-08-29 00:24:19 UTC (rev 26113) @@ -1,5 +1,5 @@ /** - * @file L3FormulaFormatter.c + * @file L3FormulaFormatter.cpp * @brief Formats an AST formula tree as an SBML L3 formula string. * @author Lucian Smith (from FormulaFormatter, by Ben Bornstein) * Modified: branches/libsbml-experimental/src/sbml/packages/render/sbml/GradientBase.h =================================================================== --- branches/libsbml-experimental/src/sbml/packages/render/sbml/GradientBase.h 2019-08-29 00:23:40 UTC (rev 26112) +++ branches/libsbml-experimental/src/sbml/packages/render/sbml/GradientBase.h 2019-08-29 00:24:19 UTC (rev 26113) @@ -1341,7 +1341,7 @@ * * @copydetails doc_gradientbase_spreadMethod * @if clike The value is drawn from the enumeration - * GradientSpreadMethod_t.@~ + * GradientSpreadMethod_t. @endif@~ * The possible values returned by this method are: * @li @sbmlconstant{GRADIENT_SPREADMETHOD_PAD, GradientSpreadMethod_t} * @li @sbmlconstant{GRADIENT_SPREADMETHOD_REFLECT, GradientSpreadMethod_t} |
From: <luc...@us...> - 2019-08-29 00:23:46
|
Revision: 26112 http://sourceforge.net/p/sbml/code/26112 Author: luciansmith Date: 2019-08-29 00:23:40 +0000 (Thu, 29 Aug 2019) Log Message: ----------- Add constraints for new spatial validation rules 20650, 20750, 20751, and 20752. Also make calling the validator more efficient for reactions and the spatial reaction plugin, and allow validation of the Reaction object in general. (Also, fixed some example models that failed the new validation, but shouldn't have.) Modified Paths: -------------- branches/libsbml-experimental/src/sbml/packages/spatial/extension/SpatialReactionPlugin.cpp branches/libsbml-experimental/src/sbml/packages/spatial/extension/SpatialReactionPlugin.h branches/libsbml-experimental/src/sbml/packages/spatial/validator/SpatialValidator.cpp branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraints.cpp branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraintsDeclared.cxx branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220601-fail-01-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220602-pass-00-01.xml Added Paths: ----------- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220650-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220650-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220650-pass-00-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220750-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220750-fail-01-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220750-fail-01-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220750-fail-01-04.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220750-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220750-pass-00-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220751-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220751-fail-01-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220751-fail-01-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220751-fail-01-04.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220751-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220751-pass-00-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220752-fail-01-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220752-fail-01-02.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220752-fail-01-03.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220752-fail-01-04.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220752-pass-00-01.xml branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220752-pass-00-02.xml Modified: branches/libsbml-experimental/src/sbml/packages/spatial/extension/SpatialReactionPlugin.cpp =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/extension/SpatialReactionPlugin.cpp 2019-08-27 21:02:53 UTC (rev 26111) +++ branches/libsbml-experimental/src/sbml/packages/spatial/extension/SpatialReactionPlugin.cpp 2019-08-29 00:23:40 UTC (rev 26112) @@ -200,26 +200,6 @@ /** @cond doxygenLibsbmlInternal */ /* - * Accepts the given SBMLVisitor - */ -bool -SpatialReactionPlugin::accept(SBMLVisitor& v) const -{ - const Reaction* r = static_cast<const - Reaction*>(this->getParentSBMLObject()); - v.visit(*r); - v.leave(*r); - - return true; -} - -/** @endcond */ - - - -/** @cond doxygenLibsbmlInternal */ - -/* * Sets the parent SBMLDocument */ void Modified: branches/libsbml-experimental/src/sbml/packages/spatial/extension/SpatialReactionPlugin.h =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/extension/SpatialReactionPlugin.h 2019-08-27 21:02:53 UTC (rev 26111) +++ branches/libsbml-experimental/src/sbml/packages/spatial/extension/SpatialReactionPlugin.h 2019-08-29 00:23:40 UTC (rev 26112) @@ -195,17 +195,6 @@ /** @cond doxygenLibsbmlInternal */ /** - * Accepts the given SBMLVisitor - */ - virtual bool accept(SBMLVisitor& v) const; - - /** @endcond */ - - - - /** @cond doxygenLibsbmlInternal */ - - /** * Sets the parent SBMLDocument */ virtual void setSBMLDocument(SBMLDocument* d); Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/SpatialValidator.cpp =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/SpatialValidator.cpp 2019-08-27 21:02:53 UTC (rev 26111) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/SpatialValidator.cpp 2019-08-29 00:23:40 UTC (rev 26112) @@ -142,6 +142,7 @@ ConstraintSet<SBMLDocument> mSBMLDocument; ConstraintSet<Model> mModel; + ConstraintSet<Reaction> mReaction; ConstraintSet<DomainType> mDomainType; ConstraintSet<Domain> mDomain; ConstraintSet<InteriorPoint> mInteriorPoint; @@ -227,6 +228,12 @@ return; } + if (dynamic_cast< TConstraint<Reaction>* >(c) != NULL) + { + mReaction.add(static_cast< TConstraint<Reaction>* >(c) ); + return; + } + if (dynamic_cast< TConstraint<DomainType>* >(c) != NULL) { mDomainType.add(static_cast< TConstraint<DomainType>* >(c) ); @@ -732,6 +739,14 @@ } + bool + visit(const Reaction& x) + { + v.mSpatialConstraints->mReaction.applyTo(m, x); + return !v.mSpatialConstraints->mSpatialPoints.empty(); + } + + virtual void visit (const Model &x) { v.mSpatialConstraints->mModel.applyTo(m, x); @@ -985,7 +1000,7 @@ SpatialReactionPlugin*>(m->getReaction(i)->getPlugin("spatial")); if (rnPlug != NULL) { - rnPlug->accept(vv); + m->getReaction(i)->accept(vv); } } } Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraints.cpp =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraints.cpp 2019-08-27 21:02:53 UTC (rev 26111) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraints.cpp 2019-08-29 00:23:40 UTC (rev 26112) @@ -43,6 +43,7 @@ #include <sbml/packages/spatial/validator/SpatialSBMLError.h> #include <sbml/packages/spatial/common/SpatialExtensionTypes.h> +#include <sbml/packages/spatial/sbml/Geometry.h> #endif /* AddingConstraintsToValidator */ @@ -295,5 +296,121 @@ END_CONSTRAINT +// 1220650 +START_CONSTRAINT(SpatialLocalReactionMustDefineCompartment, Reaction, rxn) +{ + const SpatialReactionPlugin* rxnplugin = static_cast<const SpatialReactionPlugin*>(rxn.getPlugin("spatial")); + + pre(rxnplugin != NULL); + + pre(rxnplugin->isSetIsLocal()); + pre(rxnplugin->getIsLocal() == true); + + bool fail = false; + + if (!rxn.isSetCompartment()) + { + fail = true; + msg = "A Reaction"; + if (rxn.isSetId()) + { + msg += " with id '"; + msg += rxn.getId(); + msg += "'"; + } + msg += " has a 'spatial:isLocal' attribute of 'true', but does not define the 'compartment' attribute."; + } + inv(fail == false); +} +END_CONSTRAINT + + +// 1220750 +START_CONSTRAINT(SpatialDomainTypeDimensionsMustMatch3DGeometry, DomainType, domaintype) +{ + pre(domaintype.isSetSpatialDimensions()); + + const Geometry* geometry = static_cast<const Geometry*>(domaintype.getParentSBMLObject()->getParentSBMLObject()); + pre(geometry->getNumCoordinateComponents()==3); + + int dim = domaintype.getSpatialDimensions(); + bool fail = false; + if (dim < 2 || dim > 3) { + fail = true; + stringstream ss_msg; + ss_msg << "A DomainType"; + if (domaintype.isSetId()) + { + ss_msg << " with id '" << domaintype.getId() << "'"; + } + ss_msg << " has a 'spatial:spatialDimensions' attribute of '"; + ss_msg << dim; + ss_msg << "', but the ListOfCoordinateComponents has exactly three children."; + msg = ss_msg.str(); + } + + inv(fail == false); +} +END_CONSTRAINT + + +// 1220751 +START_CONSTRAINT(SpatialDomainTypeDimensionsMustMatch2DGeometry, DomainType, domaintype) +{ + pre(domaintype.isSetSpatialDimensions()); + + const Geometry* geometry = static_cast<const Geometry*>(domaintype.getParentSBMLObject()->getParentSBMLObject()); + pre(geometry->getNumCoordinateComponents()==2); + + int dim = domaintype.getSpatialDimensions(); + bool fail = false; + if (dim < 1 || dim > 2) { + fail = true; + stringstream ss_msg; + ss_msg << "A DomainType"; + if (domaintype.isSetId()) + { + ss_msg << " with id '" << domaintype.getId() << "'"; + } + ss_msg << " has a 'spatial:spatialDimensions' attribute of '"; + ss_msg << dim; + ss_msg << "', but the ListOfCoordinateComponents has exactly two children."; + msg = ss_msg.str(); + } + + inv(fail == false); +} +END_CONSTRAINT + + +// 1220752 +START_CONSTRAINT(SpatialDomainTypeDimensionsMustMatch1DGeometry, DomainType, domaintype) +{ + pre(domaintype.isSetSpatialDimensions()); + + const Geometry* geometry = static_cast<const Geometry*>(domaintype.getParentSBMLObject()->getParentSBMLObject()); + pre(geometry->getNumCoordinateComponents()==1); + + int dim = domaintype.getSpatialDimensions(); + bool fail = false; + if (dim < 0 || dim > 1) { + fail = true; + stringstream ss_msg; + ss_msg << "A DomainType"; + if (domaintype.isSetId()) + { + ss_msg << " with id '" << domaintype.getId() << "'"; + } + ss_msg << " has a 'spatial:spatialDimensions' attribute of '"; + ss_msg << dim; + ss_msg << "', but the ListOfCoordinateComponents has exactly one child."; + msg = ss_msg.str(); + } + + inv(fail == false); +} +END_CONSTRAINT + + /** @endcond */ Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraintsDeclared.cxx =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraintsDeclared.cxx 2019-08-27 21:02:53 UTC (rev 26111) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/constraints/SpatialConsistencyConstraintsDeclared.cxx 2019-08-29 00:23:40 UTC (rev 26112) @@ -38,7 +38,6 @@ * ------------------------------------------------------------------------ --> */ - addConstraint(new VConstraintDomainSpatialDomainDomainTypeMustBeDomainType(*this)); addConstraint(new VConstraintAdjacentDomainsSpatialAdjacentDomainsDomain1MustBeDomain(*this)); addConstraint(new VConstraintAdjacentDomainsSpatialAdjacentDomainsDomain2MustBeDomain(*this)); @@ -46,6 +45,10 @@ addConstraint(new VConstraintCoordinateComponentSpatialCoordinateComponentAllowedElements(*this)); addConstraint(new VConstraintCoordinateComponentSpatialCoordinateComponentUnitMustBeUnitSId(*this)); addConstraint(new VConstraintSampledFieldGeometrySpatialSampledFieldGeometrySampledFieldMustBeSampledField(*this)); +addConstraint(new VConstraintReactionSpatialLocalReactionMustDefineCompartment(*this)); +addConstraint(new VConstraintDomainTypeSpatialDomainTypeDimensionsMustMatch3DGeometry(*this)); +addConstraint(new VConstraintDomainTypeSpatialDomainTypeDimensionsMustMatch2DGeometry(*this)); +addConstraint(new VConstraintDomainTypeSpatialDomainTypeDimensionsMustMatch1DGeometry(*this)); /** @endcond */ Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220601-fail-01-02.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220601-fail-01-02.xml 2019-08-27 21:02:53 UTC (rev 26111) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220601-fail-01-02.xml 2019-08-29 00:23:40 UTC (rev 26112) @@ -42,7 +42,7 @@ </parameter> </listOfParameters> <listOfReactions> - <reaction id="J0" reversible="false" fast="false" spatial:isLocal="true" spatial:foo="x"> + <reaction id="J0" reversible="false" fast="false" spatial:isLocal="true" spatial:foo="x" compartment="compartment"> <listOfProducts> <speciesReference species="id_10" stoichiometry="1" constant="true"/> </listOfProducts> Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220602-pass-00-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220602-pass-00-01.xml 2019-08-27 21:02:53 UTC (rev 26111) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220602-pass-00-01.xml 2019-08-29 00:23:40 UTC (rev 26112) @@ -42,7 +42,7 @@ </parameter> </listOfParameters> <listOfReactions> - <reaction id="J0" reversible="false" fast="false" spatial:isLocal="true"> + <reaction id="J0" reversible="false" fast="false" spatial:isLocal="true" compartment="compartment"> <listOfProducts> <speciesReference species="id_10" stoichiometry="1" constant="true"/> </listOfProducts> Added: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220650-fail-01-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220650-fail-01-01.xml (rev 0) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220650-fail-01-01.xml 2019-08-29 00:23:40 UTC (rev 26112) @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sbml level="3" spatial:required="true" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> + <model> + <listOfCompartments> + <compartment constant="false" id="compartment"> + </compartment> + </listOfCompartments> + <listOfSpecies> + <species boundaryCondition="false" compartment="compartment" constant="false" hasOnlySubstanceUnits="false" id="id_2" spatial:isSpatial="false"/> + </listOfSpecies> + <listOfParameters> + <parameter constant="false" id="id_3"> + </parameter> + </listOfParameters> + <listOfReactions> + <reaction id="J0" reversible="false" fast="false" spatial:isLocal="true"> + <listOfProducts> + <speciesReference species="id_10" stoichiometry="1" constant="true"/> + </listOfProducts> + <kineticLaw> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <cn type="integer"> 1 </cn> + </math> + </kineticLaw> + </reaction> + </listOfReactions> + </model> +</sbml> + Added: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220650-pass-00-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220650-pass-00-01.xml (rev 0) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220650-pass-00-01.xml 2019-08-29 00:23:40 UTC (rev 26112) @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sbml level="3" spatial:required="true" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> + <model> + <listOfCompartments> + <compartment constant="false" id="compartment"> + </compartment> + </listOfCompartments> + <listOfSpecies> + <species boundaryCondition="false" compartment="compartment" constant="false" hasOnlySubstanceUnits="false" id="id_2" spatial:isSpatial="false"/> + </listOfSpecies> + <listOfParameters> + <parameter constant="false" id="id_3"> + </parameter> + </listOfParameters> + <listOfReactions> + <reaction id="J0" reversible="false" fast="false" spatial:isLocal="false" compartment="compartment"> + <listOfProducts> + <speciesReference species="id_10" stoichiometry="1" constant="true"/> + </listOfProducts> + <kineticLaw> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <cn type="integer"> 1 </cn> + </math> + </kineticLaw> + </reaction> + </listOfReactions> + </model> +</sbml> + Added: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220650-pass-00-02.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220650-pass-00-02.xml (rev 0) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220650-pass-00-02.xml 2019-08-29 00:23:40 UTC (rev 26112) @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sbml level="3" spatial:required="true" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> + <model> + <listOfCompartments> + <compartment constant="false" id="compartment"> + </compartment> + </listOfCompartments> + <listOfSpecies> + <species boundaryCondition="false" compartment="compartment" constant="false" hasOnlySubstanceUnits="false" id="id_2" spatial:isSpatial="false"/> + </listOfSpecies> + <listOfParameters> + <parameter constant="false" id="id_3"> + </parameter> + </listOfParameters> + <listOfReactions> + <reaction id="J0" reversible="false" fast="false" spatial:isLocal="false"> + <listOfProducts> + <speciesReference species="id_10" stoichiometry="1" constant="true"/> + </listOfProducts> + <kineticLaw> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <cn type="integer"> 1 </cn> + </math> + </kineticLaw> + </reaction> + </listOfReactions> + </model> +</sbml> + Added: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220750-fail-01-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220750-fail-01-01.xml (rev 0) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220750-fail-01-01.xml 2019-08-29 00:23:40 UTC (rev 26112) @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sbml level="3" spatial:required="true" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> + <model> + <spatial:geometry spatial:coordinateSystem="cartesian" spatial:id="geometry_1"> + <spatial:listOfCoordinateComponents> + <spatial:coordinateComponent spatial:id="coordinateComponent_1" spatial:type="cartesianX" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + <spatial:coordinateComponent spatial:id="coordinateComponent_2" spatial:type="cartesianY" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + <spatial:coordinateComponent spatial:id="coordinateComponent_3" spatial:type="cartesianZ" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + </spatial:listOfCoordinateComponents> + <spatial:listOfDomainTypes> + <spatial:domainType spatial:id="domainType_1" spatial:spatialDimensions="1"/> + </spatial:listOfDomainTypes> + </spatial:geometry> + </model> +</sbml> + Added: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220750-fail-01-02.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220750-fail-01-02.xml (rev 0) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220750-fail-01-02.xml 2019-08-29 00:23:40 UTC (rev 26112) @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sbml level="3" spatial:required="true" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> + <model> + <spatial:geometry spatial:coordinateSystem="cartesian" spatial:id="geometry_1"> + <spatial:listOfCoordinateComponents> + <spatial:coordinateComponent spatial:id="coordinateComponent_1" spatial:type="cartesianX" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + <spatial:coordinateComponent spatial:id="coordinateComponent_2" spatial:type="cartesianY" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + <spatial:coordinateComponent spatial:id="coordinateComponent_3" spatial:type="cartesianZ" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + </spatial:listOfCoordinateComponents> + <spatial:listOfDomainTypes> + <spatial:domainType spatial:id="domainType_1" spatial:spatialDimensions="0"/> + </spatial:listOfDomainTypes> + </spatial:geometry> + </model> +</sbml> + Added: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220750-fail-01-03.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220750-fail-01-03.xml (rev 0) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220750-fail-01-03.xml 2019-08-29 00:23:40 UTC (rev 26112) @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sbml level="3" spatial:required="true" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> + <model> + <spatial:geometry spatial:coordinateSystem="cartesian" spatial:id="geometry_1"> + <spatial:listOfCoordinateComponents> + <spatial:coordinateComponent spatial:id="coordinateComponent_1" spatial:type="cartesianX" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + <spatial:coordinateComponent spatial:id="coordinateComponent_2" spatial:type="cartesianY" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + <spatial:coordinateComponent spatial:id="coordinateComponent_3" spatial:type="cartesianZ" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + </spatial:listOfCoordinateComponents> + <spatial:listOfDomainTypes> + <spatial:domainType spatial:id="domainType_1" spatial:spatialDimensions="4"/> + </spatial:listOfDomainTypes> + </spatial:geometry> + </model> +</sbml> + Added: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220750-fail-01-04.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220750-fail-01-04.xml (rev 0) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220750-fail-01-04.xml 2019-08-29 00:23:40 UTC (rev 26112) @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sbml level="3" spatial:required="true" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> + <model> + <spatial:geometry spatial:coordinateSystem="cartesian" spatial:id="geometry_1"> + <spatial:listOfCoordinateComponents> + <spatial:coordinateComponent spatial:id="coordinateComponent_1" spatial:type="cartesianX" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + <spatial:coordinateComponent spatial:id="coordinateComponent_2" spatial:type="cartesianY" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + <spatial:coordinateComponent spatial:id="coordinateComponent_3" spatial:type="cartesianZ" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + </spatial:listOfCoordinateComponents> + <spatial:listOfDomainTypes> + <spatial:domainType spatial:id="domainType_1" spatial:spatialDimensions="-1"/> + </spatial:listOfDomainTypes> + </spatial:geometry> + </model> +</sbml> + Added: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220750-pass-00-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220750-pass-00-01.xml (rev 0) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220750-pass-00-01.xml 2019-08-29 00:23:40 UTC (rev 26112) @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sbml level="3" spatial:required="true" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> + <model> + <spatial:geometry spatial:coordinateSystem="cartesian" spatial:id="geometry_1"> + <spatial:listOfCoordinateComponents> + <spatial:coordinateComponent spatial:id="coordinateComponent_1" spatial:type="cartesianX" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + <spatial:coordinateComponent spatial:id="coordinateComponent_2" spatial:type="cartesianY" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + <spatial:coordinateComponent spatial:id="coordinateComponent_3" spatial:type="cartesianZ" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + </spatial:listOfCoordinateComponents> + <spatial:listOfDomainTypes> + <spatial:domainType spatial:id="domainType_1" spatial:spatialDimensions="3"/> + </spatial:listOfDomainTypes> + </spatial:geometry> + </model> +</sbml> + Added: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220750-pass-00-02.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220750-pass-00-02.xml (rev 0) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220750-pass-00-02.xml 2019-08-29 00:23:40 UTC (rev 26112) @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sbml level="3" spatial:required="true" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> + <model> + <spatial:geometry spatial:coordinateSystem="cartesian" spatial:id="geometry_1"> + <spatial:listOfCoordinateComponents> + <spatial:coordinateComponent spatial:id="coordinateComponent_1" spatial:type="cartesianX" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + <spatial:coordinateComponent spatial:id="coordinateComponent_2" spatial:type="cartesianY" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + <spatial:coordinateComponent spatial:id="coordinateComponent_3" spatial:type="cartesianZ" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + </spatial:listOfCoordinateComponents> + <spatial:listOfDomainTypes> + <spatial:domainType spatial:id="domainType_1" spatial:spatialDimensions="2"/> + </spatial:listOfDomainTypes> + </spatial:geometry> + </model> +</sbml> + Added: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220751-fail-01-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220751-fail-01-01.xml (rev 0) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220751-fail-01-01.xml 2019-08-29 00:23:40 UTC (rev 26112) @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sbml level="3" spatial:required="true" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> + <model> + <spatial:geometry spatial:coordinateSystem="cartesian" spatial:id="geometry_1"> + <spatial:listOfCoordinateComponents> + <spatial:coordinateComponent spatial:id="coordinateComponent_1" spatial:type="cartesianX" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + <spatial:coordinateComponent spatial:id="coordinateComponent_2" spatial:type="cartesianY" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + </spatial:listOfCoordinateComponents> + <spatial:listOfDomainTypes> + <spatial:domainType spatial:id="domainType_1" spatial:spatialDimensions="0"/> + </spatial:listOfDomainTypes> + </spatial:geometry> + </model> +</sbml> + Added: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220751-fail-01-02.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220751-fail-01-02.xml (rev 0) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220751-fail-01-02.xml 2019-08-29 00:23:40 UTC (rev 26112) @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sbml level="3" spatial:required="true" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> + <model> + <spatial:geometry spatial:coordinateSystem="cartesian" spatial:id="geometry_1"> + <spatial:listOfCoordinateComponents> + <spatial:coordinateComponent spatial:id="coordinateComponent_1" spatial:type="cartesianX" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + <spatial:coordinateComponent spatial:id="coordinateComponent_2" spatial:type="cartesianY" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + </spatial:listOfCoordinateComponents> + <spatial:listOfDomainTypes> + <spatial:domainType spatial:id="domainType_1" spatial:spatialDimensions="-1"/> + </spatial:listOfDomainTypes> + </spatial:geometry> + </model> +</sbml> + Added: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220751-fail-01-03.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220751-fail-01-03.xml (rev 0) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220751-fail-01-03.xml 2019-08-29 00:23:40 UTC (rev 26112) @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sbml level="3" spatial:required="true" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> + <model> + <spatial:geometry spatial:coordinateSystem="cartesian" spatial:id="geometry_1"> + <spatial:listOfCoordinateComponents> + <spatial:coordinateComponent spatial:id="coordinateComponent_1" spatial:type="cartesianX" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + <spatial:coordinateComponent spatial:id="coordinateComponent_2" spatial:type="cartesianY" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + </spatial:listOfCoordinateComponents> + <spatial:listOfDomainTypes> + <spatial:domainType spatial:id="domainType_1" spatial:spatialDimensions="3"/> + </spatial:listOfDomainTypes> + </spatial:geometry> + </model> +</sbml> + Added: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220751-fail-01-04.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220751-fail-01-04.xml (rev 0) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220751-fail-01-04.xml 2019-08-29 00:23:40 UTC (rev 26112) @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sbml level="3" spatial:required="true" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> + <model> + <spatial:geometry spatial:coordinateSystem="cartesian" spatial:id="geometry_1"> + <spatial:listOfCoordinateComponents> + <spatial:coordinateComponent spatial:id="coordinateComponent_1" spatial:type="cartesianX" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + <spatial:coordinateComponent spatial:id="coordinateComponent_2" spatial:type="cartesianY" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + </spatial:listOfCoordinateComponents> + <spatial:listOfDomainTypes> + <spatial:domainType spatial:id="domainType_1" spatial:spatialDimensions="4"/> + </spatial:listOfDomainTypes> + </spatial:geometry> + </model> +</sbml> + Added: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220751-pass-00-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220751-pass-00-01.xml (rev 0) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220751-pass-00-01.xml 2019-08-29 00:23:40 UTC (rev 26112) @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sbml level="3" spatial:required="true" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> + <model> + <spatial:geometry spatial:coordinateSystem="cartesian" spatial:id="geometry_1"> + <spatial:listOfCoordinateComponents> + <spatial:coordinateComponent spatial:id="coordinateComponent_1" spatial:type="cartesianX" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + <spatial:coordinateComponent spatial:id="coordinateComponent_2" spatial:type="cartesianY" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + </spatial:listOfCoordinateComponents> + <spatial:listOfDomainTypes> + <spatial:domainType spatial:id="domainType_1" spatial:spatialDimensions="2"/> + </spatial:listOfDomainTypes> + </spatial:geometry> + </model> +</sbml> + Added: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220751-pass-00-02.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220751-pass-00-02.xml (rev 0) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220751-pass-00-02.xml 2019-08-29 00:23:40 UTC (rev 26112) @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sbml level="3" spatial:required="true" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> + <model> + <spatial:geometry spatial:coordinateSystem="cartesian" spatial:id="geometry_1"> + <spatial:listOfCoordinateComponents> + <spatial:coordinateComponent spatial:id="coordinateComponent_1" spatial:type="cartesianX" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + <spatial:coordinateComponent spatial:id="coordinateComponent_2" spatial:type="cartesianY" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + </spatial:listOfCoordinateComponents> + <spatial:listOfDomainTypes> + <spatial:domainType spatial:id="domainType_1" spatial:spatialDimensions="1"/> + </spatial:listOfDomainTypes> + </spatial:geometry> + </model> +</sbml> + Added: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220752-fail-01-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220752-fail-01-01.xml (rev 0) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220752-fail-01-01.xml 2019-08-29 00:23:40 UTC (rev 26112) @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sbml level="3" spatial:required="true" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> + <model> + <spatial:geometry spatial:coordinateSystem="cartesian" spatial:id="geometry_1"> + <spatial:listOfCoordinateComponents> + <spatial:coordinateComponent spatial:id="coordinateComponent_1" spatial:type="cartesianX" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + </spatial:listOfCoordinateComponents> + <spatial:listOfDomainTypes> + <spatial:domainType spatial:id="domainType_1" spatial:spatialDimensions="-1"/> + </spatial:listOfDomainTypes> + </spatial:geometry> + </model> +</sbml> + Added: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220752-fail-01-02.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220752-fail-01-02.xml (rev 0) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220752-fail-01-02.xml 2019-08-29 00:23:40 UTC (rev 26112) @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sbml level="3" spatial:required="true" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> + <model> + <spatial:geometry spatial:coordinateSystem="cartesian" spatial:id="geometry_1"> + <spatial:listOfCoordinateComponents> + <spatial:coordinateComponent spatial:id="coordinateComponent_1" spatial:type="cartesianX" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + </spatial:listOfCoordinateComponents> + <spatial:listOfDomainTypes> + <spatial:domainType spatial:id="domainType_1" spatial:spatialDimensions="2"/> + </spatial:listOfDomainTypes> + </spatial:geometry> + </model> +</sbml> + Added: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220752-fail-01-03.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220752-fail-01-03.xml (rev 0) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220752-fail-01-03.xml 2019-08-29 00:23:40 UTC (rev 26112) @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sbml level="3" spatial:required="true" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> + <model> + <spatial:geometry spatial:coordinateSystem="cartesian" spatial:id="geometry_1"> + <spatial:listOfCoordinateComponents> + <spatial:coordinateComponent spatial:id="coordinateComponent_1" spatial:type="cartesianX" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + </spatial:listOfCoordinateComponents> + <spatial:listOfDomainTypes> + <spatial:domainType spatial:id="domainType_1" spatial:spatialDimensions="3"/> + </spatial:listOfDomainTypes> + </spatial:geometry> + </model> +</sbml> + Added: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220752-fail-01-04.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220752-fail-01-04.xml (rev 0) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220752-fail-01-04.xml 2019-08-29 00:23:40 UTC (rev 26112) @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sbml level="3" spatial:required="true" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> + <model> + <spatial:geometry spatial:coordinateSystem="cartesian" spatial:id="geometry_1"> + <spatial:listOfCoordinateComponents> + <spatial:coordinateComponent spatial:id="coordinateComponent_1" spatial:type="cartesianX" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + </spatial:listOfCoordinateComponents> + <spatial:listOfDomainTypes> + <spatial:domainType spatial:id="domainType_1" spatial:spatialDimensions="4"/> + </spatial:listOfDomainTypes> + </spatial:geometry> + </model> +</sbml> + Added: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220752-pass-00-01.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220752-pass-00-01.xml (rev 0) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220752-pass-00-01.xml 2019-08-29 00:23:40 UTC (rev 26112) @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sbml level="3" spatial:required="true" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> + <model> + <spatial:geometry spatial:coordinateSystem="cartesian" spatial:id="geometry_1"> + <spatial:listOfCoordinateComponents> + <spatial:coordinateComponent spatial:id="coordinateComponent_1" spatial:type="cartesianX" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + </spatial:listOfCoordinateComponents> + <spatial:listOfDomainTypes> + <spatial:domainType spatial:id="domainType_1" spatial:spatialDimensions="1"/> + </spatial:listOfDomainTypes> + </spatial:geometry> + </model> +</sbml> + Added: branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220752-pass-00-02.xml =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220752-pass-00-02.xml (rev 0) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/test/test-data/general-constraints/1220752-pass-00-02.xml 2019-08-29 00:23:40 UTC (rev 26112) @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sbml level="3" spatial:required="true" version="1" xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:spatial="http://www.sbml.org/sbml/level3/version1/spatial/version1"> + <model> + <spatial:geometry spatial:coordinateSystem="cartesian" spatial:id="geometry_1"> + <spatial:listOfCoordinateComponents> + <spatial:coordinateComponent spatial:id="coordinateComponent_1" spatial:type="cartesianX" spatial:unit="dimensionless"> + <spatial:boundaryMin spatial:id="boundary_1" spatial:value="0"/> + <spatial:boundaryMax spatial:id="boundary_2" spatial:value="1"/> + </spatial:coordinateComponent> + </spatial:listOfCoordinateComponents> + <spatial:listOfDomainTypes> + <spatial:domainType spatial:id="domainType_1" spatial:spatialDimensions="0"/> + </spatial:listOfDomainTypes> + </spatial:geometry> + </model> +</sbml> + |
From: <luc...@us...> - 2019-08-27 21:02:56
|
Revision: 26111 http://sourceforge.net/p/sbml/code/26111 Author: luciansmith Date: 2019-08-27 21:02:53 +0000 (Tue, 27 Aug 2019) Log Message: ----------- Add new validation rules to error lists (no actual validation yet). Also fix cSG -> csg Modified Paths: -------------- branches/libsbml-experimental/src/sbml/packages/spatial/validator/SpatialSBMLError.h branches/libsbml-experimental/src/sbml/packages/spatial/validator/SpatialSBMLErrorTable.h Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/SpatialSBMLError.h =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/SpatialSBMLError.h 2019-08-27 17:35:43 UTC (rev 26110) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/SpatialSBMLError.h 2019-08-27 21:02:53 UTC (rev 26111) @@ -76,11 +76,15 @@ , SpatialParameterAllowedElements = 1220501 , SpatialReactionAllowedAttributes = 1220601 , SpatialReactionIsLocalMustBeBoolean = 1220602 +, SpatialLocalReactionMustDefineCompartment = 1220650 , SpatialDomainTypeAllowedCoreAttributes = 1220701 , SpatialDomainTypeAllowedCoreElements = 1220702 , SpatialDomainTypeAllowedAttributes = 1220703 , SpatialDomainTypeSpatialDimensionsMustBeInteger = 1220704 , SpatialDomainTypeNameMustBeString = 1220705 +, SpatialDomainTypeDimensionsMustMatch3DGeometry = 1220750 +, SpatialDomainTypeDimensionsMustMatch2DGeometry = 1220751 +, SpatialDomainTypeDimensionsMustMatch1DGeometry = 1220752 , SpatialDomainAllowedCoreAttributes = 1220801 , SpatialDomainAllowedCoreElements = 1220802 , SpatialDomainAllowedAttributes = 1220803 @@ -143,6 +147,9 @@ , SpatialSampledFieldNameMustBeString = 1221610 , SpatialSampledFieldNumSamples2MustBeInteger = 1221611 , SpatialSampledFieldNumSamples3MustBeInteger = 1221612 +, SpatialSampledFieldOneSampleIn1DGeometry = 1221650 +, SpatialSampledFieldTwoSamplesIn2DGeometry = 1221651 +, SpatialSampledFieldThreeSamplesIn3DGeometry = 1221652 , SpatialSampledVolumeAllowedCoreAttributes = 1221701 , SpatialSampledVolumeAllowedCoreElements = 1221702 , SpatialSampledVolumeAllowedAttributes = 1221703 @@ -151,6 +158,11 @@ , SpatialSampledVolumeSampledValueMustBeDouble = 1221706 , SpatialSampledVolumeMinValueMustBeDouble = 1221707 , SpatialSampledVolumeMaxValueMustBeDouble = 1221708 +, SpatialSampledVolumeNeedsMinWithMax = 1221750 +, SpatialSampledVolumeNeedsMaxWithMin = 1221751 +, SpatialSampledVolumeNoSampledValueWithMinMax = 1221752 +, SpatialSampledVolumeNoMinMaxWithSampledValue = 1221753 +, SpatialSampledVolumeMinMaxOrSampledValue = 1221754 , SpatialAnalyticGeometryAllowedCoreAttributes = 1221801 , SpatialAnalyticGeometryAllowedCoreElements = 1221802 , SpatialAnalyticGeometryAllowedElements = 1221803 @@ -164,6 +176,7 @@ , SpatialAnalyticVolumeDomainTypeMustBeDomainType = 1221906 , SpatialAnalyticVolumeNameMustBeString = 1221907 , SpatialAnalyticVolumeOrdinalMustBeInteger = 1221908 +, SpatialAnalyticVolumeOrdinalShouldBeUnique = 1221950 , SpatialParametricGeometryAllowedCoreAttributes = 1222001 , SpatialParametricGeometryAllowedCoreElements = 1222002 , SpatialParametricGeometryAllowedElements = 1222003 @@ -191,6 +204,7 @@ , SpatialCSGObjectDomainTypeMustBeDomainType = 1222305 , SpatialCSGObjectNameMustBeString = 1222306 , SpatialCSGObjectOrdinalMustBeInteger = 1222307 +, SpatialCSGObjectOrdinalShouldBeUnique = 1222350 , SpatialCSGNodeAllowedCoreAttributes = 1222401 , SpatialCSGNodeAllowedCoreElements = 1222402 , SpatialCSGNodeAllowedAttributes = 1222403 @@ -238,6 +252,8 @@ , SpatialCSGSetOperatorComplementBMustBeCSGNode = 1223207 , SpatialCSGSetOperatorLOCSGNodesAllowedCoreElements = 1223208 , SpatialCSGSetOperatorLOCSGNodesAllowedCoreAttributes = 1223209 +, SpatialCSGSetOperatorTwoComponentsForDifference = 1223250 +, SpatialCSGSetOperatorNoComponentsUnionIntersection = 1223251 , SpatialSpatialSymbolReferenceAllowedCoreAttributes = 1223301 , SpatialSpatialSymbolReferenceAllowedCoreElements = 1223302 , SpatialSpatialSymbolReferenceAllowedAttributes = 1223303 @@ -249,6 +265,9 @@ , SpatialDiffusionCoefficientTypeMustBeDiffusionKindEnum = 1223405 , SpatialDiffusionCoefficientCoordinateReference1MustBeCoordinateKindEnum= 1223406 , SpatialDiffusionCoefficientCoordinateReference2MustBeCoordinateKindEnum= 1223407 +, SpatialDiffusionCoefficientNoCoordinateReferencesForIsotropic = 1223450 +, SpatialDiffusionCoefficientTwoCoordinateReferencesForTensor = 1223451 +, SpatialDiffusionCoefficientOneCoordinateReferencesForAnisotropic = 1223452 , SpatialAdvectionCoefficientAllowedCoreAttributes = 1223501 , SpatialAdvectionCoefficientAllowedCoreElements = 1223502 , SpatialAdvectionCoefficientAllowedAttributes = 1223503 @@ -261,6 +280,7 @@ , SpatialBoundaryConditionTypeMustBeBoundaryKindEnum = 1223605 , SpatialBoundaryConditionCoordinateBoundaryMustBeBoundary = 1223606 , SpatialBoundaryConditionBoundaryDomainTypeMustBeDomainType = 1223607 +, SpatialBoundaryConditionBoundaryDomainTypeOrCoordinateBoundary = 1223650 , SpatialGeometryAllowedCoreAttributes = 1223701 , SpatialGeometryAllowedCoreElements = 1223702 , SpatialGeometryAllowedAttributes = 1223703 @@ -278,6 +298,11 @@ , SpatialGeometryLOAdjacentDomainsAllowedCoreAttributes = 1223715 , SpatialGeometryLOGeometryDefinitionsAllowedCoreAttributes = 1223716 , SpatialGeometryLOSampledFieldsAllowedCoreAttributes = 1223717 +, SpatialGeometryLOCoordinateComponentsRequired = 1223750 +, SpatialGeometryLOCoordinateComponentsOneToThreeChildren = 1223751 +, SpatialGeometryCoordinateComponent1DisX = 1223752 +, SpatialGeometryCoordinateComponent2DisXY = 1223753 +, SpatialGeometryCoordinateComponent3DisXYZ = 1223754 , SpatialMixedGeometryAllowedCoreAttributes = 1223801 , SpatialMixedGeometryAllowedCoreElements = 1223802 , SpatialMixedGeometryAllowedElements = 1223803 @@ -285,6 +310,7 @@ , SpatialMixedGeometryLOOrdinalMappingsAllowedCoreElements = 1223805 , SpatialMixedGeometryLOGeometryDefinitionsAllowedCoreAttributes= 1223806 , SpatialMixedGeometryLOOrdinalMappingsAllowedCoreAttributes = 1223807 +, SpatialMixedGeometryChildrenNotActive = 1223850 , SpatialOrdinalMappingAllowedCoreAttributes = 1223901 , SpatialOrdinalMappingAllowedCoreElements = 1223902 , SpatialOrdinalMappingAllowedAttributes = 1223903 Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/SpatialSBMLErrorTable.h =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/SpatialSBMLErrorTable.h 2019-08-27 17:35:43 UTC (rev 26110) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/SpatialSBMLErrorTable.h 2019-08-27 21:02:53 UTC (rev 26111) @@ -225,6 +225,16 @@ } }, + // 1220650 + { SpatialLocalReactionMustDefineCompartment, + "Local spatial reactions must define compartment.", + LIBSBML_CAT_GENERAL_CONSISTENCY, + LIBSBML_SEV_ERROR, + "If the attribute 'spatial:isLocal' on a <reaction> is 'true', it must also have a defined 'compartment' attribute.", + { "L3V1 Spatial V1 Section" + } + }, + // 1220701 { SpatialDomainTypeAllowedCoreAttributes, "Core attributes allowed on <domainType>.", @@ -284,6 +294,36 @@ } }, + // 1220750 + { SpatialDomainTypeDimensionsMustMatch3DGeometry, + "Dimensions of domainType must match 3D geometry.", + LIBSBML_CAT_GENERAL_CONSISTENCY, + LIBSBML_SEV_ERROR, + "If the <geometry> of the <model> has exactly three <coordinateComponent> children, the 'spatial:spatialDimensions' attribute of a <domainType> may only have a value of '2' or '3'.", + { "L3V1 Spatial V1 Section" + } + }, + + // 1220751 + { SpatialDomainTypeDimensionsMustMatch2DGeometry, + "Dimensions of domainType must match 2D geometry.", + LIBSBML_CAT_GENERAL_CONSISTENCY, + LIBSBML_SEV_ERROR, + "If the <geometry> of the <model> has exactly two <coordinateComponent> children, the 'spatial:spatialDimensions' attribute of a <domainType> may only have a value of '1' or '2'.", + { "L3V1 Spatial V1 Section" + } + }, + + // 1220752 + { SpatialDomainTypeDimensionsMustMatch1DGeometry, + "Dimensions of domainType must match 1D geometry.", + LIBSBML_CAT_GENERAL_CONSISTENCY, + LIBSBML_SEV_ERROR, + "If the <geometry> of the <model> has exactly one <coordinateComponent> childr, the 'spatial:spatialDimensions' attribute of a <domainType> may only have a value of '0' or '1'.", + { "L3V1 Spatial V1 Section" + } + }, + // 1220801 { SpatialDomainAllowedCoreAttributes, "Core attributes allowed on <domain>.", @@ -1034,6 +1074,36 @@ } }, + // 1221650 + { SpatialSampledFieldOneSampleIn1DGeometry, + "Only one 'numSamples' attribute in 1D geometry.", + LIBSBML_CAT_GENERAL_CONSISTENCY, + LIBSBML_SEV_ERROR, + "If the <geometry> of the <model> has exactly one <coordinateComponent> child, a <sampledField> object must define the 'spatial:numSamples1' attribute, and must not define the 'spatial:numSamples2' and 'spatial:numSamples3' attributes.", + { "L3V1 Spatial V1 Section" + } + }, + + // 1221651 + { SpatialSampledFieldTwoSamplesIn2DGeometry, + "Two 'numSamples' attributes in 2D geometry.", + LIBSBML_CAT_GENERAL_CONSISTENCY, + LIBSBML_SEV_ERROR, + "If the <geometry> of the <model> has exactly two <coordinateComponent> children, a <sampledField> object must define the 'spatial:numSamples1' and 'spatial:numSamples2' attributes, and must not define the 'spatial:numSamples3' attribute.", + { "L3V1 Spatial V1 Section" + } + }, + + // 1221652 + { SpatialSampledFieldThreeSamplesIn3DGeometry, + "Three 'numSamples' attributes in 3D geometry.", + LIBSBML_CAT_GENERAL_CONSISTENCY, + LIBSBML_SEV_ERROR, + "If the <geometry> of the <model> has exactly three <coordinateComponent> children, a <sampledField> object must define the 'spatial:numSamples1', 'spatial:numSamples2', and 'spatial:numSamples3' attributes.", + { "L3V1 Spatial V1 Section" + } + }, + // 1221701 { SpatialSampledVolumeAllowedCoreAttributes, "Core attributes allowed on <sampledVolume>.", @@ -1128,6 +1198,56 @@ } }, + // 1221750 + { SpatialSampledVolumeNeedsMinWithMax, + "A 'minValue' attribute goes with the 'maxValue' attribute.", + LIBSBML_CAT_GENERAL_CONSISTENCY, + LIBSBML_SEV_ERROR, + "A <sampledVolume> with a defined 'spatial:minValue' attribute must also define the 'spatial:maxValue' attribute.", + { "L3V1 Spatial V1 Section" + } + }, + + // 1221751 + { SpatialSampledVolumeNeedsMaxWithMin, + "A 'maxValue' attribute goes with the 'minValue' attribute.", + LIBSBML_CAT_GENERAL_CONSISTENCY, + LIBSBML_SEV_ERROR, + "A <sampledVolume> with a defined 'spatial:maxValue' attribute must also define the 'spatial:minValue' attribute.", + { "L3V1 Spatial V1 Section" + } + }, + + // 1221752 + { SpatialSampledVolumeNoSampledValueWithMinMax, + "No 'sampledValue' attribute with min and max.", + LIBSBML_CAT_GENERAL_CONSISTENCY, + LIBSBML_SEV_ERROR, + "A <sampledVolume> with defined 'spatial:minValue' and 'spatial:maxValue' attributes must not define the 'spatial:sampledValue' attribute.", + { "L3V1 Spatial V1 Section" + } + }, + + // 1221753 + { SpatialSampledVolumeNoMinMaxWithSampledValue, + "No 'minValue' nor 'maxValue' attributes with 'sampledValue'.", + LIBSBML_CAT_GENERAL_CONSISTENCY, + LIBSBML_SEV_ERROR, + "A <sampledVolume> with a defined 'spatial:sampledValue' attribute may not define the 'spatial:minValue' nor the 'spatial:maxValue' attribute.", + { "L3V1 Spatial V1 Section" + } + }, + + // 1221754 + { SpatialSampledVolumeMinMaxOrSampledValue, + "SampledVolume must have 'sampledVolume' or 'minValue' and 'maxValue'.", + LIBSBML_CAT_GENERAL_CONSISTENCY, + LIBSBML_SEV_ERROR, + "A <sampledVolume> must either define its 'spatial:sampledValue' attribute or must define both the 'spatial:minValue' and 'spatial:maxValue' attributes.", + { "L3V1 Spatial V1 Section" + } + }, + // 1221801 { SpatialAnalyticGeometryAllowedCoreAttributes, "Core attributes allowed on <analyticGeometry>.", @@ -1286,6 +1406,16 @@ } }, + // 1221950 + { SpatialAnalyticVolumeOrdinalShouldBeUnique, + "The 'ordinal' attribute should be unique.", + LIBSBML_CAT_GENERAL_CONSISTENCY, + LIBSBML_SEV_WARNING, + "No <analyticVolume? should have a 'spatial:ordinal' attribute with the same value as a different <analyticVolume>.", + { "L3V1 Spatial V1 Section" + } + }, + // 1222001 { SpatialParametricGeometryAllowedCoreAttributes, "Core attributes allowed on <parametricGeometry>.", @@ -1477,9 +1607,9 @@ "Core attributes allowed on <csGeometry>.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "A <cSGeometry> object may have the optional SBML Level 3 Core attributes " + "A <csGeometry> object may have the optional SBML Level 3 Core attributes " "'metaid' and 'sboTerm'. No other attributes from the SBML Level 3 Core " - "namespaces are permitted on a <cSGeometry>.", + "namespaces are permitted on a <csGeometry>.", { "L3V1 Spatial V1 Section" } }, @@ -1489,9 +1619,9 @@ "Core elements allowed on <csGeometry>.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "A <cSGeometry> object may have the optional SBML Level 3 Core subobjects " + "A <csGeometry> object may have the optional SBML Level 3 Core subobjects " "for notes and annotations. No other elements from the SBML Level 3 Core " - "namespaces are permitted on a <cSGeometry>.", + "namespaces are permitted on a <csGeometry>.", { "L3V1 Spatial V1 Section" } }, @@ -1501,9 +1631,9 @@ "Elements allowed on <csGeometry>.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "A <cSGeometry> object may contain one and only one instance of the " + "A <csGeometry> object may contain one and only one instance of the " "<listOfCSGObjects> element. No other elements from the SBML Level 3 " - "Spatial Processes namespaces are permitted on a <cSGeometry> object. ", + "Spatial Processes namespaces are permitted on a <csGeometry> object. ", { "L3V1 Spatial V1 Section" } }, @@ -1515,7 +1645,7 @@ LIBSBML_SEV_ERROR, "Apart from the general notes and annotations subobjects permitted on all " "SBML objects, a <listOfCSGObjects> container object may only contain " - "<cSGObject> objects.", + "<csgObject> objects.", { "L3V1 Spatial V1 Section" } }, @@ -1537,9 +1667,9 @@ "Core attributes allowed on <csgObject>.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "A <cSGObject> object may have the optional SBML Level 3 Core attributes " + "A <csgObject> object may have the optional SBML Level 3 Core attributes " "'metaid' and 'sboTerm'. No other attributes from the SBML Level 3 Core " - "namespaces are permitted on a <cSGObject>.", + "namespaces are permitted on a <csgObject>.", { "L3V1 Spatial V1 Section" } }, @@ -1549,9 +1679,9 @@ "Core elements allowed on <csgObject>.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "A <cSGObject> object may have the optional SBML Level 3 Core subobjects " + "A <csgObject> object may have the optional SBML Level 3 Core subobjects " "for notes and annotations. No other elements from the SBML Level 3 Core " - "namespaces are permitted on a <cSGObject>.", + "namespaces are permitted on a <csgObject>.", { "L3V1 Spatial V1 Section" } }, @@ -1561,10 +1691,10 @@ "Attributes allowed on <csgObject>.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "A <cSGObject> object must have the required attributes 'spatial:id' and " + "A <csgObject> object must have the required attributes 'spatial:id' and " "'spatial:domainType', and may have the optional attributes 'spatial:name' " "and 'spatial:ordinal'. No other attributes from the SBML Level 3 Spatial " - "Processes namespaces are permitted on a <cSGObject> object. ", + "Processes namespaces are permitted on a <csgObject> object. ", { "L3V1 Spatial V1 Section" } }, @@ -1574,9 +1704,9 @@ "Elements allowed on <csgObject>.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "A <cSGObject> object must contain one and only one instance of the CSGNode " + "A <csgObject> object must contain one and only one instance of the CSGNode " "element. No other elements from the SBML Level 3 Spatial Processes " - "namespaces are permitted on a <cSGObject> object. ", + "namespaces are permitted on a <csgObject> object. ", { "L3V1 Spatial V1 Section" } }, @@ -1586,7 +1716,7 @@ "The attribute 'domainType' must point to DomainType object.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "The value of the attribute 'spatial:domainType' of a <cSGObject> object " + "The value of the attribute 'spatial:domainType' of a <csgObject> object " "must be the identifier of an existing <domainType> object defined in the " "enclosing <model> object.", { "L3V1 Spatial V1 Section" @@ -1598,7 +1728,7 @@ "The 'name' attribute must be String.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "The attribute 'spatial:name' on a <cSGObject> must have a value of data " + "The attribute 'spatial:name' on a <csgObject> must have a value of data " "type 'string'.", { "L3V1 Spatial V1 Section" } @@ -1609,20 +1739,30 @@ "The 'ordinal' attribute must be Integer.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "The attribute 'spatial:ordinal' on a <cSGObject> must have a value of data " + "The attribute 'spatial:ordinal' on a <csgObject> must have a value of data " "type 'integer'.", { "L3V1 Spatial V1 Section" } }, + // 1222350 + { SpatialCSGObjectOrdinalShouldBeUnique, + "The 'ordinal' attribute should be unique.", + LIBSBML_CAT_GENERAL_CONSISTENCY, + LIBSBML_SEV_WARNING, + "No <csgObject> should have a 'spatial:ordinal' attribute with the same value as a different <csgObject>.", + { "L3V1 Spatial V1 Section" + } + }, + // 1222401 { SpatialCSGNodeAllowedCoreAttributes, "Core attributes allowed on <csgNode>.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "A <cSGNode> object may have the optional SBML Level 3 Core attributes " + "A <csgNode> object may have the optional SBML Level 3 Core attributes " "'metaid' and 'sboTerm'. No other attributes from the SBML Level 3 Core " - "namespaces are permitted on a <cSGNode>.", + "namespaces are permitted on a <csgNode>.", { "L3V1 Spatial V1 Section" } }, @@ -1632,9 +1772,9 @@ "Core elements allowed on <csgNode>.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "A <cSGNode> object may have the optional SBML Level 3 Core subobjects for " + "A <csgNode> object may have the optional SBML Level 3 Core subobjects for " "notes and annotations. No other elements from the SBML Level 3 Core " - "namespaces are permitted on a <cSGNode>.", + "namespaces are permitted on a <csgNode>.", { "L3V1 Spatial V1 Section" } }, @@ -1644,9 +1784,9 @@ "Attributes allowed on <csgNode>.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "A <cSGNode> object may have the optional attributes 'spatial:id' and " + "A <csgNode> object may have the optional attributes 'spatial:id' and " "'spatial:name'. No other attributes from the SBML Level 3 Spatial " - "Processes namespaces are permitted on a <cSGNode> object. ", + "Processes namespaces are permitted on a <csgNode> object. ", { "L3V1 Spatial V1 Section" } }, @@ -1656,7 +1796,7 @@ "The 'name' attribute must be String.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "The attribute 'spatial:name' on a <cSGNode> must have a value of data type " + "The attribute 'spatial:name' on a <csgNode> must have a value of data type " "'string'.", { "L3V1 Spatial V1 Section" } @@ -1667,9 +1807,9 @@ "Core attributes allowed on <csgTransformation>.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "A <cSGTransformation> object may have the optional SBML Level 3 Core " + "A <csgTransformation> object may have the optional SBML Level 3 Core " "attributes 'metaid' and 'sboTerm'. No other attributes from the SBML Level " - "3 Core namespaces are permitted on a <cSGTransformation>.", + "3 Core namespaces are permitted on a <csgTransformation>.", { "L3V1 Spatial V1 Section" } }, @@ -1679,9 +1819,9 @@ "Core elements allowed on <csgTransformation>.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "A <cSGTransformation> object may have the optional SBML Level 3 Core " + "A <csgTransformation> object may have the optional SBML Level 3 Core " "subobjects for notes and annotations. No other elements from the SBML " - "Level 3 Core namespaces are permitted on a <cSGTransformation>.", + "Level 3 Core namespaces are permitted on a <csgTransformation>.", { "L3V1 Spatial V1 Section" } }, @@ -1691,9 +1831,9 @@ "Elements allowed on <csgTransformation>.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "A <cSGTransformation> object may contain one and only one instance of the " + "A <csgTransformation> object may contain one and only one instance of the " "CSGNode element. No other elements from the SBML Level 3 Spatial Processes " - "namespaces are permitted on a <cSGTransformation> object. ", + "namespaces are permitted on a <csgTransformation> object. ", { "L3V1 Spatial V1 Section" } }, @@ -1703,9 +1843,9 @@ "Core attributes allowed on <csgTranslation>.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "A <cSGTranslation> object may have the optional SBML Level 3 Core " + "A <csgTranslation> object may have the optional SBML Level 3 Core " "attributes 'metaid' and 'sboTerm'. No other attributes from the SBML Level " - "3 Core namespaces are permitted on a <cSGTranslation>.", + "3 Core namespaces are permitted on a <csgTranslation>.", { "L3V1 Spatial V1 Section" } }, @@ -1715,9 +1855,9 @@ "Core elements allowed on <csgTranslation>.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "A <cSGTranslation> object may have the optional SBML Level 3 Core " + "A <csgTranslation> object may have the optional SBML Level 3 Core " "subobjects for notes and annotations. No other elements from the SBML " - "Level 3 Core namespaces are permitted on a <cSGTranslation>.", + "Level 3 Core namespaces are permitted on a <csgTranslation>.", { "L3V1 Spatial V1 Section" } }, @@ -1727,11 +1867,11 @@ "Attributes allowed on <csgTranslation>.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "A <cSGTranslation> object must have the required attribute " + "A <csgTranslation> object must have the required attribute " "'spatial:translateX', and may have the optional attributes " "'spatial:translateY' and 'spatial:translateZ'. No other attributes from " "the SBML Level 3 Spatial Processes namespaces are permitted on a " - "<cSGTranslation> object. ", + "<csgTranslation> object. ", { "L3V1 Spatial V1 Section" } }, @@ -1741,7 +1881,7 @@ "The 'translateX' attribute must be Double.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "The attribute 'spatial:translateX' on a <cSGTranslation> must have a value " + "The attribute 'spatial:translateX' on a <csgTranslation> must have a value " "of data type 'double'.", { "L3V1 Spatial V1 Section" } @@ -1752,7 +1892,7 @@ "The 'translateY' attribute must be Double.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "The attribute 'spatial:translateY' on a <cSGTranslation> must have a value " + "The attribute 'spatial:translateY' on a <csgTranslation> must have a value " "of data type 'double'.", { "L3V1 Spatial V1 Section" } @@ -1763,7 +1903,7 @@ "The 'translateZ' attribute must be Double.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "The attribute 'spatial:translateZ' on a <cSGTranslation> must have a value " + "The attribute 'spatial:translateZ' on a <csgTranslation> must have a value " "of data type 'double'.", { "L3V1 Spatial V1 Section" } @@ -1774,9 +1914,9 @@ "Core attributes allowed on <csgRotation>.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "A <cSGRotation> object may have the optional SBML Level 3 Core attributes " + "A <csgRotation> object may have the optional SBML Level 3 Core attributes " "'metaid' and 'sboTerm'. No other attributes from the SBML Level 3 Core " - "namespaces are permitted on a <cSGRotation>.", + "namespaces are permitted on a <csgRotation>.", { "L3V1 Spatial V1 Section" } }, @@ -1786,9 +1926,9 @@ "Core elements allowed on <csgRotation>.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "A <cSGRotation> object may have the optional SBML Level 3 Core subobjects " + "A <csgRotation> object may have the optional SBML Level 3 Core subobjects " "for notes and annotations. No other elements from the SBML Level 3 Core " - "namespaces are permitted on a <cSGRotation>.", + "namespaces are permitted on a <csgRotation>.", { "L3V1 Spatial V1 Section" } }, @@ -1798,10 +1938,10 @@ "Attributes allowed on <csgRotation>.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "A <cSGRotation> object must have the required attributes 'spatial:rotateX' " + "A <csgRotation> object must have the required attributes 'spatial:rotateX' " "and 'spatial:rotateAngleInRadians', and may have the optional attributes " "'spatial:rotateY' and 'spatial:rotateZ'. No other attributes from the SBML " - "Level 3 Spatial Processes namespaces are permitted on a <cSGRotation> " + "Level 3 Spatial Processes namespaces are permitted on a <csgRotation> " "object. ", { "L3V1 Spatial V1 Section" } @@ -1812,7 +1952,7 @@ "The 'rotateX' attribute must be Double.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "The attribute 'spatial:rotateX' on a <cSGRotation> must have a value of " + "The attribute 'spatial:rotateX' on a <csgRotation> must have a value of " "data type 'double'.", { "L3V1 Spatial V1 Section" } @@ -1823,7 +1963,7 @@ "The 'rotateAngleInRadians' attribute must be Double.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "The attribute 'spatial:rotateAngleInRadians' on a <cSGRotation> must have " + "The attribute 'spatial:rotateAngleInRadians' on a <csgRotation> must have " "a value of data type 'double'.", { "L3V1 Spatial V1 Section" } @@ -1834,7 +1974,7 @@ "The 'rotateY' attribute must be Double.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "The attribute 'spatial:rotateY' on a <cSGRotation> must have a value of " + "The attribute 'spatial:rotateY' on a <csgRotation> must have a value of " "data type 'double'.", { "L3V1 Spatial V1 Section" } @@ -1845,7 +1985,7 @@ "The 'rotateZ' attribute must be Double.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "The attribute 'spatial:rotateZ' on a <cSGRotation> must have a value of " + "The attribute 'spatial:rotateZ' on a <csgRotation> must have a value of " "data type 'double'.", { "L3V1 Spatial V1 Section" } @@ -1856,9 +1996,9 @@ "Core attributes allowed on <csgScale>.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "A <cSGScale> object may have the optional SBML Level 3 Core attributes " + "A <csgScale> object may have the optional SBML Level 3 Core attributes " "'metaid' and 'sboTerm'. No other attributes from the SBML Level 3 Core " - "namespaces are permitted on a <cSGScale>.", + "namespaces are permitted on a <csgScale>.", { "L3V1 Spatial V1 Section" } }, @@ -1868,9 +2008,9 @@ "Core elements allowed on <csgScale>.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "A <cSGScale> object may have the optional SBML Level 3 Core subobjects for " + "A <csgScale> object may have the optional SBML Level 3 Core subobjects for " "notes and annotations. No other elements from the SBML Level 3 Core " - "namespaces are permitted on a <cSGScale>.", + "namespaces are permitted on a <csgScale>.", { "L3V1 Spatial V1 Section" } }, @@ -1880,10 +2020,10 @@ "Attributes allowed on <csgScale>.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "A <cSGScale> object must have the required attribute 'spatial:scaleX', and " + "A <csgScale> object must have the required attribute 'spatial:scaleX', and " "may have the optional attributes 'spatial:scaleY' and 'spatial:scaleZ'. No " "other attributes from the SBML Level 3 Spatial Processes namespaces are " - "permitted on a <cSGScale> object. ", + "permitted on a <csgScale> object. ", { "L3V1 Spatial V1 Section" } }, @@ -1893,7 +2033,7 @@ "The 'scaleX' attribute must be Double.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "The attribute 'spatial:scaleX' on a <cSGScale> must have a value of data " + "The attribute 'spatial:scaleX' on a <csgScale> must have a value of data " "type 'double'.", { "L3V1 Spatial V1 Section" } @@ -1904,7 +2044,7 @@ "The 'scaleY' attribute must be Double.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "The attribute 'spatial:scaleY' on a <cSGScale> must have a value of data " + "The attribute 'spatial:scaleY' on a <csgScale> must have a value of data " "type 'double'.", { "L3V1 Spatial V1 Section" } @@ -1915,7 +2055,7 @@ "The 'scaleZ' attribute must be Double.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "The attribute 'spatial:scaleZ' on a <cSGScale> must have a value of data " + "The attribute 'spatial:scaleZ' on a <csgScale> must have a value of data " "type 'double'.", { "L3V1 Spatial V1 Section" } @@ -1926,10 +2066,10 @@ "Core attributes allowed on <csgHomogeneousTransformation>.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "A <cSGHomogeneousTransformation> object may have the optional SBML Level 3 " + "A <csgHomogeneousTransformation> object may have the optional SBML Level 3 " "Core attributes 'metaid' and 'sboTerm'. No other attributes from the SBML " "Level 3 Core namespaces are permitted on a " - "<cSGHomogeneousTransformation>.", + "<csgHomogeneousTransformation>.", { "L3V1 Spatial V1 Section" } }, @@ -1939,10 +2079,10 @@ "Core elements allowed on <csgHomogeneousTransformation>.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "A <cSGHomogeneousTransformation> object may have the optional SBML Level 3 " + "A <csgHomogeneousTransformation> object may have the optional SBML Level 3 " "Core subobjects for notes and annotations. No other elements from the SBML " "Level 3 Core namespaces are permitted on a " - "<cSGHomogeneousTransformation>.", + "<csgHomogeneousTransformation>.", { "L3V1 Spatial V1 Section" } }, @@ -1952,10 +2092,10 @@ "Elements allowed on <csgHomogeneousTransformation>.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "A <cSGHomogeneousTransformation> object must contain one and only one " + "A <csgHomogeneousTransformation> object must contain one and only one " "instance of the TransformationComponent element. No other elements from " "the SBML Level 3 Spatial Processes namespaces are permitted on a " - "<cSGHomogeneousTransformation> object. ", + "<csgHomogeneousTransformation> object. ", { "L3V1 Spatial V1 Section" } }, @@ -2025,9 +2165,9 @@ "Core attributes allowed on <csgPrimitive>.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "A <cSGPrimitive> object may have the optional SBML Level 3 Core attributes " + "A <csgPrimitive> object may have the optional SBML Level 3 Core attributes " "'metaid' and 'sboTerm'. No other attributes from the SBML Level 3 Core " - "namespaces are permitted on a <cSGPrimitive>.", + "namespaces are permitted on a <csgPrimitive>.", { "L3V1 Spatial V1 Section" } }, @@ -2037,9 +2177,9 @@ "Core elements allowed on <csgPrimitive>.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "A <cSGPrimitive> object may have the optional SBML Level 3 Core subobjects " + "A <csgPrimitive> object may have the optional SBML Level 3 Core subobjects " "for notes and annotations. No other elements from the SBML Level 3 Core " - "namespaces are permitted on a <cSGPrimitive>.", + "namespaces are permitted on a <csgPrimitive>.", { "L3V1 Spatial V1 Section" } }, @@ -2049,9 +2189,9 @@ "Attributes allowed on <csgPrimitive>.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "A <cSGPrimitive> object must have the required attribute " + "A <csgPrimitive> object must have the required attribute " "'spatial:primitiveType'. No other attributes from the SBML Level 3 Spatial " - "Processes namespaces are permitted on a <cSGPrimitive> object. ", + "Processes namespaces are permitted on a <csgPrimitive> object. ", { "L3V1 Spatial V1 Section" } }, @@ -2061,7 +2201,7 @@ "The 'primitiveType' attribute must be PrimitiveKindEnum.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "The value of the attribute 'spatial:primitiveType' of a <cSGPrimitive> " + "The value of the attribute 'spatial:primitiveType' of a <csgPrimitive> " "object must conform to the syntax of SBML data type 'PrimitiveKind' and " "may only take on the allowed values of 'PrimitiveKind' defined in SBML; " "that is, the value must be one of the following: 'sphere', 'cube', " @@ -2075,9 +2215,9 @@ "Core attributes allowed on <csgSetOperator>.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "A <cSGSetOperator> object may have the optional SBML Level 3 Core " + "A <csgSetOperator> object may have the optional SBML Level 3 Core " "attributes 'metaid' and 'sboTerm'. No other attributes from the SBML Level " - "3 Core namespaces are permitted on a <cSGSetOperator>.", + "3 Core namespaces are permitted on a <csgSetOperator>.", { "L3V1 Spatial V1 Section" } }, @@ -2087,9 +2227,9 @@ "Core elements allowed on <csgSetOperator>.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "A <cSGSetOperator> object may have the optional SBML Level 3 Core " + "A <csgSetOperator> object may have the optional SBML Level 3 Core " "subobjects for notes and annotations. No other elements from the SBML " - "Level 3 Core namespaces are permitted on a <cSGSetOperator>.", + "Level 3 Core namespaces are permitted on a <csgSetOperator>.", { "L3V1 Spatial V1 Section" } }, @@ -2099,11 +2239,11 @@ "Attributes allowed on <csgSetOperator>.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "A <cSGSetOperator> object must have the required attribute " + "A <csgSetOperator> object must have the required attribute " "'spatial:operationType', and may have the optional attributes " "'spatial:complementA' and 'spatial:complementB'. No other attributes from " "the SBML Level 3 Spatial Processes namespaces are permitted on a " - "<cSGSetOperator> object. ", + "<csgSetOperator> object. ", { "L3V1 Spatial V1 Section" } }, @@ -2113,9 +2253,9 @@ "Elements allowed on <csgSetOperator>.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "A <cSGSetOperator> object may contain one and only one instance of the " + "A <csgSetOperator> object may contain one and only one instance of the " "<listOfCSGNodes> element. No other elements from the SBML Level 3 Spatial " - "Processes namespaces are permitted on a <cSGSetOperator> object. ", + "Processes namespaces are permitted on a <csgSetOperator> object. ", { "L3V1 Spatial V1 Section" } }, @@ -2125,7 +2265,7 @@ "The 'operationType' attribute must be SetOperationEnum.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "The value of the attribute 'spatial:operationType' of a <cSGSetOperator> " + "The value of the attribute 'spatial:operationType' of a <csgSetOperator> " "object must conform to the syntax of SBML data type 'SetOperation' and may " "only take on the allowed values of 'SetOperation' defined in SBML; that " "is, the value must be one of the following: 'union', 'intersection' or " @@ -2139,8 +2279,8 @@ "The attribute 'complementA' must point to CSGNode object.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "The value of the attribute 'spatial:complementA' of a <cSGSetOperator> " - "object must be the identifier of an existing <cSGNode> object defined in " + "The value of the attribute 'spatial:complementA' of a <csgSetOperator> " + "object must be the identifier of an existing <csgNode> object defined in " "the enclosing <model> object.", { "L3V1 Spatial V1 Section" } @@ -2151,8 +2291,8 @@ "The attribute 'complementB' must point to CSGNode object.", LIBSBML_CAT_GENERAL_CONSISTENCY, LIBSBML_SEV_ERROR, - "The value of the attribute 'spatial:complementB' of a <cSGSetOperator> " - "object must be the identifier of an existing <cSGNode> object defined in " + "The value of the attribute 'spatial:complementB' of a <csgSetOperator> " + "object must be the identifier of an existing <csgNode> object defined in " "the enclosing <model> object.", { "L3V1 Spatial V1 Section" } @@ -2165,7 +2305,7 @@ LIBSBML_SEV_ERROR, "Apart from the general notes and annotations subobjects permitted on all " "SBML objects, a <listOfCSGNodes> container object may only contain " - "<cSGNode> objects.", + "<csgNode> objects.", { "L3V1 Spatial V1 Section" } }, @@ -2182,6 +2322,26 @@ } }, + // 1223250 + { SpatialCSGSetOperatorTwoComponentsForDifference, + "Need two components for 'difference' type.", + LIBSBML_CAT_GENERAL_CONSISTENCY, + LIBSBML_SEV_ERROR, + "If the 'spatial:operationType' attribute of a <csgSetOperator> has the value 'difference', it must also define the 'spatial:componentA' and 'spatial:componentB' attributes.", + { "L3V1 Spatial V1 Section" + } + }, + + // 1223251 + { SpatialCSGSetOperatorNoComponentsUnionIntersection, + "No components for 'union' or 'intersection' types.", + LIBSBML_CAT_GENERAL_CONSISTENCY, + LIBSBML_SEV_ERROR, + "If the 'spatial:operationType' attribute of a <csgSetOperator> has the value 'union' or 'intersection', it must not define the 'spatial:componentA' nor the 'spatial:componentB' attributes", + { "L3V1 Spatial V1 Section" + } + }, + // 1223301 { SpatialSpatialSymbolReferenceAllowedCoreAttributes, "Core attributes allowed on <spatialSymbolReference>.", @@ -2323,6 +2483,36 @@ } }, + // 1223450 + { SpatialDiffusionCoefficientNoCoordinateReferencesForIsotropic, + "No coordinate references for 'isotropic' type.", + LIBSBML_CAT_GENERAL_CONSISTENCY, + LIBSBML_SEV_ERROR, + "A <diffusionCoefficient> with an attribute 'type' with the value 'isotropic' may not define the 'spatial:coordinateReference1' nor 'spatial:coordinateReference2' attributes.", + { "L3V1 Spatial V1 Section" + } + }, + + // 1223451 + { SpatialDiffusionCoefficientTwoCoordinateReferencesForTensor, + "Two coordinate references for 'tensor' type.", + LIBSBML_CAT_GENERAL_CONSISTENCY, + LIBSBML_SEV_ERROR, + "A <diffusionCoefficient> with an attribute 'type' with the value 'tensor' must define the 'spatial:coordinateReference1' and 'spatial:coordinateReference2' attributes.", + { "L3V1 Spatial V1 Section" + } + }, + + // 1223452 + { SpatialDiffusionCoefficientOneCoordinateReferencesForAnisotropic, + "One coordinate references for 'anisotropic' type.", + LIBSBML_CAT_GENERAL_CONSISTENCY, + LIBSBML_SEV_ERROR, + "A <diffusionCoefficient> with an attribute 'type' with the value 'anisotropic\x94 must define the 'spatial:coordinateReference1' attribute, and must not define the 'spatial:coordinateReference2' attribute.", + { "L3V1 Spatial V1 Section" + } + }, + // 1223501 { SpatialAdvectionCoefficientAllowedCoreAttributes, "Core attributes allowed on <advectionCoefficient>.", @@ -2475,6 +2665,16 @@ } }, + // 1223650 + { SpatialBoundaryConditionBoundaryDomainTypeOrCoordinateBoundary, + "A BoundaryCondition must have 'boundaryDomainType' or 'coordinateBoundary' attribute.", + LIBSBML_CAT_GENERAL_CONSISTENCY, + LIBSBML_SEV_ERROR, + "A <boundaryCondition> must have a defined 'spatial:coordinateBoundary' or 'spatial:boundaryDomainType' attribute, but may not define both.", + { "L3V1 Spatial V1 Section" + } + }, + // 1223701 { SpatialGeometryAllowedCoreAttributes, "Core attributes allowed on <geometry>.", @@ -2685,6 +2885,56 @@ } }, + // 1223750 + { SpatialGeometryLOCoordinateComponentsRequired, + "A <geometry> must have a <listOfCoordinateComponents>.", + LIBSBML_CAT_GENERAL_CONSISTENCY, + LIBSBML_SEV_ERROR, + "A <geometry> must have a child <listOfCoordinateComponents> object.", + { "L3V1 Spatial V1 Section" + } + }, + + // 1223751 + { SpatialGeometryLOCoordinateComponentsOneToThreeChildren, + "A <listOfCoordinateComponents> must have one to three children.", + LIBSBML_CAT_GENERAL_CONSISTENCY, + LIBSBML_SEV_ERROR, + "A <listOfCoordinateComponents> must have exactly one, two, or three children.", + { "L3V1 Spatial V1 Section" + } + }, + + // 1223752 + { SpatialGeometryCoordinateComponent1DisX, + "Solitary <coordinateComponents> must be 'cartesianX'.", + LIBSBML_CAT_GENERAL_CONSISTENCY, + LIBSBML_SEV_ERROR, + "If a <listOfCoordinateComponents> object has exactly one <coordinateComponents> child, that child must have a 'spatial:type' with the value 'cartesianX'.", + { "L3V1 Spatial V1 Section" + } + }, + + // 1223753 + { SpatialGeometryCoordinateComponent2DisXY, + "Paired <coordinateComponents> must be 'cartesianX' and 'cartesianY'.", + LIBSBML_CAT_GENERAL_CONSISTENCY, + LIBSBML_SEV_ERROR, + "If a <listOfCoordinateComponents> object has exactly two <coordinateComponents> children, one of them must have a 'spatial:type' with the value 'cartesianX', and the other must have a 'spatial:type' with the value 'cartesianY'.", + { "L3V1 Spatial V1 Section" + } + }, + + // 1223754 + { SpatialGeometryCoordinateComponent3DisXYZ, + "Three <coordinateComponents> must be cartesian X, Y, and Z.", + LIBSBML_CAT_GENERAL_CONSISTENCY, + LIBSBML_SEV_ERROR, + "If a <listOfCoordinateComponents> object has exactly three <coordinateComponents> children, one of them must have a 'spatial:type' with the value 'cartesianX', one must have a 'spatial:type' with the value 'cartesianY', and one must have a 'spatial:type' with the value 'cartesianZ'", + { "L3V1 Spatial V1 Section" + } + }, + // 1223801 { SpatialMixedGeometryAllowedCoreAttributes, "Core attributes allowed on <mixedGeometry>.", @@ -2771,6 +3021,16 @@ } }, + // 1223850 + { SpatialMixedGeometryChildrenNotActive, + "Mixed geometry children are not active.", + LIBSBML_CAT_GENERAL_CONSISTENCY, + LIBSBML_SEV_ERROR, + "Every <geometryDefinition> child of a <mixedGeometry> must have a 'spatial:isActive' attribute with a value of 'false'.", + { "L3V1 Spatial V1 Section" + } + }, + // 1223901 { SpatialOrdinalMappingAllowedCoreAttributes, "Core attributes allowed on <ordinalMapping>.", |
From: <luc...@us...> - 2019-08-27 17:35:49
|
Revision: 26110 http://sourceforge.net/p/sbml/code/26110 Author: luciansmith Date: 2019-08-27 17:35:43 +0000 (Tue, 27 Aug 2019) Log Message: ----------- Fix the 'changed' tag to it doesn't do odd things to the spacing. Modified Paths: -------------- trunk/specifications/sbml-level-3/version-1/spatial/specification/apdx-validation.tex Modified: trunk/specifications/sbml-level-3/version-1/spatial/specification/apdx-validation.tex =================================================================== --- trunk/specifications/sbml-level-3/version-1/spatial/specification/apdx-validation.tex 2019-08-27 13:35:56 UTC (rev 26109) +++ trunk/specifications/sbml-level-3/version-1/spatial/specification/apdx-validation.tex 2019-08-27 17:35:43 UTC (rev 26110) @@ -165,7 +165,7 @@ SBML Level~3 Specification for Spatial Processes, Version~1, \sec{extended-reaction-class}.)} -\changed{\validRule{spatial-20650}{If the attribute \token{spatial:\-isLocal} on a \Reaction is \val{true}, it must also have a defined \token{com\-part\-ment} attribute. +\validRule{spatial-20650}{\changed{If the attribute \token{spatial:\-isLocal} on a \Reaction is \val{true}, it must also have a defined \token{com\-part\-ment} attribute. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{extended-reaction-class}.)}} \subsubsection*{Rules for \class{DomainType} object} @@ -198,13 +198,13 @@ SBML Level~3 Specification for Spatial Processes, Version~1, \sec{domaintype-class}.)} -\changed{\validRule{spatial-20750}{If the \Geometry of the \Model has exactly three \CoordinateComponent children, the \token{spa\-tial:\-spa\-tial\-Di\-men\-sions} attribute of a \DomainType may only have a value of \val{2} or \val{3}. +\validRule{spatial-20750}{\changed{If the \Geometry of the \Model has exactly three \CoordinateComponent children, the \token{spa\-tial:\-spa\-tial\-Di\-men\-sions} attribute of a \DomainType may only have a value of \val{2} or \val{3}. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{domaintype-class}.)}} -\changed{\validRule{spatial-20751}{If the \Geometry of the \Model has exactly two \CoordinateComponent children, the \token{spa\-tial:\-spa\-tial\-Di\-men\-sions} attribute of a \DomainType may only have a value of \val{1} or \val{2}. +\validRule{spatial-20751}{\changed{If the \Geometry of the \Model has exactly two \CoordinateComponent children, the \token{spa\-tial:\-spa\-tial\-Di\-men\-sions} attribute of a \DomainType may only have a value of \val{1} or \val{2}. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{domaintype-class}.)}} -\changed{\validRule{spatial-20752}{If the \Geometry of the \Model has exactly one \CoordinateComponent child, the \token{spa\-tial:\-spa\-tial\-Di\-men\-sions} attribute of a \DomainType may only have a value of \val{0} or \val{1}. +\validRule{spatial-20752}{\changed{If the \Geometry of the \Model has exactly one \CoordinateComponent child, the \token{spa\-tial:\-spa\-tial\-Di\-men\-sions} attribute of a \DomainType may only have a value of \val{0} or \val{1}. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{domaintype-class}.)}} \subsubsection*{Rules for \class{Domain} object} @@ -614,13 +614,13 @@ of data type \token{in\-te\-ger}. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{sampledfield-class}.)} -\changed{\validRule{spatial-21650}{If the \Geometry of the \Model has exactly one \CoordinateComponent child, a \SampledField object must define the \token{spa\-tial:\-numSamples1} attribute, and must not define the \token{spa\-tial:\-numSamples2} and \token{spa\-tial:\-numSamples3} attributes. +\validRule{spatial-21650}{\changed{If the \Geometry of the \Model has exactly one \CoordinateComponent child, a \SampledField object must define the \token{spa\-tial:\-numSamples1} attribute, and must not define the \token{spa\-tial:\-numSamples2} and \token{spa\-tial:\-numSamples3} attributes. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{sampledfield-class}.)}} -\changed{\validRule{spatial-21651}{If the \Geometry of the \Model has exactly two \CoordinateComponent children, a \SampledField object must define the \token{spa\-tial:\-numSamples1} and \token{spa\-tial:\-numSamples2} attributes, and must not define the \token{spa\-tial:\-numSamples3} attribute. +\validRule{spatial-21651}{\changed{If the \Geometry of the \Model has exactly two \CoordinateComponent children, a \SampledField object must define the \token{spa\-tial:\-numSamples1} and \token{spa\-tial:\-numSamples2} attributes, and must not define the \token{spa\-tial:\-numSamples3} attribute. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{sampledfield-class}.)}} -\changed{\validRule{spatial-21652}{If the \Geometry of the \Model has exactly three \CoordinateComponent children, a \SampledField object must define the \token{spa\-tial:\-numSamples1}, \token{spa\-tial:\-numSamples2}, and \token{spa\-tial:\-numSamples3} attributes. +\validRule{spatial-21652}{\changed{If the \Geometry of the \Model has exactly three \CoordinateComponent children, a \SampledField object must define the \token{spa\-tial:\-numSamples1}, \token{spa\-tial:\-numSamples2}, and \token{spa\-tial:\-numSamples3} attributes. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{sampledfield-class}.)}} \subsubsection*{Rules for \class{SampledVolume} object} @@ -671,19 +671,19 @@ (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{sampledvolume-class}.)} -\changed{\validRule{spatial-21750}{A \SampledVolume with a defined \token{spa\-tial:\-minValue} attribute must also define the \token{spa\-tial:\-maxValue} attribute. +\validRule{spatial-21750}{\changed{A \SampledVolume with a defined \token{spa\-tial:\-minValue} attribute must also define the \token{spa\-tial:\-maxValue} attribute. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{sampledvolume-class}.)}} -\changed{\validRule{spatial-21751}{A \SampledVolume with a defined \token{spa\-tial:\-maxValue} attribute must also define the \token{spa\-tial:\-minValue} attribute. +\validRule{spatial-21751}{\changed{A \SampledVolume with a defined \token{spa\-tial:\-maxValue} attribute must also define the \token{spa\-tial:\-minValue} attribute. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{sampledvolume-class}.)}} -\changed{\validRule{spatial-21752}{A \SampledVolume with defined \token{spa\-tial:\-minValue} and \token{spa\-tial:\-maxValue} attributes must not define the \token{spa\-tial:\-sam\-pled\-Value} attribute. +\validRule{spatial-21752}{\changed{A \SampledVolume with defined \token{spa\-tial:\-minValue} and \token{spa\-tial:\-maxValue} attributes must not define the \token{spa\-tial:\-sam\-pled\-Value} attribute. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{sampledvolume-class}.)}} -\changed{\validRule{spatial-21753}{A \SampledVolume with a defined \token{spa\-tial:\-sampledValue} attribute may not define the \token{spa\-tial:\-minValue} nor the \token{spa\-tial:\-maxValue} attribute. +\validRule{spatial-21753}{\changed{A \SampledVolume with a defined \token{spa\-tial:\-sampledValue} attribute may not define the \token{spa\-tial:\-minValue} nor the \token{spa\-tial:\-maxValue} attribute. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{sampledvolume-class}.)}} -\changed{\validRule{spatial-21754}{A \SampledVolume must either define its \token{spa\-tial:\-sampledValue} attribute or must define both the \token{spa\-tial:\-minValue} and \token{spa\-tial:\-maxValue} attributes. +\validRule{spatial-21754}{\changed{A \SampledVolume must either define its \token{spa\-tial:\-sampledValue} attribute or must define both the \token{spa\-tial:\-minValue} and \token{spa\-tial:\-maxValue} attributes. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{sampledvolume-class}.)}} @@ -774,7 +774,7 @@ (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{analyticvolume-class}.)} -\changed{\consistencyRule{spatial-21950}{No \AnalyticVolume should have a \token{spa\-tial:\-ordinal} attribute with the same value as a different \AnalyticVolume. +\consistencyRule{spatial-21950}{\changed{No \AnalyticVolume should have a \token{spa\-tial:\-ordinal} attribute with the same value as a different \AnalyticVolume. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{analyticvolume-class}.)}} \subsubsection*{Rules for \class{ParametricGeometry} object} @@ -960,7 +960,7 @@ SBML Level~3 Specification for Spatial Processes, Version~1, \sec{csgobject-class}.)} -\changed{\consistencyRule{spatial-22350}{No \CSGObject should have an \token{spa\-tial:\-ordinal} attribute with the same value as a different \CSGObject. +\consistencyRule{spatial-22350}{\changed{No \CSGObject should have an \token{spa\-tial:\-ordinal} attribute with the same value as a different \CSGObject. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{csgobject-class}.)}} \subsubsection*{Rules for \class{CSGNode} object} @@ -1267,10 +1267,10 @@ a \ListOfCSGNodes object. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{listofcsgnodes-class}.)} -\changed{\validRule{spatial-23250}{If the \token{spa\-tial:\-operationType} attribute of a \CSGSetOperator has the value \val{difference}, it must also define the \token{spa\-tial:\-componentA} and \token{spa\-tial:\-componentB} attributes. +\validRule{spatial-23250}{\changed{If the \token{spa\-tial:\-operationType} attribute of a \CSGSetOperator has the value \val{difference}, it must also define the \token{spa\-tial:\-componentA} and \token{spa\-tial:\-componentB} attributes. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{csgsetoperator-class}.)}} -\changed{\validRule{spatial-23251}{If the \token{spa\-tial:\-operationType} attribute of a \CSGSetOperator has the value \val{union} or \val{in\-ter\-sec\-tion}, it must not define the \token{spa\-tial:\-componentA} nor the \token{spa\-tial:\-componentB} attributes. +\validRule{spatial-23251}{\changed{If the \token{spa\-tial:\-operationType} attribute of a \CSGSetOperator has the value \val{union} or \val{in\-ter\-sec\-tion}, it must not define the \token{spa\-tial:\-componentA} nor the \token{spa\-tial:\-componentB} attributes. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{csgsetoperator-class}.)}} \subsubsection*{Rules for \class{SpatialSymbolReference} object} @@ -1356,13 +1356,13 @@ \val{cartesianZ}. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{diffusioncoefficient-class}.)} -\changed{\validRule{spatial-23450}{A \DiffusionCoefficient with an attribute \token{spa\-tial:\-type} with the value \val{isotropic} may not define the \token{spa\-tial:\-co\-or\-di\-nate\-Re\-fer\-ence1} nor \token{spa\-tial:\-coordinateReference2} at\-trib\-utes. +\validRule{spatial-23450}{\changed{A \DiffusionCoefficient with an attribute \token{spa\-tial:\-type} with the value \val{isotropic} may not define the \token{spa\-tial:\-co\-or\-di\-nate\-Re\-fer\-ence1} nor \token{spa\-tial:\-coordinateReference2} at\-trib\-utes. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{diffusioncoefficient-class}.)}} -\changed{\validRule{spatial-23451}{A \DiffusionCoefficient with an attribute \token{spa\-tial:\-type} with the value \val{tensor} must define the \token{spa\-tial:\-co\-or\-di\-nate\-Reference1} and \token{spa\-tial:\-coordinateReference2} attributes. +\validRule{spatial-23451}{\changed{A \DiffusionCoefficient with an attribute \token{spa\-tial:\-type} with the value \val{tensor} must define the \token{spa\-tial:\-co\-or\-di\-nate\-Reference1} and \token{spa\-tial:\-coordinateReference2} attributes. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{diffusioncoefficient-class}.)}} -\changed{\validRule{spatial-23452}{A \DiffusionCoefficient with an attribute \token{spa\-tial:\-type} with the value \val{anisotropic} must define the \token{spa\-tial:\-coordinateReference1} attribute, and must not define the \token{spa\-tial:\-coordinateReference2} attribute. +\validRule{spatial-23452}{\changed{A \DiffusionCoefficient with an attribute \token{spa\-tial:\-type} with the value \val{anisotropic} must define the \token{spa\-tial:\-coordinateReference1} attribute, and must not define the \token{spa\-tial:\-coordinateReference2} attribute. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{diffusioncoefficient-class}.)}} \subsubsection*{Rules for \class{AdvectionCoefficient} object} @@ -1450,7 +1450,7 @@ enclosing \Model object. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{boundarycondition-class}.)} -\changed{\validRule{spatial-23650}{A \BoundaryCondition must have a defined \token{spa\-tial:\-coordinateBoundary} or \token{spa\-tial:\-boun\-da\-ry\-Do\-main\-Type} attribute, but may not define both. +\validRule{spatial-23650}{\changed{A \BoundaryCondition must have a defined \token{spa\-tial:\-coordinateBoundary} or \token{spa\-tial:\-boun\-da\-ry\-Do\-main\-Type} attribute, but may not define both. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{diffusioncoefficient-class}.)}} \subsubsection*{Rules for \class{Geometry} object} @@ -1565,19 +1565,19 @@ SBML Level~3 Specification for Spatial Processes, Version~1, \sec{listofsampledfields-class}.)} -\changed{\validRule{spatial-23750}{A \Geometry must have a child \ListOfCoordinateComponents object. +\validRule{spatial-23750}{\changed{A \Geometry must have a child \ListOfCoordinateComponents object. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{listofcoordinatecomponents-class}.)}} -\changed{\validRule{spatial-23751}{A \ListOfCoordinateComponents must have exactly one, two, or three children. +\validRule{spatial-23751}{\changed{A \ListOfCoordinateComponents must have exactly one, two, or three children. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{listofcoordinatecomponents-class}.)}} -\changed{\validRule{spatial-23752}{If a \ListOfCoordinateComponents object has exactly one \CoordinateComponents child, that child must have a \token{spa\-tial:\-type} with the value \val{cartesianX}. +\validRule{spatial-23752}{\changed{If a \ListOfCoordinateComponents object has exactly one \CoordinateComponents child, that child must have a \token{spa\-tial:\-type} with the value \val{cartesianX}. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{listofcoordinatecomponents-class}.)}} -\changed{\validRule{spatial-23753}{If a \ListOfCoordinateComponents object has exactly two \CoordinateComponents children, one of them must have a \token{spa\-tial:\-type} with the value \val{cartesianX}, and the other must have a \token{spa\-tial:\-type} with the value \val{cartesianY}. +\validRule{spatial-23753}{\changed{If a \ListOfCoordinateComponents object has exactly two \CoordinateComponents children, one of them must have a \token{spa\-tial:\-type} with the value \val{cartesianX}, and the other must have a \token{spa\-tial:\-type} with the value \val{cartesianY}. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{listofcoordinatecomponents-class}.)}} -\changed{\validRule{spatial-23754}{If a \ListOfCoordinateComponents object has exactly three \CoordinateComponents children, one of them must have a \token{spa\-tial:\-type} with the value \val{cartesianX}, one must have a \token{spa\-tial:\-type} with the value \val{cartesianY}, and one must have a \token{spa\-tial:\-type} with the value \val{cartesianZ}. +\validRule{spatial-23754}{\changed{If a \ListOfCoordinateComponents object has exactly three \CoordinateComponents children, one of them must have a \token{spa\-tial:\-type} with the value \val{cartesianX}, one must have a \token{spa\-tial:\-type} with the value \val{cartesianY}, and one must have a \token{spa\-tial:\-type} with the value \val{cartesianZ}. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{listofcoordinatecomponents-class}.)}} \subsubsection*{Rules for \class{MixedGeometry} object} @@ -1626,7 +1626,7 @@ SBML Level~3 Specification for Spatial Processes, Version~1, \sec{listofordinalmappings-class}.)} -\changed{\validRule{spatial-23850}{Every \GeometryDefinition child of a \MixedGeometry must have a \token{spa\-tial:\-isActive} attribute with a value of \val{false}. +\validRule{spatial-23850}{\changed{Every \GeometryDefinition child of a \MixedGeometry must have a \token{spa\-tial:\-isActive} attribute with a value of \val{false}. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{mixedgeometry-class}.)}} \subsubsection*{Rules for \class{OrdinalMapping} object} |
From: <fbe...@us...> - 2019-08-27 13:35:58
|
Revision: 26109 http://sourceforge.net/p/sbml/code/26109 Author: fbergmann Date: 2019-08-27 13:35:56 +0000 (Tue, 27 Aug 2019) Log Message: ----------- - issue #168098033: swig is generating 'object' rather than '_object', thus search and replace would not attach python3 metaclass Modified Paths: -------------- trunk/libsbml/dev/utilities/python_package/create_package.cmake Modified: trunk/libsbml/dev/utilities/python_package/create_package.cmake =================================================================== --- trunk/libsbml/dev/utilities/python_package/create_package.cmake 2019-08-27 13:30:49 UTC (rev 26108) +++ trunk/libsbml/dev/utilities/python_package/create_package.cmake 2019-08-27 13:35:56 UTC (rev 26109) @@ -362,19 +362,19 @@ string(REPLACE "class SBase(object):" "class SBase(object, metaclass=AutoProperty):" - init3_script ${init_script} + init3_script ${init3_script} ) string(REPLACE "class SBasePlugin(_object):" "class SBasePlugin(_object, metaclass=AutoProperty):" - init3_script ${init_script} + init3_script ${init3_script} ) string(REPLACE "class SBasePlugin(object):" "class SBasePlugin(object, metaclass=AutoProperty):" - init3_script ${init_script} + init3_script ${init3_script} ) |
From: <fbe...@us...> - 2019-08-27 13:30:56
|
Revision: 26108 http://sourceforge.net/p/sbml/code/26108 Author: fbergmann Date: 2019-08-27 13:30:49 +0000 (Tue, 27 Aug 2019) Log Message: ----------- - issue #168098033: swig is generating 'object' rather than '_object', thus search and replace would not attach python3 metaclass Modified Paths: -------------- trunk/libsbml/dev/utilities/python_package/create_package.cmake Modified: trunk/libsbml/dev/utilities/python_package/create_package.cmake =================================================================== --- trunk/libsbml/dev/utilities/python_package/create_package.cmake 2019-08-27 00:07:43 UTC (rev 26107) +++ trunk/libsbml/dev/utilities/python_package/create_package.cmake 2019-08-27 13:30:49 UTC (rev 26108) @@ -358,6 +358,26 @@ "class SBase(_object, metaclass=AutoProperty):" init3_script ${init_script} ) + +string(REPLACE + "class SBase(object):" + "class SBase(object, metaclass=AutoProperty):" + init3_script ${init_script} +) + +string(REPLACE + "class SBasePlugin(_object):" + "class SBasePlugin(_object, metaclass=AutoProperty):" + init3_script ${init_script} +) + +string(REPLACE + "class SBasePlugin(object):" + "class SBasePlugin(object, metaclass=AutoProperty):" + init3_script ${init_script} +) + + file(WRITE ${OUT_DIR}/script/libsbml3.py ${init3_script}) |
From: <luc...@us...> - 2019-08-27 00:07:50
|
Revision: 26107 http://sourceforge.net/p/sbml/code/26107 Author: luciansmith Date: 2019-08-27 00:07:43 +0000 (Tue, 27 Aug 2019) Log Message: ----------- Add new validation rules pulled from the spec, with help from our GSOC student Bhavya Jain. Also insert soft hyphens everywhere they were needed, and fix attribute names where they actually used '1' and '2' instead of 'One' and 'Two', etc. Modified Paths: -------------- trunk/specifications/sbml-level-3/version-1/spatial/specification/apdx-validation.tex trunk/specifications/sbml-level-3/version-1/spatial/specification/syntax.tex Modified: trunk/specifications/sbml-level-3/version-1/spatial/specification/apdx-validation.tex =================================================================== --- trunk/specifications/sbml-level-3/version-1/spatial/specification/apdx-validation.tex 2019-08-14 20:21:31 UTC (rev 26106) +++ trunk/specifications/sbml-level-3/version-1/spatial/specification/apdx-validation.tex 2019-08-27 00:07:43 UTC (rev 26107) @@ -61,6 +61,9 @@ shorter than to write a full explanation everywhere we refer to an attribute or element in the \SpatialProcessesPackage namespace. +\changed{Attributes from this package are listed in these rules as having the \val{distrib:} prefix, but as is convention for SBML packages, this prefix is optional.} + + \subsubsection*{General rules about this package} \validRule{spatial-10101}{To conform to the \SpatialProcessesPackage @@ -162,6 +165,8 @@ SBML Level~3 Specification for Spatial Processes, Version~1, \sec{extended-reaction-class}.)} +\changed{\validRule{spatial-20650}{If the attribute \token{spatial:\-isLocal} on a \Reaction is \val{true}, it must also have a defined \token{com\-part\-ment} attribute. +(Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{extended-reaction-class}.)}} \subsubsection*{Rules for \class{DomainType} object} @@ -176,7 +181,7 @@ \DomainType. (Reference: SBML Level~3 Version~1 Core, Section~3.2.)} \validRule{spatial-20703}{A \DomainType object must have the required -attributes \token{spatial:\-id} and \token{spatial:\-spatialDimensions}, +attributes \token{spatial:\-id} and \token{spa\-tial\-Di\-men\-sions}, and may have the optional attribute \token{spatial:\-name}. No other attributes from the SBML Level~3 Spatial Processes namespaces are permitted on a \DomainType object. (Reference: SBML Level~3 @@ -185,7 +190,7 @@ \validRule{spatial-20704}{The attribute \token{spatial:\-spatialDimensions} on a \DomainType must have a value -of data type \token{integer}. (Reference: SBML Level~3 Specification for +of data type \token{in\-te\-ger}. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{domaintype-class}.)} \validRule{spatial-20705}{The attribute \token{spatial:\-name} on a @@ -193,7 +198,15 @@ SBML Level~3 Specification for Spatial Processes, Version~1, \sec{domaintype-class}.)} +\changed{\validRule{spatial-20750}{If the \Geometry of the \Model has exactly three \CoordinateComponent children, the \token{spa\-tial:\-spa\-tial\-Di\-men\-sions} attribute of a \DomainType may only have a value of \val{2} or \val{3}. +(Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{domaintype-class}.)}} +\changed{\validRule{spatial-20751}{If the \Geometry of the \Model has exactly two \CoordinateComponent children, the \token{spa\-tial:\-spa\-tial\-Di\-men\-sions} attribute of a \DomainType may only have a value of \val{1} or \val{2}. +(Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{domaintype-class}.)}} + +\changed{\validRule{spatial-20752}{If the \Geometry of the \Model has exactly one \CoordinateComponent child, the \token{spa\-tial:\-spa\-tial\-Di\-men\-sions} attribute of a \DomainType may only have a value of \val{0} or \val{1}. +(Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{domaintype-class}.)}} + \subsubsection*{Rules for \class{Domain} object} \validRule{spatial-20801}{A \Domain object may have the optional SBML @@ -326,7 +339,7 @@ Section~3.2.)} \validRule{spatial-21103}{An \AdjacentDomains object must have the -required attributes \token{spatial:\-id}, \token{spatial:\-domainOne} +required attributes \token{spatial:\-id}, \token{spatial:\-do\-main\-One} and \token{spatial:\-domainTwo}, and may have the optional attribute \token{spatial:\-name}. No other attributes from the SBML Level~3 Spatial Processes namespaces are permitted on an \AdjacentDomains @@ -426,7 +439,7 @@ \subsubsection*{Rules for \class{CoordinateComponent} object} \validRule{spatial-21401}{A \CoordinateComponent object may have the -optional SBML Level~3 Core attributes \token{metaid} and +optional SBML Level~3 Core attributes \token{meta\-id} and \token{sboTerm}. No other attributes from the SBML Level~3 Core namespaces are permitted on a \CoordinateComponent. (Reference: SBML Level~3 Version~1 Core, Section~3.2.)} @@ -535,11 +548,11 @@ \validRule{spatial-21603}{A \SampledField object must have the required attributes \token{spatial:\-id}, \token{spatial:\-dataType}, -\token{spatial:\-numSamplesOne}, \token{spatial:\-interpolationType}, +\token{spatial:\-numSamples1}, \token{spatial:\-interpolationType}, \token{spatial:\-compression}, \token{spatial:\-samples} and \token{spatial:\-samplesLength}, and may have the optional attributes -\token{spatial:\-name}, \token{spatial:\-numSamplesTwo} and -\token{spatial:\-numSamplesThree}. No other attributes from the SBML +\token{spatial:\-name}, \token{spatial:\-numSamples2} and +\token{spatial:\-numSamples3}. No other attributes from the SBML Level~3 Spatial Processes namespaces are permitted on a \SampledField object. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{sampledfield-class}.)} @@ -553,8 +566,8 @@ Specification for Spatial Processes, Version~1, \sec{sampledfield-class}.)} -\validRule{spatial-21605}{The attribute \token{spatial:\-numSamplesOne} -on a \SampledField must have a value of data type \token{integer}. +\validRule{spatial-21605}{The attribute \token{spatial:\-numSamples1} +on a \SampledField must have a value of data type \token{in\-te\-ger}. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{sampledfield-class}.)} @@ -582,7 +595,7 @@ Spatial Processes, Version~1, \sec{sampledfield-class}.)} \validRule{spatial-21609}{The attribute \token{spatial:\-samplesLength} -on a \SampledField must have a value of data type \token{integer}. +on a \SampledField must have a value of data type \token{in\-te\-ger}. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{sampledfield-class}.)} @@ -591,17 +604,25 @@ SBML Level~3 Specification for Spatial Processes, Version~1, \sec{sampledfield-class}.)} -\validRule{spatial-21611}{The attribute \token{spatial:\-numSamplesTwo} -on a \SampledField must have a value of data type \token{integer}. +\validRule{spatial-21611}{The attribute \token{spatial:\-numSamples2} +on a \SampledField must have a value of data type \token{in\-te\-ger}. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{sampledfield-class}.)} \validRule{spatial-21612}{The attribute -\token{spatial:\-numSamplesThree} on a \SampledField must have a value -of data type \token{integer}. (Reference: SBML Level~3 Specification for +\token{spatial:\-numSamples3} on a \SampledField must have a value +of data type \token{in\-te\-ger}. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{sampledfield-class}.)} +\changed{\validRule{spatial-21650}{If the \Geometry of the \Model has exactly one \CoordinateComponent child, a \SampledField object must define the \token{spa\-tial:\-numSamples1} attribute, and must not define the \token{spa\-tial:\-numSamples2} and \token{spa\-tial:\-numSamples3} attributes. +(Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{sampledfield-class}.)}} +\changed{\validRule{spatial-21651}{If the \Geometry of the \Model has exactly two \CoordinateComponent children, a \SampledField object must define the \token{spa\-tial:\-numSamples1} and \token{spa\-tial:\-numSamples2} attributes, and must not define the \token{spa\-tial:\-numSamples3} attribute. +(Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{sampledfield-class}.)}} + +\changed{\validRule{spatial-21652}{If the \Geometry of the \Model has exactly three \CoordinateComponent children, a \SampledField object must define the \token{spa\-tial:\-numSamples1}, \token{spa\-tial:\-numSamples2}, and \token{spa\-tial:\-numSamples3} attributes. +(Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{sampledfield-class}.)}} + \subsubsection*{Rules for \class{SampledVolume} object} \validRule{spatial-21701}{A \SampledVolume object may have the optional @@ -616,7 +637,7 @@ \SampledVolume. (Reference: SBML Level~3 Version~1 Core, Section~3.2.)} \validRule{spatial-21703}{A \SampledVolume object must have the required -attributes \token{spatial:\-id} and \token{spatial:\-domainType}, and +attributes \token{spatial:\-id} and \token{spatial:\-do\-main\-Type}, and may have the optional attributes \token{spatial:\-name}, \token{spatial:\-sampledValue}, \token{spatial:\-minValue} and \token{spatial:\-maxValue}. No other attributes from the SBML Level~3 @@ -650,7 +671,22 @@ (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{sampledvolume-class}.)} +\changed{\validRule{spatial-21750}{A \SampledVolume with a defined \token{spa\-tial:\-minValue} attribute must also define the \token{spa\-tial:\-maxValue} attribute. +(Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{sampledvolume-class}.)}} +\changed{\validRule{spatial-21751}{A \SampledVolume with a defined \token{spa\-tial:\-maxValue} attribute must also define the \token{spa\-tial:\-minValue} attribute. +(Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{sampledvolume-class}.)}} + +\changed{\validRule{spatial-21752}{A \SampledVolume with defined \token{spa\-tial:\-minValue} and \token{spa\-tial:\-maxValue} attributes must not define the \token{spa\-tial:\-sam\-pled\-Value} attribute. +(Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{sampledvolume-class}.)}} + +\changed{\validRule{spatial-21753}{A \SampledVolume with a defined \token{spa\-tial:\-sampledValue} attribute may not define the \token{spa\-tial:\-minValue} nor the \token{spa\-tial:\-maxValue} attribute. +(Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{sampledvolume-class}.)}} + +\changed{\validRule{spatial-21754}{A \SampledVolume must either define its \token{spa\-tial:\-sampledValue} attribute or must define both the \token{spa\-tial:\-minValue} and \token{spa\-tial:\-maxValue} attributes. +(Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{sampledvolume-class}.)}} + + \subsubsection*{Rules for \class{AnalyticGeometry} object} \validRule{spatial-21801}{An \AnalyticGeometry object may have the @@ -700,7 +736,7 @@ \AnalyticVolume. (Reference: SBML Level~3 Version~1 Core, Section~3.2.)} \validRule{spatial-21903}{An \AnalyticVolume object must have the -required attributes \token{spatial:\-id}, \token{spatial:\-functionType} +required attributes \token{spatial:\-id}, \token{spatial:\-func\-tion\-Type} and \token{spatial:\-domainType}, and may have the optional attributes \token{spatial:\-name} and \token{spatial:\-ordinal}. No other attributes from the SBML Level~3 Spatial Processes namespaces are @@ -734,10 +770,12 @@ \sec{analyticvolume-class}.)} \validRule{spatial-21908}{The attribute \token{spatial:\-ordinal} on an -\AnalyticVolume must have a value of data type \token{integer}. +\AnalyticVolume must have a value of data type \token{in\-te\-ger}. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{analyticvolume-class}.)} +\changed{\consistencyRule{spatial-21950}{No \AnalyticVolume should have a \token{spa\-tial:\-ordinal} attribute with the same value as a different \AnalyticVolume. +(Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{analyticvolume-class}.)}} \subsubsection*{Rules for \class{ParametricGeometry} object} @@ -789,9 +827,9 @@ Section~3.2.)} \validRule{spatial-22103}{A \ParametricObject object must have the -required attributes \token{spatial:\-id}, \token{spatial:\-polygonType}, +required attributes \token{spatial:\-id}, \token{spatial:\-polygon\-Type}, \token{spatial:\-domainType}, \token{spatial:\-pointIndex}, -\token{spatial:\-pointIndexLength} and \token{spatial:\-compression}, +\token{spatial:\-pointIndexLength} and \token{spa\-tial:\-compression}, and may have the optional attributes \token{spatial:\-name} and \token{spatial:\-dataType}. No other attributes from the SBML Level~3 Spatial Processes namespaces are permitted on a \ParametricObject @@ -820,7 +858,7 @@ \validRule{spatial-22107}{The attribute \token{spatial:\-pointIndexLength} on a \ParametricObject must have a -value of data type \token{integer}. (Reference: SBML Level~3 +value of data type \token{in\-te\-ger}. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{parametricobject-class}.)} @@ -851,7 +889,7 @@ \subsubsection*{Rules for \class{CSGeometry} object} \validRule{spatial-22201}{A \CSGeometry object may have the optional -SBML Level~3 Core attributes \token{metaid} and \token{sboTerm}. No +SBML Level~3 Core attributes \token{metaid} and \token{sbo\-Term}. No other attributes from the SBML Level~3 Core namespaces are permitted on a \CSGeometry. (Reference: SBML Level~3 Version~1 Core, Section~3.2.)} @@ -918,10 +956,12 @@ \sec{csgobject-class}.)} \validRule{spatial-22307}{The attribute \token{spatial:\-ordinal} on a -\CSGObject must have a value of data type \token{integer}. (Reference: +\CSGObject must have a value of data type \token{in\-te\-ger}. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{csgobject-class}.)} +\changed{\consistencyRule{spatial-22350}{No \CSGObject should have an \token{spa\-tial:\-ordinal} attribute with the same value as a different \CSGObject. +(Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{csgobject-class}.)}} \subsubsection*{Rules for \class{CSGNode} object} @@ -1020,7 +1060,7 @@ \validRule{spatial-22703}{A \CSGRotation object must have the required attributes \token{spatial:\-rotateX} and \token{spatial:\-rotateAngleInRadians}, and may have the optional -attributes \token{spatial:\-rotateY} and \token{spatial:\-rotateZ}. No +attributes \token{spatial:\-rotateY} and \token{spa\-tial:\-ro\-tateZ}. No other attributes from the SBML Level~3 Spatial Processes namespaces are permitted on a \CSGRotation object. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, @@ -1134,7 +1174,7 @@ \validRule{spatial-23005}{The attribute \token{spatial:\-componentsLength} on a \TransformationComponent must -have a value of data type \token{integer}. (Reference: SBML Level~3 +have a value of data type \token{in\-te\-ger}. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{transformationcomponent-class}.)} @@ -1227,7 +1267,12 @@ a \ListOfCSGNodes object. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{listofcsgnodes-class}.)} +\changed{\validRule{spatial-23250}{If the \token{spa\-tial:\-operationType} attribute of a \CSGSetOperator has the value \val{difference}, it must also define the \token{spa\-tial:\-componentA} and \token{spa\-tial:\-componentB} attributes. +(Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{csgsetoperator-class}.)}} +\changed{\validRule{spatial-23251}{If the \token{spa\-tial:\-operationType} attribute of a \CSGSetOperator has the value \val{union} or \val{in\-ter\-sec\-tion}, it must not define the \token{spa\-tial:\-componentA} nor the \token{spa\-tial:\-componentB} attributes. +(Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{csgsetoperator-class}.)}} + \subsubsection*{Rules for \class{SpatialSymbolReference} object} \validRule{spatial-23301}{A \SpatialSymbolReference object may have the @@ -1270,10 +1315,10 @@ Section~3.2.)} \validRule{spatial-23403}{A \DiffusionCoefficient object must have the -required attributes \token{spatial:\-variable} and -\token{spatial:\-type}, and may have the optional attributes -\token{spatial:\-coordinateReferenceOne} and -\token{spatial:\-coordinateReferenceTwo}. No other attributes from the +required attributes \token{spatial:\-variable} and \token{spa\-tial:\-type}, +and may have the optional attributes +\token{spatial:\-coordinateReference1} and +\token{spatial:\-coordinateReference2}. No other attributes from the SBML Level~3 Spatial Processes namespaces are permitted on a \DiffusionCoefficient object. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{diffusioncoefficient-class}.)} @@ -1294,7 +1339,7 @@ \sec{diffusioncoefficient-class}.)} \validRule{spatial-23406}{The value of the attribute -\token{spatial:\-coordinateReferenceOne} of a \DiffusionCoefficient +\token{spatial:\-coordinateReference1} of a \DiffusionCoefficient object must conform to the syntax of SBML data type \primtype{CoordinateKind} and may only take on the allowed values of \primtype{CoordinateKind} defined in SBML; that is, the value must be @@ -1303,7 +1348,7 @@ Processes, Version~1, \sec{diffusioncoefficient-class}.)} \validRule{spatial-23407}{The value of the attribute -\token{spatial:\-coordinateReferenceTwo} of a \DiffusionCoefficient +\token{spatial:\-coordinateReference2} of a \DiffusionCoefficient object must conform to the syntax of SBML data type \primtype{CoordinateKind} and may only take on the allowed values of \primtype{CoordinateKind} defined in SBML; that is, the value must be @@ -1311,7 +1356,15 @@ \val{cartesianZ}. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{diffusioncoefficient-class}.)} +\changed{\validRule{spatial-23450}{A \DiffusionCoefficient with an attribute \token{spa\-tial:\-type} with the value \val{isotropic} may not define the \token{spa\-tial:\-co\-or\-di\-nate\-Re\-fer\-ence1} nor \token{spa\-tial:\-coordinateReference2} at\-trib\-utes. +(Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{diffusioncoefficient-class}.)}} +\changed{\validRule{spatial-23451}{A \DiffusionCoefficient with an attribute \token{spa\-tial:\-type} with the value \val{tensor} must define the \token{spa\-tial:\-co\-or\-di\-nate\-Reference1} and \token{spa\-tial:\-coordinateReference2} attributes. +(Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{diffusioncoefficient-class}.)}} + +\changed{\validRule{spatial-23452}{A \DiffusionCoefficient with an attribute \token{spa\-tial:\-type} with the value \val{anisotropic} must define the \token{spa\-tial:\-coordinateReference1} attribute, and must not define the \token{spa\-tial:\-coordinateReference2} attribute. +(Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{diffusioncoefficient-class}.)}} + \subsubsection*{Rules for \class{AdvectionCoefficient} object} \validRule{spatial-23501}{An \AdvectionCoefficient object may have the @@ -1364,10 +1417,10 @@ Section~3.2.)} \validRule{spatial-23603}{A \BoundaryCondition object must have the -required attributes \token{spatial:\-variable} and -\token{spatial:\-type}, and may have the optional attributes +required attributes \token{spatial:\-variable} and +\token{spa\-tial:\-type}, and may have the optional attributes \token{spatial:\-coordinateBoundary} and -\token{spatial:\-boundaryDomainType}. No other attributes from the SBML +\token{spa\-tial:\-boundaryDomainType}. No other attributes from the SBML Level~3 Spatial Processes namespaces are permitted on a \BoundaryCondition object. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{boundarycondition-class}.)} @@ -1397,6 +1450,8 @@ enclosing \Model object. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{boundarycondition-class}.)} +\changed{\validRule{spatial-23650}{A \BoundaryCondition must have a defined \token{spa\-tial:\-coordinateBoundary} or \token{spa\-tial:\-boun\-da\-ry\-Do\-main\-Type} attribute, but may not define both. +(Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{diffusioncoefficient-class}.)}} \subsubsection*{Rules for \class{Geometry} object} @@ -1510,7 +1565,21 @@ SBML Level~3 Specification for Spatial Processes, Version~1, \sec{listofsampledfields-class}.)} +\changed{\validRule{spatial-23750}{A \Geometry must have a child \ListOfCoordinateComponents object. +(Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{listofcoordinatecomponents-class}.)}} +\changed{\validRule{spatial-23751}{A \ListOfCoordinateComponents must have exactly one, two, or three children. +(Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{listofcoordinatecomponents-class}.)}} + +\changed{\validRule{spatial-23752}{If a \ListOfCoordinateComponents object has exactly one \CoordinateComponents child, that child must have a \token{spa\-tial:\-type} with the value \val{cartesianX}. +(Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{listofcoordinatecomponents-class}.)}} + +\changed{\validRule{spatial-23753}{If a \ListOfCoordinateComponents object has exactly two \CoordinateComponents children, one of them must have a \token{spa\-tial:\-type} with the value \val{cartesianX}, and the other must have a \token{spa\-tial:\-type} with the value \val{cartesianY}. +(Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{listofcoordinatecomponents-class}.)}} + +\changed{\validRule{spatial-23754}{If a \ListOfCoordinateComponents object has exactly three \CoordinateComponents children, one of them must have a \token{spa\-tial:\-type} with the value \val{cartesianX}, one must have a \token{spa\-tial:\-type} with the value \val{cartesianY}, and one must have a \token{spa\-tial:\-type} with the value \val{cartesianZ}. +(Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{listofcoordinatecomponents-class}.)}} + \subsubsection*{Rules for \class{MixedGeometry} object} \validRule{spatial-23801}{A \MixedGeometry object may have the optional @@ -1557,6 +1626,8 @@ SBML Level~3 Specification for Spatial Processes, Version~1, \sec{listofordinalmappings-class}.)} +\changed{\validRule{spatial-23850}{Every \GeometryDefinition child of a \MixedGeometry must have a \token{spa\-tial:\-isActive} attribute with a value of \val{false}. +(Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{mixedgeometry-class}.)}} \subsubsection*{Rules for \class{OrdinalMapping} object} @@ -1585,7 +1656,7 @@ Spatial Processes, Version~1, \sec{ordinalmapping-class}.)} \validRule{spatial-23905}{The attribute \token{spatial:\-ordinal} on an -\OrdinalMapping must have a value of data type \token{integer}. +\OrdinalMapping must have a value of data type \token{in\-te\-ger}. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{ordinalmapping-class}.)} @@ -1628,7 +1699,7 @@ \validRule{spatial-24006}{The attribute \token{spatial:\-arrayDataLength} on a \SpatialPoints must have a value -of data type \token{integer}. (Reference: SBML Level~3 Specification for +of data type \token{in\-te\-ger}. (Reference: SBML Level~3 Specification for Spatial Processes, Version~1, \sec{spatialpoints-class}.)} \validRule{spatial-24007}{The attribute \token{spatial:\-name} on a Modified: trunk/specifications/sbml-level-3/version-1/spatial/specification/syntax.tex =================================================================== --- trunk/specifications/sbml-level-3/version-1/spatial/specification/syntax.tex 2019-08-14 20:21:31 UTC (rev 26106) +++ trunk/specifications/sbml-level-3/version-1/spatial/specification/syntax.tex 2019-08-27 00:07:43 UTC (rev 26107) @@ -72,7 +72,7 @@ %, \val{spherical\-Radius}, \val{sphericalAzimuth}, \val{sphericalElevation}, \val{cylindrical\-Radius}, \val{cylindricalAzimuth}, \val{cylindricalHeight}, \val{polarRadius}, and \val{polarAzimuth}. Attributes of type \primtype{CoordinateKind} cannot take on any other values. The meaning of these values is discussed in the context of the \CoordinateComponent class's definition in \sec{coordinatecomponent-class}. -Other \primtype{CoordinateKind} types are held in reserve for future versions of this specification, and may include \val{spherical\-Radius}, \val{sphericalAzimuth}, \val{sphericalElevation}, \val{cylindrical\-Radius}, \val{cylindricalAzimuth}, \val{cylin\-dricalHeight}, \val{polarRadius}, and \val{polarAzimuth}. +Other \primtype{CoordinateKind} types are held in reserve for future versions of this specification, and may include \val{spher\-i\-cal\-Radius}, \val{sphericalAzimuth}, \val{sphericalElevation}, \val{cylindrical\-Radius}, \val{cylindricalAzimuth}, \val{cy\-lin\-dricalHeight}, \val{polarRadius}, and \val{polarAzimuth}. |
From: <luc...@us...> - 2019-08-14 20:21:35
|
Revision: 26106 http://sourceforge.net/p/sbml/code/26106 Author: luciansmith Date: 2019-08-14 20:21:31 +0000 (Wed, 14 Aug 2019) Log Message: ----------- Add ability to get Uncertainty parameters by type. Modified Paths: -------------- branches/libsbml-experimental/src/sbml/packages/distrib/sbml/ListOfUncertParameters.cpp branches/libsbml-experimental/src/sbml/packages/distrib/sbml/ListOfUncertParameters.h branches/libsbml-experimental/src/sbml/packages/distrib/sbml/Uncertainty.cpp branches/libsbml-experimental/src/sbml/packages/distrib/sbml/Uncertainty.h Modified: branches/libsbml-experimental/src/sbml/packages/distrib/sbml/ListOfUncertParameters.cpp =================================================================== --- branches/libsbml-experimental/src/sbml/packages/distrib/sbml/ListOfUncertParameters.cpp 2019-08-06 07:01:54 UTC (rev 26105) +++ branches/libsbml-experimental/src/sbml/packages/distrib/sbml/ListOfUncertParameters.cpp 2019-08-14 20:21:31 UTC (rev 26106) @@ -347,6 +347,18 @@ }; +struct UTypeEqV : public std::unary_function<SBase*, bool> +{ + const UncertType_t utype; + + UTypeEqV (const UncertType_t utype) : utype(utype) { } + bool operator() (SBase* sb) + { + return (static_cast<UncertParameter*>(sb)->getType() == utype); + } +}; + + /* * Get an UncertParameter from the ListOfUncertParameters based on the element * to which it refers. @@ -361,6 +373,16 @@ } +const UncertParameter* +ListOfUncertParameters::getByType(UncertType_t utype) const +{ + vector<SBase*>::const_iterator result; + result = find_if(mItems.begin(), mItems.end(), UTypeEqV(utype)); + return (result == mItems.end()) ? 0 : static_cast <const UncertParameter*> + (*result); +} + + /* * Get an UncertParameter from the ListOfUncertParameters based on the element * to which it refers. @@ -373,6 +395,16 @@ } +UncertParameter* +ListOfUncertParameters::getByType(UncertType_t utype) +{ + vector<SBase*>::const_iterator result; + result = find_if(mItems.begin(), mItems.end(), UTypeEqV(utype)); + return (result == mItems.end()) ? 0 : static_cast <UncertParameter*> + (*result); +} + + /* * Returns the XML element name of this ListOfUncertParameters object. */ Modified: branches/libsbml-experimental/src/sbml/packages/distrib/sbml/ListOfUncertParameters.h =================================================================== --- branches/libsbml-experimental/src/sbml/packages/distrib/sbml/ListOfUncertParameters.h 2019-08-06 07:01:54 UTC (rev 26105) +++ branches/libsbml-experimental/src/sbml/packages/distrib/sbml/ListOfUncertParameters.h 2019-08-14 20:21:31 UTC (rev 26106) @@ -343,7 +343,26 @@ */ const UncertParameter* getByVar(const std::string& sid) const; + /** + * Get an UncertParameter from the ListOfUncertParameters based on + * its type. + * + * @param utype the UncertType representing the "type" attribute of the + * UncertParameter object to retrieve. + * + * @return the first UncertParameter in this ListOfUncertParameters based on + * the given var attribute or NULL if no such UncertParameter exists. + * + * Note that while most types must be unique in any ListOfUncertParameters, + * the exception is external parameters + * (@sbmlconstant{DISTRIB_UNCERTTYPE_EXTERNALPARAMETER, UncerType_t}), + * which there many be several of. + * + * @copydetails doc_returned_unowned_pointer + */ + const UncertParameter * getByType(UncertType_t utype) const; + /** * Get an UncertParameter from the ListOfUncertParameters based on the * element to which it refers. @@ -360,6 +379,26 @@ /** + * Get an UncertParameter from the ListOfUncertParameters based on + * its type. + * + * @param utype the UncertType representing the "type" attribute of the + * UncertParameter object to retrieve. + * + * @return the first UncertParameter in this ListOfUncertParameters based on + * the given var attribute or NULL if no such UncertParameter exists. + * + * Note that while most types must be unique in any ListOfUncertParameters, + * the exception is external parameters + * (@sbmlconstant{DISTRIB_UNCERTTYPE_EXTERNALPARAMETER, UncerType_t}), + * which there many be several of. + * + * @copydetails doc_returned_unowned_pointer + */ + UncertParameter * getByType(UncertType_t utype); + + + /** * Returns the XML element name of this ListOfUncertParameters object. * * For ListOfUncertParameters, the XML element name is always Modified: branches/libsbml-experimental/src/sbml/packages/distrib/sbml/Uncertainty.cpp =================================================================== --- branches/libsbml-experimental/src/sbml/packages/distrib/sbml/Uncertainty.cpp 2019-08-06 07:01:54 UTC (rev 26105) +++ branches/libsbml-experimental/src/sbml/packages/distrib/sbml/Uncertainty.cpp 2019-08-14 20:21:31 UTC (rev 26106) @@ -178,6 +178,13 @@ } +const UncertParameter* +Uncertainty::getUncertParameterByType(UncertType_t utype) const +{ + return mUncertParameters.getByType(utype); +} + + /* * Get an UncertParameter from the Uncertainty based on the element to which it * refers. @@ -189,6 +196,13 @@ } +UncertParameter* +Uncertainty::getUncertParameterByType(UncertType_t utype) +{ + return mUncertParameters.getByType(utype); +} + + /* * Adds a copy of the given UncertParameter to this Uncertainty. */ Modified: branches/libsbml-experimental/src/sbml/packages/distrib/sbml/Uncertainty.h =================================================================== --- branches/libsbml-experimental/src/sbml/packages/distrib/sbml/Uncertainty.h 2019-08-06 07:01:54 UTC (rev 26105) +++ branches/libsbml-experimental/src/sbml/packages/distrib/sbml/Uncertainty.h 2019-08-14 20:21:31 UTC (rev 26106) @@ -230,7 +230,26 @@ */ const UncertParameter* getUncertParameterByVar(const std::string& sid) const; + /** + * Get an UncertParameter from the Uncertainty based on + * its type. + * + * @param utype the UncertType representing the "type" attribute of the + * UncertParameter object to retrieve. + * + * @return the first UncertParameter in this ListOfUncertParameters based on + * the given var attribute or NULL if no such UncertParameter exists. + * + * Note that while most types must be unique in any ListOfUncertParameters, + * the exception is external parameters + * (@sbmlconstant{DISTRIB_UNCERTTYPE_EXTERNALPARAMETER, UncerType_t}), + * which there many be several of. + * + * @copydetails doc_returned_unowned_pointer + */ + const UncertParameter * getUncertParameterByType(UncertType_t utype) const; + /** * Get an UncertParameter from the Uncertainty based on the element to which * it refers. @@ -247,6 +266,26 @@ /** + * Get an UncertParameter from the Uncertainty based on + * its type. + * + * @param utype the UncertType representing the "type" attribute of the + * UncertParameter object to retrieve. + * + * @return the first UncertParameter in this ListOfUncertParameters based on + * the given var attribute or NULL if no such UncertParameter exists. + * + * Note that while most types must be unique in any ListOfUncertParameters, + * the exception is external parameters + * (@sbmlconstant{DISTRIB_UNCERTTYPE_EXTERNALPARAMETER, UncerType_t}), + * which there many be several of. + * + * @copydetails doc_returned_unowned_pointer + */ + UncertParameter * getUncertParameterByType(UncertType_t utype); + + + /** * Adds a copy of the given UncertParameter to this Uncertainty. * * @param up the UncertParameter object to add. |
From: <fbe...@us...> - 2019-08-06 07:01:58
|
Revision: 26105 http://sourceforge.net/p/sbml/code/26105 Author: fbergmann Date: 2019-08-06 07:01:54 +0000 (Tue, 06 Aug 2019) Log Message: ----------- - add the option of not building static library Modified Paths: -------------- trunk/libsbml/src/CMakeLists.txt Modified: trunk/libsbml/src/CMakeLists.txt =================================================================== --- trunk/libsbml/src/CMakeLists.txt 2019-08-01 23:41:36 UTC (rev 26104) +++ trunk/libsbml/src/CMakeLists.txt 2019-08-06 07:01:54 UTC (rev 26105) @@ -526,6 +526,8 @@ endif() + +if (NOT LIBSBML_SKIP_STATIC_LIBRARY) add_library (${LIBSBML_LIBRARY}-static STATIC ${LIBSBML_SOURCES} ) if (WIN32 AND NOT CYGWIN) @@ -561,6 +563,8 @@ ) endif() +endif (NOT LIBSBML_SKIP_STATIC_LIBRARY) + ############################################################################## # # add native tests |
From: <luc...@us...> - 2019-08-01 23:41:43
|
Revision: 26104 http://sourceforge.net/p/sbml/code/26104 Author: luciansmith Date: 2019-08-01 23:41:36 +0000 (Thu, 01 Aug 2019) Log Message: ----------- Documentation update. * Simplify references to formulaToString (etc) functions * Update docs in general for references. * Add documentation for ASTNode::getASTPlugin functions. Modified Paths: -------------- trunk/libsbml/src/sbml/Rule.h trunk/libsbml/src/sbml/common/libsbml-version.h trunk/libsbml/src/sbml/math/ASTNode.h Modified: trunk/libsbml/src/sbml/Rule.h =================================================================== --- trunk/libsbml/src/sbml/Rule.h 2019-08-01 21:45:57 UTC (rev 26103) +++ trunk/libsbml/src/sbml/Rule.h 2019-08-01 23:41:36 UTC (rev 26104) @@ -205,8 +205,7 @@ /** * Returns the mathematical expression of this Rule in text-string form. * - * The text string is produced by - * @if java <code><a href="libsbml.html#formulaToString(org.sbml.libsbml.ASTNode)">libsbml.formulaToString()</a></code>@else SBML_formulaToString()@endif; please consult + * The text string is produced by @sbmlfunction{formulaToString, ASTNode}; please consult * the documentation for that function to find out more about the format * of the text-string formula. * @@ -219,6 +218,7 @@ * of all Levels of SBML. * * @see getMath() + * @see @sbmlfunction{formulaToL3String, ASTNode} */ const std::string& getFormula () const; Modified: trunk/libsbml/src/sbml/common/libsbml-version.h =================================================================== --- trunk/libsbml/src/sbml/common/libsbml-version.h 2019-08-01 21:45:57 UTC (rev 26103) +++ trunk/libsbml/src/sbml/common/libsbml-version.h 2019-08-01 23:41:36 UTC (rev 26104) @@ -115,7 +115,7 @@ * "expat", "libxml", "xerces-c", "bzip2", "zip" * * @return 0 in case the libSBML has not been compiled against - * that library and non-zero otherwise (for libraries + * that library and nonzero otherwise (for libraries * that define an integer version number that number will * be returned). * Modified: trunk/libsbml/src/sbml/math/ASTNode.h =================================================================== --- trunk/libsbml/src/sbml/math/ASTNode.h 2019-08-01 21:45:57 UTC (rev 26103) +++ trunk/libsbml/src/sbml/math/ASTNode.h 2019-08-01 23:41:36 UTC (rev 26104) @@ -61,10 +61,9 @@ * * <h3><a class="anchor" name="math-convert">Converting between ASTs and text strings</a></h3> * - * The text-string form of mathematical formulas produced by @if clike SBML_formulaToString()@endif@if csharp SBML_formulaToString()@endif@if python libsbml.formulaToString()@endif@if java <code><a href="libsbml.html#formulaToString(org.sbml.libsbml.ASTNode)">libsbml.formulaToString()</a></code>@endif@~ and - * read by @if clike SBML_parseFormula()@endif@if csharp SBML_parseFormula()@endif@if python libsbml.parseFormula()@endif@if java <code><a href="libsbml.html#parseFormula(java.lang.String)">libsbml.parseFormula(String formula)</a></code>@endif@~ - * and - * @if clike SBML_parseL3Formula()@endif@if csharp SBML_parseL3Formula()@endif@if python libsbml.parseL3Formula()@endif@if java <code><a href="libsbml.html#parseL3Formula(java.lang.String)">libsbml.parseL3Formula(String formula)</a></code>@endif@~ + * The text-string form of mathematical formulas produced by + * @sbmlfunction{formulaToString,ASTNode_t} and @sbmlfunction{formulaToL3String,ASTNode_t}, + * and read by @sbmlfunction{parseFormula,String} and @sbmlfunction{parseL3Formula,String} * are in a simple C-inspired infix notation. A * formula in this text-string form can be handed to a program that * understands SBML mathematical expressions, or used as part @@ -2096,35 +2095,92 @@ /** @endcond */ - //LIBSBML_EXTERN - //const ASTBasePlugin * getASTPlugin(const SBMLNamespaces * sbmlns, const std::string& name); - //LIBSBML_EXTERN - // const ASTBasePlugin * getASTPlugin(const SBMLNamespaces * sbmlns = NULL, - // ASTNodeType_t type = AST_UNKNOWN, - // const std::string& name = std::string(), - //const std::string& csymbolURL = std::string()) const; - - //LIBSBML_EXTERN - //ASTBasePlugin * getASTPlugin(const SBMLNamespaces * sbmlns = NULL, ASTNodeType_t type = AST_UNKNOWN, - // const std::string& name = std::string(), - // const std::string& csymbolURL = std::string()); - + /** + * Returns a plug-in object (extension interface) for an SBML Level 3 + * package extension with the given @p sbmlns. + * + * @param sbmlns the namespace of the plugin to return. + * + * @return the plug-in object (the libSBML extension interface) of + * a package extension with the given package name or URI, or @c NULL + * if none exist. + */ LIBSBML_EXTERN ASTBasePlugin * getASTPlugin(const SBMLNamespaces * sbmlns); + /** + * Returns a plug-in object (extension interface) for an SBML Level 3 + * package extension for the package that defines the given @p type. + * + * @param type the @if clike #ASTNodeType_t@else type@endif@~ that is defined by the given plugin. + * + * @return the plug-in object (the libSBML extension interface) of + * a package extension that defines the given @p type, or @c NULL + * if none exist. + */ LIBSBML_EXTERN ASTBasePlugin * getASTPlugin(ASTNodeType_t type); + /** + * Returns a plug-in object (extension interface) for an SBML Level 3 + * package extension for the package with the given constraints. + * + * @param name the type or csymbol defined by the returned plugin. + * @param isCsymbol Boolean indicator of whether the @p name is a csymbol + * (if @c true) or type (if @c false). + * @param strCmpIsCaseSensitive whether to search for the matching type + * or csymbol in case-sensitve manner (if @c true) or case-insensitive + * manner (if @c false). + * + * @return the plug-in object (the libSBML extension interface) of + * a package extension that defines the given @p name, or @c NULL + * if none exist. + */ LIBSBML_EXTERN ASTBasePlugin * getASTPlugin(const std::string& name, bool isCsymbol = false, bool strCmpIsCaseSensitive = false); + /** + * Returns a plug-in object (extension interface) for an SBML Level 3 + * package extension with the given @p sbmlns. + * + * @param sbmlns the namespace of the plugin to return. + * + * @return the plug-in object (the libSBML extension interface) of + * a package extension with the given package name or URI, or @c NULL + * if none exist. + */ LIBSBML_EXTERN const ASTBasePlugin * getASTPlugin(const SBMLNamespaces * sbmlns) const; + /** + * Returns a plug-in object (extension interface) for an SBML Level 3 + * package extension for the package that defines the given @p type. + * + * @param type the @if clike #ASTNodeType_t@else type@endif@~ that is defined by the given plugin. + * + * @return the plug-in object (the libSBML extension interface) of + * a package extension that defines the given @p type, or @c NULL + * if none exist. + */ LIBSBML_EXTERN const ASTBasePlugin * getASTPlugin(ASTNodeType_t type) const; + /** + * Returns a plug-in object (extension interface) for an SBML Level 3 + * package extension for the package with the given constraints. + * + * @param name the type or csymbol defined by the returned plugin. + * @param isCsymbol Boolean indicator of whether the @p name is a csymbol + * (if @c true) or type (if @c false). + * @param strCmpIsCaseSensitive whether to search for the matching type + * or csymbol in case-sensitve manner (if @c true) or case-insensitive + * manner (if @c false). + * + * @return the plug-in object (the libSBML extension interface) of + * a package extension that defines the given @p name, or @c NULL + * if none exist. + */ LIBSBML_EXTERN const ASTBasePlugin * getASTPlugin(const std::string& name, bool isCsymbol = false, bool strCmpIsCaseSensitive = false) const; |
From: <luc...@us...> - 2019-08-01 21:46:04
|
Revision: 26103 http://sourceforge.net/p/sbml/code/26103 Author: luciansmith Date: 2019-08-01 21:45:57 +0000 (Thu, 01 Aug 2019) Log Message: ----------- Documentation fix, and removal of commented-out functions. Modified Paths: -------------- trunk/libsbml/src/sbml/math/ASTNode.cpp trunk/libsbml/src/sbml/math/ASTNode.h Modified: trunk/libsbml/src/sbml/math/ASTNode.cpp =================================================================== --- trunk/libsbml/src/sbml/math/ASTNode.cpp 2019-08-01 21:45:12 UTC (rev 26102) +++ trunk/libsbml/src/sbml/math/ASTNode.cpp 2019-08-01 21:45:57 UTC (rev 26103) @@ -3163,267 +3163,6 @@ /** @cond doxygenLibsbmlInternal */ -//LIBSBML_EXTERN -//const ASTBasePlugin * -//ASTNode::getASTPlugin(const SBMLNamespaces * sbmlns, const std::string& name) -//{ -// if (sbmlns == NULL) -// { -// const std::vector<std::string>& names = SBMLExtensionRegistry::getAllRegisteredPackageNames(); -// unsigned int numPkgs = (unsigned int)names.size(); -// -// for (unsigned int i = 0; i < numPkgs; i++) -// { -// const std::string& uri = names[i]; -// const SBMLExtension* sbmlext = SBMLExtensionRegistry::getInstance().getExtensionInternal(uri); -// -// if (sbmlext && sbmlext->isEnabled()) -// { -// if (sbmlext->getASTBasePlugin() != NULL && sbmlext->getASTBasePlugin()->defines(name)) -// { -// return sbmlext->getASTBasePlugin(); -// } -// } -// } -// } -// else -// { -// const XMLNamespaces *xmlns = sbmlns->getNamespaces(); -// -// if (xmlns) -// { -// int numxmlns = xmlns->getLength(); -// for (int i = 0; i < numxmlns; i++) -// { -// const std::string &uri = xmlns->getURI(i); -// const SBMLExtension* sbmlext = SBMLExtensionRegistry::getInstance().getExtensionInternal(uri); -// -// if (sbmlext && sbmlext->isEnabled()) -// { -// if (sbmlext->getASTBasePlugin() != NULL && sbmlext->getASTBasePlugin()->defines(name)) -// { -// return sbmlext->getASTBasePlugin(); -// } -// } -// } -// } -// } -// return NULL; -//} - -//LIBSBML_EXTERN -//const ASTBasePlugin * -//ASTNode::getASTPlugin(const SBMLNamespaces * sbmlns, ASTNodeType_t type, const std::string& name, -// const std::string& csymbolURL) const -//{ -// bool useType = true; -// bool useCSymbol = false; -// if (type == AST_UNKNOWN) -// { -// type = getType(); -// } -// if (!name.empty()) -// { -// useType = false; -// } -// -// if (!csymbolURL.empty()) -// { -// useCSymbol = true; -// useType = false; -// } -// -// -// if (sbmlns == NULL) -// { -// //const std::vector<std::string>& names = SBMLExtensionRegistry::getAllRegisteredPackageNames(); -// unsigned int numPkgs = SBMLExtensionRegistry::getInstance().getNumASTPlugins(); -// -// for (unsigned int i = 0; i < numPkgs; i++) -// { -// const ASTBasePlugin* baseplugin = SBMLExtensionRegistry::getInstance().getASTPlugin(i); -// //const std::string& uri = names[i]; -// //const SBMLExtension* sbmlext = SBMLExtensionRegistry::getInstance().getExtensionInternal(uri); -// -// //if (sbmlext && sbmlext->isEnabled()) -// //{ -// if (useType) -// { -// if (baseplugin->defines(type)) -// { -// return baseplugin; -// } -// } -// else if (useCSymbol) -// { -// if (baseplugin->getASTNodeTypeForCSymbolURL(csymbolURL) != AST_UNKNOWN) -// { -// return baseplugin; -// } -// } -// else -// { -// if (baseplugin->defines(name)) -// { -// return baseplugin; -// } -// } -// //} -// } -// } -// else -// { -// const XMLNamespaces *xmlns = sbmlns->getNamespaces(); -// -// if (xmlns) -// { -// int numxmlns = xmlns->getLength(); -// for (int i = 0; i < numxmlns; i++) -// { -// const std::string &uri = xmlns->getURI(i); -// const SBMLExtension* sbmlext = SBMLExtensionRegistry::getInstance().getExtensionInternal(uri); -// -// if (sbmlext && sbmlext->isEnabled()) -// { -// if (sbmlext->getName() == "multi" && sbmlext->getASTBasePlugin() != NULL) -// { -// return const_cast<ASTBasePlugin*>(sbmlext->getASTBasePlugin()); -// } -// if (useType) -// { -// if (sbmlext->getASTBasePlugin() != NULL && sbmlext->getASTBasePlugin()->defines(type)) -// { -// return sbmlext->getASTBasePlugin(); -// } -// } -// else if (useCSymbol) -// { -// if (sbmlext->getASTBasePlugin() != NULL && -// (sbmlext->getASTBasePlugin()->getASTNodeTypeForCSymbolURL(csymbolURL) != AST_UNKNOWN)) -// { -// return sbmlext->getASTBasePlugin(); -// } -// } -// else -// { -// if (sbmlext->getASTBasePlugin() != NULL && sbmlext->getASTBasePlugin()->defines(name)) -// { -// return sbmlext->getASTBasePlugin(); -// } -// } -// } -// } -// } -// } -// return NULL; -//} - -//LIBSBML_EXTERN -//ASTBasePlugin * -//ASTNode::getASTPlugin(const SBMLNamespaces * sbmlns, ASTNodeType_t type, const std::string& name, -// const std::string& csymbolURL) -//{ -// bool useType = true; -// bool useCSymbol = false; -// if (type == AST_UNKNOWN) -// { -// type = getType(); -// } -// if (!name.empty()) -// { -// useType = false; -// } -// -// if (!csymbolURL.empty()) -// { -// useCSymbol = true; -// useType = false; -// } -// -// if (sbmlns == NULL) -// { -// //const std::vector<std::string>& names = SBMLExtensionRegistry::getAllRegisteredPackageNames(); -// unsigned int numPkgs = SBMLExtensionRegistry::getInstance().getNumASTPlugins(); -// -// for (unsigned int i = 0; i < numPkgs; i++) -// { -// const ASTBasePlugin* baseplugin = SBMLExtensionRegistry::getInstance().getASTPlugin(i); -// //const std::string& uri = names[i]; -// //const SBMLExtension* sbmlext = SBMLExtensionRegistry::getInstance().getExtensionInternal(uri); -// -// //if (sbmlext && sbmlext->isEnabled()) -// //{ -// if (useType) -// { -// if (baseplugin->defines(type)) -// { -// return const_cast<ASTBasePlugin*>(baseplugin); -// } -// } -// else if (useCSymbol) -// { -// if (baseplugin->getASTNodeTypeForCSymbolURL(csymbolURL) != AST_UNKNOWN) -// { -// return const_cast<ASTBasePlugin*>(baseplugin); -// } -// } -// else -// { -// if (baseplugin->defines(name)) -// { -// return const_cast<ASTBasePlugin*>(baseplugin); -// } -// } -// //} -// } -// } -// else -// { -// const XMLNamespaces *xmlns = sbmlns->getNamespaces(); -// -// if (xmlns) -// { -// int numxmlns = xmlns->getLength(); -// for (int i = 0; i < numxmlns; i++) -// { -// const std::string &uri = xmlns->getURI(i); -// const SBMLExtension* sbmlext = SBMLExtensionRegistry::getInstance().getExtensionInternal(uri); -// -// if (sbmlext && sbmlext->isEnabled()) -// { -// if (sbmlext->getName() == "multi" && sbmlext->getASTBasePlugin() != NULL) -// { -// return const_cast<ASTBasePlugin*>(sbmlext->getASTBasePlugin()); -// } -// if (useType) -// { -// if (sbmlext->getASTBasePlugin() != NULL && sbmlext->getASTBasePlugin()->defines(type)) -// { -// return const_cast<ASTBasePlugin*>(sbmlext->getASTBasePlugin()); -// } -// } -// else if (useCSymbol) -// { -// if (sbmlext->getASTBasePlugin() != NULL && -// (sbmlext->getASTBasePlugin()->getASTNodeTypeForCSymbolURL(csymbolURL) != AST_UNKNOWN)) -// { -// return const_cast<ASTBasePlugin*>(sbmlext->getASTBasePlugin()); -// } -// } -// else -// { -// if (sbmlext->getASTBasePlugin() != NULL && sbmlext->getASTBasePlugin()->defines(name)) -// { -// return const_cast<ASTBasePlugin*>(sbmlext->getASTBasePlugin()); -// } -// } -// } -// } -// } -// } -// return NULL; -//} - LIBSBML_EXTERN ASTBasePlugin * ASTNode::getASTPlugin(const SBMLNamespaces * sbmlns) Modified: trunk/libsbml/src/sbml/math/ASTNode.h =================================================================== --- trunk/libsbml/src/sbml/math/ASTNode.h 2019-08-01 21:45:12 UTC (rev 26102) +++ trunk/libsbml/src/sbml/math/ASTNode.h 2019-08-01 21:45:57 UTC (rev 26103) @@ -1460,11 +1460,12 @@ * * As a side effect, this ASTNode object's type will be reset to * @sbmlconstant{AST_NAME, ASTNodeType_t} if (and <em>only - * if</em>) the ASTNode was previously an operator (i.e. - * @sbmlfunction{isOperator} <code>== true</code>), number ( - * @sbmlfunction{isNumber} <code>== true</code>), or unknown. - * This allows names to be set for @sbmlconstant{AST_FUNCTION, - * ASTNodeType_t} nodes and the like. + * if</em>) the ASTNode was previously an operator ( + * @if clike isOperator()@else ASTNode::isOperator()@endif@~ + * <code>== true</code>), number ( + * @if clike isNumber()@else ASTNode::isNumber()@endif@~ + * <code>== true</code>), or unknown. + * This allows names to be set for @sbmlconstant{AST_FUNCTION, ASTNodeType_t} nodes and the like. * * @param name the string containing the name to which this node's value * should be set. |
From: <luc...@us...> - 2019-08-01 21:45:18
|
Revision: 26102 http://sourceforge.net/p/sbml/code/26102 Author: luciansmith Date: 2019-08-01 21:45:12 +0000 (Thu, 01 Aug 2019) Log Message: ----------- More retrieval of old documentation from pre-math-legacy conversion days. Modified Paths: -------------- trunk/libsbml/src/sbml/math/FormulaFormatter.h trunk/libsbml/src/sbml/math/FormulaParser.h trunk/libsbml/src/sbml/math/FormulaTokenizer.h trunk/libsbml/src/sbml/math/L3FormulaFormatter.h trunk/libsbml/src/sbml/math/L3ParserSettings.h trunk/libsbml/src/sbml/math/MathML.h Modified: trunk/libsbml/src/sbml/math/FormulaFormatter.h =================================================================== --- trunk/libsbml/src/sbml/math/FormulaFormatter.h 2019-08-01 20:32:30 UTC (rev 26101) +++ trunk/libsbml/src/sbml/math/FormulaFormatter.h 2019-08-01 21:45:12 UTC (rev 26102) @@ -56,40 +56,19 @@ * @copydetails doc_note_l3_parser_encouraged * * @param tree the AST to be converted. - * + * * @return the formula from the given AST as an SBML Level 1 text-string * mathematical formula. The caller owns the returned string and is * responsible for freeing it when it is no longer needed. * - * @if clike @see SBML_formulaToString() - * @see SBML_parseL3FormulaWithSettings() - * @see SBML_parseL3Formula() - * @see SBML_parseL3FormulaWithModel() - * @see SBML_getLastParseL3Error() - * @see SBML_getDefaultL3ParserSettings() - * @endif@~ - * @if csharp @see SBML_formulaToString() - * @see SBML_parseL3FormulaWithSettings() - * @see SBML_parseL3Formula() - * @see SBML_parseL3FormulaWithModel() - * @see SBML_getLastParseL3Error() - * @see SBML_getDefaultL3ParserSettings() - * @endif@~ - * @if python @see libsbml.formulaToString() - * @see libsbml.parseL3FormulaWithSettings() - * @see libsbml.parseL3Formula() - * @see libsbml.parseL3FormulaWithModel() - * @see libsbml.getLastParseL3Error() - * @see libsbml.getDefaultL3ParserSettings() - * @endif@~ - * @if java @see <code><a href="libsbml.html#formulaToString(org.sbml.libsbml.ASTNode tree)">libsbml.formulaToString(ASTNode tree)</a></code> - * @see <code><a href="libsbml.html#parseL3FormulaWithSettings(java.lang.String, org.sbml.libsbml.L3ParserSettings)">libsbml.parseL3FormulaWithSettings(String formula, L3ParserSettings settings)</a></code> - * @see <code><a href="libsbml.html#parseL3Formula(java.lang.String)">libsbml.parseL3Formula(String formula)</a></code> - * @see <code><a href="libsbml.html#parseL3FormulaWithModel(java.lang.String, org.sbml.libsbml.Model)">parseL3FormulaWithModel(String formula, Model model)</a></code> - * @see <code><a href="libsbml.html#getLastParseL3Error()">getLastParseL3Error()</a></code> - * @see <code><a href="libsbml.html#getDefaultL3ParserSettings()">getDefaultL3ParserSettings()</a></code> - * @endif@~ + * @see @sbmlfunction{formulaToL3String, ASTNode} + * @see @sbmlfunction{formulaToL3StringWithSettings, ASTNode\, L3ParserSettings} + * @see @sbmlfunction{parseL3FormulaWithSettings, String\, L3ParserSettings} + * @see @sbmlfunction{parseL3FormulaWithModel, String\, Model} + * @see @sbmlfunction{parseFormula, String} * + * @copydetails doc_note_math_string_syntax + * * @if conly * @memberof ASTNode_t * @endif @@ -105,7 +84,7 @@ /** - * @return true (nonzero) if the given ASTNode is to formatted as a + * @return @c 1 (true) if the given ASTNode_t is to formatted as a * function. */ int @@ -113,8 +92,8 @@ /** - * @return true (nonzero) if the given child ASTNode should be grouped - * (with parenthesis), false (0) otherwise. + * @return @c 1 (true) if the given child ASTNode should be grouped + * (with parenthesis), @c 0 (false) otherwise. * * A node should be group if it is not an argument to a function and * either: @@ -130,8 +109,8 @@ /** - * Formats the given ASTNode as an SBML L1 token and appends the result to - * the given StringBuffer. + * Formats the given ASTNode_t as an SBML L1 token and appends the result to + * the given StringBuffer_t. */ void FormulaFormatter_format (StringBuffer_t *sb, const ASTNode_t *node); @@ -138,8 +117,8 @@ /** - * Formats the given ASTNode as an SBML L1 function name and appends the - * result to the given StringBuffer. + * Formats the given ASTNode_t as an SBML L1 function name and appends the + * result to the given StringBuffer_t. */ void FormulaFormatter_formatFunction (StringBuffer_t *sb, const ASTNode_t *node); @@ -146,8 +125,8 @@ /** - * Formats the given ASTNode as an SBML L1 operator and appends the result - * to the given StringBuffer. + * Formats the given ASTNode_t as an SBML L1 operator and appends the result + * to the given StringBuffer_t. */ void FormulaFormatter_formatOperator (StringBuffer_t *sb, const ASTNode_t *node); @@ -154,8 +133,8 @@ /** - * Formats the given ASTNode as a rational number and appends the result to - * the given StringBuffer. For SBML L1 this amounts to: + * Formats the given ASTNode_t as a rational number and appends the result to + * the given StringBuffer_t. For SBML L1 this amounts to: * * "(numerator/denominator)" */ @@ -164,8 +143,8 @@ /** - * Formats the given ASTNode as a real number and appends the result to - * the given StringBuffer. + * Formats the given ASTNode_t as a real number and appends the result to + * the given StringBuffer_t. */ void FormulaFormatter_formatReal (StringBuffer_t *sb, const ASTNode_t *node); @@ -172,7 +151,7 @@ /** - * Visits the given ASTNode node. This function is really just a + * Visits the given ASTNode_t node. This function is really just a * dispatcher to either SBML_formulaToString_visitFunction() or * SBML_formulaToString_visitOther(). */ @@ -183,7 +162,7 @@ /** - * Visits the given ASTNode as a function. For this node only the + * Visits the given ASTNode_t as a function. For this node only the * traversal is preorder. */ void @@ -193,7 +172,7 @@ /** - * Visits the given ASTNode as the function "log(10, x)" and in doing so, + * Visits the given ASTNode_t as the function "log(10, x)" and in doing so, * formats it as "log10(x)" (where x is any subexpression). */ void @@ -203,7 +182,7 @@ /** - * Visits the given ASTNode as the function "root(2, x)" and in doing so, + * Visits the given ASTNode_t as the function "root(2, x)" and in doing so, * formats it as "sqrt(x)" (where x is any subexpression). */ void @@ -213,7 +192,7 @@ /** - * Visits the given ASTNode as a unary minus. For this node only the + * Visits the given ASTNode_t as a unary minus. For this node only the * traversal is preorder. */ void @@ -223,7 +202,7 @@ /** - * Visits the given ASTNode and continues the inorder traversal. + * Visits the given ASTNode_t and continues the inorder traversal. */ void FormulaFormatter_visitOther ( const ASTNode_t *parent, @@ -235,7 +214,6 @@ END_C_DECLS LIBSBML_CPP_NAMESPACE_END - /** @endcond */ #endif /* FormulaFormatter_h */ Modified: trunk/libsbml/src/sbml/math/FormulaParser.h =================================================================== --- trunk/libsbml/src/sbml/math/FormulaParser.h 2019-08-01 20:32:30 UTC (rev 26101) +++ trunk/libsbml/src/sbml/math/FormulaParser.h 2019-08-01 21:45:12 UTC (rev 26102) @@ -49,46 +49,31 @@ /** - * Parses the given SBML formula and returns a representation of it as an - * Abstract Syntax Tree (AST). + * Parses a text string as a mathematical formula and returns an AST + * representation of it. * - * @copydetails doc_summary_of_string_math + * @copydetails doc_summary_of_string_math * + * @param formula the text-string formula expression to be parsed. + * + * @return the root node of the AST corresponding to the @p formula, or + * @c NULL if an error occurred in parsing the formula + * + * @see @sbmlfunction{parseL3Formula, String} + * @see @sbmlfunction{formulaToString, ASTNode} + * @see @sbmlfunction{formulaToL3String, ASTNode} + * @see @sbmlfunction{formulaToL3StringWithSettings, ASTNode\, L3ParserSettings} + * @see @sbmlfunction{parseL3FormulaWithSettings, String\, L3ParserSettings} + * @see @sbmlfunction{parseL3FormulaWithModel, String\, Model} + * @see L3ParserSettings + * * @copydetails doc_note_l3_parser_encouraged - * - * @param formula the text-string formula expression to be parsed * - * @return the root node of the AST corresponding to the @p formula, or @c - * NULL if an error occurred in parsing the formula + * @copydetails doc_note_math_string_syntax * - * @if clike @see SBML_formulaToString() - * @see SBML_parseL3FormulaWithSettings() - * @see SBML_parseL3Formula() - * @see SBML_parseL3FormulaWithModel() - * @see SBML_getLastParseL3Error() - * @see SBML_getDefaultL3ParserSettings() - * @endif@~ - * @if csharp @see SBML_formulaToString() - * @see SBML_parseL3FormulaWithSettings() - * @see SBML_parseL3Formula() - * @see SBML_parseL3FormulaWithModel() - * @see SBML_getLastParseL3Error() - * @see SBML_getDefaultL3ParserSettings() - * @endif@~ - * @if python @see libsbml.formulaToString() - * @see libsbml.parseL3FormulaWithSettings() - * @see libsbml.parseL3Formula() - * @see libsbml.parseL3FormulaWithModel() - * @see libsbml.getLastParseL3Error() - * @see libsbml.getDefaultL3ParserSettings() - * @endif@~ - * @if java @see <code><a href="libsbml.html#formulaToString(org.sbml.libsbml.ASTNode tree)">libsbml.formulaToString(ASTNode tree)</a></code> - * @see <code><a href="libsbml.html#parseL3FormulaWithSettings(java.lang.String, org.sbml.libsbml.L3ParserSettings)">libsbml.parseL3FormulaWithSettings(String formula, L3ParserSettings settings)</a></code> - * @see <code><a href="libsbml.html#parseL3Formula(java.lang.String)">libsbml.parseL3Formula(String formula)</a></code> - * @see <code><a href="libsbml.html#parseL3FormulaWithModel(java.lang.String, org.sbml.libsbml.Model)">parseL3FormulaWithModel(String formula, Model model)</a></code> - * @see <code><a href="libsbml.html#getLastParseL3Error()">getLastParseL3Error()</a></code> - * @see <code><a href="libsbml.html#getDefaultL3ParserSettings()">getDefaultL3ParserSettings()</a></code> - * @endif@~ + * @if conly + * @memberof ASTNode_t + * @endif */ LIBSBML_EXTERN ASTNode_t * @@ -96,7 +81,6 @@ /** @cond doxygenLibsbmlInternal */ - #ifndef SWIG @@ -149,7 +133,6 @@ END_C_DECLS LIBSBML_CPP_NAMESPACE_END - /** @endcond */ #endif /* FormulaParser_h */ Modified: trunk/libsbml/src/sbml/math/FormulaTokenizer.h =================================================================== --- trunk/libsbml/src/sbml/math/FormulaTokenizer.h 2019-08-01 20:32:30 UTC (rev 26101) +++ trunk/libsbml/src/sbml/math/FormulaTokenizer.h 2019-08-01 21:45:12 UTC (rev 26102) @@ -65,6 +65,8 @@ * FormulaTokenizer_getName(). * * @copydetails doc_note_l3_parser_encouraged + * + * @copydetails doc_note_math_string_syntax */ #ifndef FormulaTokenizer_h @@ -79,16 +81,17 @@ /** * @struct FormulaTokenizer_t - * @sbmlbrief{core} used to track the state of tokenizing a string. + * @sbmlbrief{core} Tracks the state of tokenizing a formula string. * - * SBML Level 1 uses a simple text-string representation of mathematical - * formulas, rather than the MathML-based representation used in SBML - * Levels 2 and 3. LibSBML implements a parser and converter to - * translate formulas between this text-string representation and MathML. - * The principal entry points to the translation system are - * @if clike SBML_formulaToString()@endif@if csharp SBML_formulaToString()@endif@if python libsbml.formulaToString()@endif@if java <code><a href="libsbml.html#formulaToString(org.sbml.libsbml.ASTNode)">libsbml.formulaToString()</a></code>@endif@~ - * and - * @if clike SBML_parseFormula()@endif@if csharp SBML_parseFormula()@endif@if python libsbml.parseFormula()@endif@if java <code><a href="libsbml.html#parseFormula(java.lang.String)">libsbml.parseFormula()</a></code>@endif@~. + * This structure (FormulaTokenizer_t) is part of the simpler mathematical + * formula translation system designed to help convert between SBML + * Level 1 and Levels 2 and 3. SBML Level 1 uses a + * simple text-string representation of mathematical formulas, rather than + * the MathML-based representation used in SBML Levels 2 and 3. + * LibSBML implements a parser and converter to translate formulas between + * this text-string representation and MathML. The principal entry points to + * the translation system are @sbmlfunction{formulaToString, String} + * and @sbmlfunction{parseFormula, ASTNode}. * * LibSBML also provides a lower-level interface to the formula parser. * This takes the form of the C functions @@ -95,13 +98,19 @@ * FormulaTokenizer_createFromFormula() and FormulaTokenizer_nextToken(). * The structure FormulaTokenizer_t is used to store the current parser * state when callers invoke these methods. - * + * * An instance of a FormulaTokenizer_t maintains its own internal copy of * the formula being tokenized and the current position within the formula * string. The field @c formula holds the former, and the field @c pos * holds the latter. Callers do not need to manipulate these fields - * themselves; instances of FormulaTokenizer_t are only meant to be - * passed around between the functions of the formula tokenizer system. + * themselves; instances of @if clike #FormulaTokenizer_t @else this + * data structure@endif@~ are only meant to be passed around between the + * functions of the formula tokenizer system. + * + * @see @sbmlfunction{parseFormula, String} + * @see @sbmlfunction{formulaToString, ASTNode} + * + * @copydetails doc_note_l3_parser_encouraged */ typedef struct { @@ -113,7 +122,7 @@ /** * @enum TokenType_t * Enumeration of possible token types. - * + * * "TT" is short for "TokenType". * * @see Token_t @@ -139,14 +148,13 @@ /** * @struct Token_t - * @sbmlbrief{core} Structure used to store a token returned by - * FormulaTokenizer_nextToken(). + * @sbmlbrief{core} A token from FormulaTokenizer_nextToken(). * - * A Token_t token has a @c type and a @c value. The @c value field is a + * A #Token_t token has a @c type and a @c value. The @c value field is a * union of different possible members; the member that holds the value for * a given token (and thus the name of the member that is to be accessed - * programmatically) depends on the value of the @c TokenType_t field @c - * type. The following table lists the possible scenarios: + * programmatically) depends on the value of the @c type field. The + * following table lists the possible scenarios: * * <center> * <table border="0" class="text-table width80 normal-font alt-row-colors"> @@ -171,7 +179,7 @@ t->exponent = 3; @endverbatim * - * When the @c type has a value of @c TT_UNKNOWN, the field @c ch will + * When the @c type has a value of @sbmlconstant{TT_UNKNOWN, TokenType_t}, the field @c ch will * contain the unrecognized character. When the type is @c TT_END, the * field @c ch will contain @c '\\0'. For all others, the @c value.ch will * contain the corresponding character. @@ -194,8 +202,8 @@ /** - * Creates a new FormulaTokenizer_t object for the given @p formula string - * and returns a pointer to the object. + * Creates a new FormulaTokenizer_t structure for the given @p formula string + * and returns a pointer to the structure. * * SBML Level 1 uses a simple text-string representation of mathematical * formulas, rather than the MathML-based representation used in SBML @@ -202,22 +210,22 @@ * Levels 2 and 3. LibSBML implements a parser and converter to * translate formulas between this text-string representation and MathML. * The first entry point is the function - * FormulaTokenizer_createFromFormula(), which returns a FormulaTokenizer_t + * FormulaTokenizer_createFromFormula(), which returns a #FormulaTokenizer_t * structure. The structure tracks the current position in the string to * be tokenized, and can be handed to other functions such as - * FormulaTokenizer_nextToken(). Tokens are returned as Token_t + * FormulaTokenizer_nextToken(). Tokens are returned as #Token_t * structures. * * @param formula the text string that contains the mathematical formula to * be tokenized. * - * @return a FormulaTokenizer_t object that tracks the state of tokenizing + * @return a FormulaTokenizer_t structure that tracks the state of tokenizing * the string. * * @see FormulaTokenizer_nextToken() * @see FormulaTokenizer_free() * - * @copydetails doc_note_l3_parser_encouraged + * @copydetails doc_note_math_string_syntax * * @if conly * @memberof FormulaTokenizer_t @@ -229,7 +237,7 @@ /** - * Frees the given FormulaTokenizer_t object @p ft. + * Frees the given FormulaTokenizer_t structure @p ft. * * @if conly * @memberof FormulaTokenizer_t @@ -248,13 +256,13 @@ * Levels 2 and 3. LibSBML implements a parser and converter to * translate formulas between this text-string representation and MathML. * The first entry point is the function - * FormulaTokenizer_createFromFormula(), which returns a FormulaTokenizer_t + * FormulaTokenizer_createFromFormula(), which returns a #FormulaTokenizer_t * structure. The structure tracks the current position in the string to * be tokenized, and can be handed to other functions such as - * FormulaTokenizer_nextToken(). Tokens are returned as Token_t + * FormulaTokenizer_nextToken(). Tokens are returned as #Token_t * structures. * - * An instance of a FormulaTokenizer_t maintains its own internal copy of + * An instance of a #FormulaTokenizer_t maintains its own internal copy of * the formula being tokenized and the current position within the formula * string. Callers do not need to manipulate the fields of a * FormulaTokenizer_t structure themselves; instances of FormulaTokenizer_t @@ -262,7 +270,7 @@ * tokenizer system, such as FormulaTokenizer_createFromFormula() and * FormulaTokenizer_getName(). * - * @param ft the object tracking the current tokenization state. + * @param ft the structure tracking the current tokenization state. * * @return a pointer to a token. If no more tokens are available, the * token type will be @c TT_END. Please consult the documentation for the @@ -272,7 +280,7 @@ * @see FormulaTokenizer_free() * @see FormulaTokenizer_createFromFormula() * - * @copydetails doc_note_l3_parser_encouraged + * @copydetails doc_note_math_string_syntax * * @if conly * @memberof FormulaTokenizer_t @@ -284,7 +292,6 @@ /** @cond doxygenLibsbmlInternal */ - /** * Creates a new Token and returns a point to it. * @@ -314,8 +321,8 @@ /** * Returns the value of this token as a (long) integer. * - * This function should be called only when the token's type is @c - * TT_INTEGER. If the type is @c TT_REAL or @c TT_REAL_E, the function + * This function should be called only when the token's type is + * @c TT_INTEGER. If the type is @c TT_REAL or @c TT_REAL_E, the function * will cope by truncating the number's fractional part. * * @param t the token to be parsed into an integer. @@ -367,7 +374,6 @@ END_C_DECLS LIBSBML_CPP_NAMESPACE_END - /** @endcond */ #endif /** FormulaTokenizer_h **/ Modified: trunk/libsbml/src/sbml/math/L3FormulaFormatter.h =================================================================== --- trunk/libsbml/src/sbml/math/L3FormulaFormatter.h 2019-08-01 20:32:30 UTC (rev 26101) +++ trunk/libsbml/src/sbml/math/L3FormulaFormatter.h 2019-08-01 21:45:12 UTC (rev 26102) @@ -60,40 +60,22 @@ * @copydetails doc_summary_of_string_math_l3 * * @param tree the AST to be converted. - * - * @return the formula from the given AST as an SBML Level 3 text-string - * mathematical formula. The caller owns the returned string and is - * responsible for freeing it when it is no longer needed. * - * @if clike @see SBML_formulaToL3String() - * @see SBML_parseL3FormulaWithSettings() - * @see SBML_parseL3Formula() - * @see SBML_parseL3FormulaWithModel() - * @see SBML_getLastParseL3Error() - * @see SBML_getDefaultL3ParserSettings() - * @endif@~ - * @if csharp @see SBML_formulaToL3String() - * @see SBML_parseL3FormulaWithSettings() - * @see SBML_parseL3Formula() - * @see SBML_parseL3FormulaWithModel() - * @see SBML_getLastParseL3Error() - * @see SBML_getDefaultL3ParserSettings() - * @endif@~ - * @if python @see libsbml.formulaToString() - * @see libsbml.parseL3FormulaWithSettings() - * @see libsbml.parseL3Formula() - * @see libsbml.parseL3FormulaWithModel() - * @see libsbml.getLastParseL3Error() - * @see libsbml.getDefaultL3ParserSettings() - * @endif@~ - * @if java @see <code><a href="libsbml.html#formulaToString(org.sbml.libsbml.ASTNode tree)">libsbml.formulaToString(ASTNode tree)</a></code> - * @see <code><a href="libsbml.html#parseL3FormulaWithSettings(java.lang.String, org.sbml.libsbml.L3ParserSettings)">libsbml.parseL3FormulaWithSettings(String formula, L3ParserSettings settings)</a></code> - * @see <code><a href="libsbml.html#parseL3Formula(java.lang.String)">libsbml.parseL3Formula(String formula)</a></code> - * @see <code><a href="libsbml.html#parseL3FormulaWithModel(java.lang.String, org.sbml.libsbml.Model)">parseL3FormulaWithModel(String formula, Model model)</a></code> - * @see <code><a href="libsbml.html#getLastParseL3Error()">getLastParseL3Error()</a></code> - * @see <code><a href="libsbml.html#getDefaultL3ParserSettings()">getDefaultL3ParserSettings()</a></code> - * @endif@~ + * @return the formula from the given AST as text string, with a syntax + * oriented towards the capabilities defined in SBML Level 3. The + * caller owns the returned string and is responsible for freeing it when it + * is no longer needed. If @p tree is a null pointer, then a null pointer is + * returned. * + * @see @sbmlfunction{formulaToL3StringWithSettings, ASTNode\, L3ParserSettings} + * @see @sbmlfunction{formulaToString, ASTNode} + * @see @sbmlfunction{parseL3FormulaWithSettings, String\, L3ParserSettings} + * @see @sbmlfunction{parseL3FormulaWithModel, String\, Model} + * @see @sbmlfunction{parseFormula, String} + * @see L3ParserSettings + * @see @sbmlfunction{getDefaultL3ParserSettings,} + * @see @sbmlfunction{getLastParseL3Error,} + * * @if conly * @memberof ASTNode_t * @endif @@ -104,42 +86,60 @@ /** - * Converts an AST to a string representation of a formula using a syntax - * basically derived from SBML Level 1, with behavior modifiable with - * custom settings. + * Converts an AST to a text string representation of a formula, using + * specific formatter settings. * - * This function behaves identically to SBML_formulaToL3String(), but - * its behavior can be modified by two settings in the @param settings - * object, namely: + * This function behaves identically to @sbmlfunction{formulaToL3String, + * ASTNode} but its behavior is controlled by two fields in the @p + * settings object, namely: * - * @li ParseUnits: If this is set to 'true' (the default), the function will - * write out the units of any numerical ASTNodes that have them, producing - * (for example) "3 mL", "(3/4) m", or "5.5e-10 M". If this is set to - * 'false', this function will only write out the number itself ("3", - * "(3/4)", and "5.5e-10", in the previous examples). + * @li <em>parseunits</em> ("parse units"): If this field in the @p settings + * object is set to <code>true</code> (the default), the function will + * write out the units of any numerical ASTNodes that have them, + * producing (for example) "<code>3 mL</code>", + * "<code>(3/4) m</code>", or "<code>5.5e-10 + * M</code>". If this is set to <code>false</code>, this function + * will only write out the number itself ("<code>3</code>", + * "<code>(3/4)</code>", and "<code>5.5e-10</code>", + * in the previous examples). + * @li <em>collapseminus</em> ("collapse minus"): If this field in the @p + * settings object is set to <code>false</code> (the default), the + * function will write out explicitly any doubly-nested unary minus + * ASTNodes, producing (for example) "<code>- -x</code>" or + * even "<code>- - - - -3.1</code>". If this is set to + * <code>true</code>, the function will collapse the nodes before + * producing the infix form, producing "<code>x</code>" and + * "<code>-3.1</code>" in the previous examples. * - * @li CollapseMinus: If this is set to 'false' (the default), the function - * will write out explicitly any doubly-nested unary minus ASTNodes, - * producing (for example) "--x" or even "-----3.1". If this is set - * to 'true', the function will collapse the nodes before producing the - * infix, producing "x" and "-3.1" in the previous examples. + * All the other settings of the L3ParserSettings object passed in as @p + * settings will be ignored for the purposes of this function: the + * <em>parselog</em> ("parse log") setting is ignored so that + * "<code>log10(x)</code>", "<code>ln(x)</code>", and + * "<code>log(x, y)</code>" are always produced; the + * <em>avocsymbol</em> ("Avogadro csymbol") is irrelevant to the behavior + * of this function; and nothing in the Model object set via the + * <em>model</em> setting is used. * - * All other settings will not affect the behavior of this function: the - * 'parseLog' setting is ignored, and "log10(x)", "ln(x)", and "log(x, y)" - * are always produced. Nothing in the Model object is used, and whether - * Avogadro is a csymbol or not is immaterial to the produced infix. - * * @param tree the AST to be converted. - * @param settings the L3ParserSettings object used to modify behavior. - * - * @return the formula from the given AST as an SBML Level 3 text-string - * mathematical formula. The caller owns the returned string and is - * responsible for freeing it when it is no longer needed. + + * @param settings the L3ParserSettings object used to modify the behavior of + * this function. * - * @see SBML_parseFormula() - * @see SBML_parseL3Formula() - * @see SBML_formulaToL3String() + * @return the formula from the given AST as text string, with a syntax + * oriented towards the capabilities defined in SBML Level 3. The + * caller owns the returned string and is responsible for freeing it when it + * is no longer needed. If @p tree is a null pointer, then a null pointer is + * returned. * + * @see @sbmlfunction{formulaToL3String, ASTNode} + * @see @sbmlfunction{formulaToString, ASTNode} + * @see @sbmlfunction{parseL3FormulaWithSettings, String\, L3ParserSettings} + * @see @sbmlfunction{parseL3FormulaWithModel, String\, Model} + * @see @sbmlfunction{parseFormula, String} + * @see L3ParserSettings + * @see @sbmlfunction{getDefaultL3ParserSettings,} + * @see @sbmlfunction{getLastParseL3Error,} + * * @if conly * @memberof ASTNode_t * @endif @@ -155,7 +155,7 @@ /** - * @return true (nonzero) if the given ASTNode is to be + * @return @c 1 (true) if the given ASTNode_t is to be * formatted as a function. */ int @@ -163,8 +163,8 @@ /** - * @return true (nonzero) if the given child ASTNode should be grouped - * (with parenthesis), false (0) otherwise. + * @return @c 1 (true) if the given child ASTNode_t should be grouped + * (with parenthesis), @c 0 (false) otherwise. * * A node should be group if it is not an argument to a function and * either: @@ -180,8 +180,8 @@ /** - * Formats the given ASTNode as an SBML L1 token and appends the result to - * the given StringBuffer. + * Formats the given ASTNode_t as an SBML L1 token and appends the result to + * the given StringBuffer_t. */ void L3FormulaFormatter_format (StringBuffer_t *sb, const ASTNode_t *node, const L3ParserSettings_t *settings); @@ -188,8 +188,8 @@ /** - * Formats the given ASTNode as an SBML L1 function name and appends the - * result to the given StringBuffer. + * Formats the given ASTNode_t as an SBML L1 function name and appends the + * result to the given StringBuffer_t. */ void L3FormulaFormatter_formatFunction (StringBuffer_t *sb, const ASTNode_t *node, const L3ParserSettings_t *settings); @@ -196,19 +196,19 @@ /** - * Formats the given ASTNode as an SBML L3 operator and appends the result - * to the given StringBuffer. + * Formats the given ASTNode_t as an SBML L3 operator and appends the result + * to the given StringBuffer_t. */ void L3FormulaFormatter_formatOperator (StringBuffer_t *sb, const ASTNode_t *node); /** - * Formats the given ASTNode as a rational number and appends the result to - * the given StringBuffer. This amounts to: + * Formats the given ASTNode_t as a rational number and appends the result to + * the given StringBuffer_t. This amounts to: * * "(numerator/denominator)" * - * If the ASTNode has defined units, and the settings object is set to parse units, this function will append + * If the ASTNode_t has defined units, and the settings object is set to parse units, this function will append * a string with that unit name. */ void @@ -216,10 +216,10 @@ /** - * Formats the given ASTNode as a real number and appends the result to - * the given StringBuffer. + * Formats the given ASTNode_t as a real number and appends the result to + * the given StringBuffer_t. * - * If the ASTNode has defined units, and the settings object is set to parse units, this function will append + * If the ASTNode_t has defined units, and the settings object is set to parse units, this function will append * a string with that unit name. */ void @@ -227,14 +227,14 @@ /** - * Formats the given logical or relational ASTNode as an infix - * internal operator and appends the result to the given StringBuffer. + * Formats the given logical or relational ASTNode_t as an infix + * internal operator and appends the result to the given StringBuffer_t. */ void L3FormulaFormatter_formatLogicalRelational(StringBuffer_t *sb, const ASTNode_t *node); /** - * Visits the given ASTNode node. This function is really just a + * Visits the given ASTNode_t node. This function is really just a * dispatcher to either SBML_formulaToL3String_visitFunction() or * SBML_formulaToL3String_visitOther(). */ @@ -246,7 +246,7 @@ /** - * Visits the given ASTNode as a function. For this node only the + * Visits the given ASTNode_t as a function. For this node only the * traversal is preorder. */ void @@ -257,7 +257,7 @@ /** - * Visits the given ASTNode as the function "log(10, x)" and in doing so, + * Visits the given ASTNode_t as the function "log(10, x)" and in doing so, * formats it as "log10(x)" (where x is any subexpression). */ void @@ -268,7 +268,7 @@ /** - * Visits the given ASTNode as the function "root(2, x)" and in doing so, + * Visits the given ASTNode_t as the function "root(2, x)" and in doing so, * formats it as "sqrt(x)" (where x is any subexpression). */ void @@ -279,7 +279,7 @@ /** - * Visits the given ASTNode as a unary minus. For this node only the + * Visits the given ASTNode_t as a unary minus. For this node only the * traversal is preorder. */ void @@ -290,7 +290,7 @@ /** - * Visits the given ASTNode as a unary not. + * Visits the given ASTNode_t as a unary not. */ void L3FormulaFormatter_visitUNot ( const ASTNode_t *parent, @@ -298,7 +298,7 @@ StringBuffer_t *sb, const L3ParserSettings_t *settings ); /** - * Visits the given ASTNode, translating it from the complicated + * Visits the given ASTNode_t, translating it from the complicated * piecewise function to the much simpler 'x % y' form. */ void @@ -307,8 +307,8 @@ StringBuffer_t *sb, const L3ParserSettings_t *settings ); - /** - * Visits the given ASTNode and continues the inorder traversal. +/** + * Visits the given ASTNode_t and continues the inorder traversal. */ void L3FormulaFormatter_visitOther ( const ASTNode_t *parent, @@ -321,7 +321,6 @@ END_C_DECLS LIBSBML_CPP_NAMESPACE_END - /** @endcond */ #endif /* L3FormulaFormatter_h */ Modified: trunk/libsbml/src/sbml/math/L3ParserSettings.h =================================================================== --- trunk/libsbml/src/sbml/math/L3ParserSettings.h 2019-08-01 20:32:30 UTC (rev 26101) +++ trunk/libsbml/src/sbml/math/L3ParserSettings.h 2019-08-01 21:45:12 UTC (rev 26102) @@ -103,8 +103,8 @@ * "<code>pi</code>", and the formula to be parsed is * "<code>3*pi</code>", the MathML produced will contain the * construct <code><ci> pi </ci></code> instead of the construct - * <code><pi/></code>. Similarly, when a Model object is provided, @c - * SId values of user-defined functions present in the Model will be used + * <code><pi/></code>. Similarly, when a Model object is provided, + * @c SId values of user-defined functions present in the Model will be used * preferentially over pre-defined MathML functions. For example, if the * passed-in Model contains a FunctionDefinition with the identifier * "<code>sin</code>", that function will be used instead of the @@ -199,7 +199,7 @@ * @class doc_modulo_l3v2_settings * * @par - * This setting affects whether the '%' symbol (modulo) is parsed as a + * This setting affects whether the @% symbol (modulo) is parsed as a * piecewise equation that returns the modulo value of the entries on * either side of the symbol, or whether it is parsed as the MathML * 'rem' function, which was allowed in SBML Level 3 Version 2, @@ -220,7 +220,7 @@ * * @par * This setting affects whether the names of functions added in SBML - * Level 3 Version 2 are parsed as those added MathML functions, + * Level 3 Version 2 are parsed as those added MathML functions, * or whether they are added as generic functions with those names (to * be used in SBML as function definitions). * @@ -227,8 +227,10 @@ * @class doc_l3v2_function_values * * <ul> - * <li> @sbmlconstant{L3P_PARSE_L3V2_FUNCTIONS_DIRECTLY,} (value = @c true): parse the - * strings 'rateOf', 'implies', 'max', 'min', 'quotient', and 'rem' as + * <li> @sbmlconstant{L3P_PARSE_L3V2_FUNCTIONS_DIRECTLY,} (value = @c true): + * parse the strings <code>rateOf</code>, <code>implies</code>, + * <code>max</code>, <code>min</code>, <code>quotient</code>, and + * <code>rem</code> as * @sbmlconstant{AST_FUNCTION_RATE_OF,ASTNodeType_t}, * @sbmlconstant{AST_LOGICAL_IMPLIES,ASTNodeType_t}, * @sbmlconstant{AST_FUNCTION_MAX,ASTNodeType_t}, @@ -235,9 +237,11 @@ * @sbmlconstant{AST_FUNCTION_MIN,ASTNodeType_t}, * @sbmlconstant{AST_FUNCTION_QUOTIENT,ASTNodeType_t}, and * @sbmlconstant{AST_FUNCTION_REM,ASTNodeType_t}, respectively. - * <li> @sbmlconstant{L3P_PARSE_L3V2_FUNCTIONS_AS_GENERIC,} (value = @c false): - * parse the strings 'rateOf', 'implies', 'max', 'min', 'quotient', and - * 'rem' all as @sbmlconstant{AST_FUNCTION,ASTNodeType_t} with the appropriate + * <li> @sbmlconstant{L3P_PARSE_L3V2_FUNCTIONS_AS_GENERIC,} (value = @c false): + * parse the strings <code>rateOf</code>, <code>implies</code>, + * <code>max</code>, <code>min</code>, <code>quotient</code>, and + * <code>rem</code> all as + * @sbmlconstant{AST_FUNCTION,ASTNodeType_t} with the appropriate * name set. * </ul> * @@ -372,7 +376,7 @@ #define L3P_COMPARE_BUILTINS_CASE_SENSITIVE true /** - * Parse the '%' symbol as the l3v2-allowed 'rem' symbol. + * Parse the @% symbol as the l3v2-allowed 'rem' symbol. * * @see L3ParserSettings::getParseModuloL3v2() * @see L3ParserSettings::setParseModuloL3v2() @@ -380,7 +384,7 @@ #define L3P_MODULO_IS_REM true /** - * Parse the '%' symbol as an expanded 'piecewise' function (valid in all levels/versions). + * Parse the @% symbol as an expanded 'piecewise' function (valid in all levels/versions). * * @see L3ParserSettings::getParseModuloL3v2() * @see L3ParserSettings::setParseModuloL3v2() @@ -397,7 +401,7 @@ #define L3P_PARSE_L3V2_FUNCTIONS_DIRECTLY true /** - * Parse the '%' symbol as an expanded 'piecewise' function (valid in all levels/versions). + * Parse the @% symbol as an expanded 'piecewise' function (valid in all levels/versions). * * @see L3ParserSettings::getParseL3v2Functions() * @see L3ParserSettings::setParseL3v2Functions() @@ -551,8 +555,8 @@ * it may understand vector/array extensions introduced by the SBML * Level 3 @em Arrays package. * - * @param moduloL3v2 ("modulo l3v2") a flag that controls how the - * parser will handle the '%' ('modulo') symbol in formulas. By default, + * @param moduloL3v2 ("modulo L3v2") a flag that controls how the + * parser will handle the @% ('modulo') symbol in formulas. By default, * the parser will convert 'a % b' to a piecewise function that properly * calculates the remainder of a with respect to be, but the parser can * also be set to produce the MathML @c rem function, should the target @@ -559,16 +563,15 @@ * of the produced ASTNode be an SBML Level 3 Version 2 * document, where the @c rem function is legal. * The possible values of this field are - * @sbmlconstant{L3P_MODULO_IS_PIECEWISE,} (to parse '%' as a piecewise function) and - * @sbmlconstant{L3P_MODULO_IS_REM,} (to parse '%' as @c rem). + * @sbmlconstant{L3P_MODULO_IS_PIECEWISE,} (to parse @% as a piecewise function) and + * @sbmlconstant{L3P_MODULO_IS_REM,} (to parse @% as @c rem). * - * @param l3v2functions ("l3v2 functions") a flag that controls how the - * parser will handle the functions added to SBML Level~3 Version~2 (namely, - * 'rateOf', 'implies', 'max', 'min', 'quotient', and 'rem'). By - * default, the parser will convert them to FunctionDefinitions with those names, - * but if set to @c true ( - * (@sbmlconstant{L3P_PARSE_L3V2_FUNCTIONS_DIRECTLY,}), the parser will convert - * them to their respective L3v2 equivalents. + * @param l3v2functions ("parse L3v2 functions directly") is a Boolean flag + * that controls how to translate certain mathematical functions added in SBML + * Level 3 Version 2 Core. The parser can either turn them into + * specific AST node types, or turn them all into + * @sbmlconstant{AST_FUNCTION,ASTNodeType_t} with the name set to the + * function name in question. * * @ifnot hasDefaultArgs @htmlinclude warn-default-args-in-docs.html @endif@~ * @@ -828,8 +831,8 @@ * * @copydetails doc_case_sensitivity * - * @param strcmp a boolean indicating whether to be case sensitive (if @c - * true) or be case insensitive (if @c false). + * @param strcmp a boolean indicating whether to be case sensitive (if + * @c true) or be case insensitive (if @c false). * * @see getComparisonCaseSensitivity() */ @@ -852,13 +855,13 @@ /** - * Sets the behavior for handling the '%' sumbol in mathematical + * Sets the behavior for handling the @% symbol in mathematical * formulas. * * @copydetails doc_modulo_l3v2_settings * * This method lets you tell the parser which behavior to use---either - * parse '%' as the 'rem' function or as a piecewise function with the + * parse @% as the 'rem' function or as a piecewise function with the * same interpretation. The two possibilities are * represented using the following constants: * @@ -867,7 +870,7 @@ * @param modulol3v2 a boolean value (one of the constants * @sbmlconstant{L3P_MODULO_IS_PIECEWISE,} or * @sbmlconstant{L3P_MODULO_IS_REM,}) - * indicating how the '%' symbol in the input should be handled. + * indicating how the @% symbol in the input should be handled. * * @see getParseModuloL3v2() */ @@ -875,7 +878,7 @@ /** - * Indicates the current behavior set for handling the '%' sumbol in + * Indicates the current behavior set for handling the @% symbol in * mathematical formulas. * * @copydetails doc_modulo_l3v2_settings @@ -1055,8 +1058,10 @@ * Creates a new L3ParserSettings_t structure and returns a pointer to it * * @note This functions sets the Model* to NULL, and other settings to - * L3P_PARSE_LOG_AS_LOG10, L3P_EXPAND_UNARY_MINUS, L3P_PARSE_UNITS, - * and L3P_AVOGADRO_IS_CSYMBOL. + * @sbmlconstant{L3P_PARSE_LOG_AS_LOG10,ParseLogType_t}, + * @sbmlconstant{L3P_EXPAND_UNARY_MINUS,}, + * @sbmlconstant{L3P_PARSE_UNITS,}, and + * @sbmlconstant{L3P_AVOGADRO_IS_CSYMBOL,}. * * @return a pointer to the newly created L3ParserSettings_t structure. * @@ -1127,9 +1132,9 @@ * * This option allows the user to specify how the infix expression 'log(x)' * is parsed in a MathML ASTNode. The options are: - * @li L3P_PARSE_LOG_AS_LOG10 (0) - * @li L3P_PARSE_LOG_AS_LN (1) - * @li L3P_PARSE_LOG_AS_ERROR (2) + * @li @sbmlconstant{L3P_PARSE_LOG_AS_LOG10,ParseLogType_t} (0) + * @li @sbmlconstant{L3P_PARSE_LOG_AS_LN,ParseLogType_t} (1) + * @li @sbmlconstant{L3P_PARSE_LOG_AS_ERROR,ParseLogType_t} (2) * * @param settings the L3ParserSettings_t structure on which to set the option. * @param type ParseLogType_t log parsing option to associate with this @@ -1147,15 +1152,15 @@ * * This option allows the user to specify how the infix expression 'log(x)' * is parsed in a MathML ASTNode. The options are: - * @li L3P_PARSE_LOG_AS_LOG10 (0) - * @li L3P_PARSE_LOG_AS_LN (1) - * @li L3P_PARSE_LOG_AS_ERROR (2) + * @li @sbmlconstant{L3P_PARSE_LOG_AS_LOG10,ParseLogType_t} (0) + * @li @sbmlconstant{L3P_PARSE_LOG_AS_LN,ParseLogType_t} (1) + * @li @sbmlconstant{L3P_PARSE_LOG_AS_ERROR,ParseLogType_t} (2) * * @param settings the L3ParserSettings_t structure on which to set the Model_t. * * @return ParseLogType_t log parsing option to associate with this - * L3ParserSettings_t structure. Returns L3P_PARSE_LOG_AS_LOG10 (0) if @param settings - * is NULL. + * L3ParserSettings_t structure. Returns @sbmlconstant{L3P_PARSE_LOG_AS_LOG10,ParseLogType_t} (0) if @p settings + * is @c NULL. * * @memberof L3ParserSettings_t */ @@ -1167,12 +1172,13 @@ /** * Sets the collapse minus option associated with this L3ParserSettings_t structure. * - * This option allows the user to specify how the infix expression '-4' - * is parsed in a MathML ASTNode. + * This option allows the user to specify how infix expressions like '- -4' + * are parsed in a MathML ASTNode. * * @param settings the L3ParserSettings_t structure on which to set the option. * @param flag an integer indicating whether unary minus should be collapsed - * (nonzero) or not (zero). + * (@c 1 ; true) or not (@c 0 ; false). Returns + * @c 0 (false) if @p settings is @c NULL. * * @memberof L3ParserSettings_t */ @@ -1184,14 +1190,14 @@ /** * Retrieves the collapse minus option associated with this L3ParserSettings_t structure. * - * This option allows the user to specify how the infix expression '-4' - * is parsed in a MathML ASTNode. + * This option allows the user to specify how infix expressions like '- -4' + * are parsed in a MathML ASTNode. * * @param settings the L3ParserSettings_t structure from which to get the option. * * @return an integer indicating whether unary minus should be collapsed - * (nonzero) or not (zero). Returns zero (0) if @param settings - * is NULL. + * (@c 1 ; true) or not (@c 0 ; false). Returns + * @c 0 (false) if @p settings is @c NULL. * * @memberof L3ParserSettings_t */ @@ -1205,7 +1211,8 @@ * * @param settings the L3ParserSettings_t structure on which to set the option. * @param flag an integer indicating whether numbers should be considered as - * a having units (nonzero) or not (zero). + * a having units (@c 1 ; true) or not (@c 0 ; false). Returns + * @c 0 (false) if @p settings is @c NULL. * * @memberof L3ParserSettings_t */ @@ -1220,8 +1227,8 @@ * @param settings the L3ParserSettings_t structure from which to get the option. * * @return an integer indicating whether numbers should be considered as - * a having units (nonzero) or not (zero). Returns zero (0) if @param settings - * is NULL. + * a having units (@c 1 ; true) or not (@c 0 ; false). Returns + * @c 0 (false) if @p settings is @c NULL. * * @memberof L3ParserSettings_t */ @@ -1235,7 +1242,8 @@ * * @param settings the L3ParserSettings_t structure on which to set the option. * @param flag an integer indicating whether avogadro should be considered as - * a csymbol (nonzero) or not (zero). + * a csymbol (@c 1 ; true) or not (@c 0 ; false). Returns @c 0 (false) if @p settings + * is @c NULL. * * @memberof L3ParserSettings_t */ @@ -1250,8 +1258,8 @@ * @param settings the L3ParserSettings_t structure from which to get the option. * * @return an integer indicating whether avogadro should be considered as - * a csymbol (nonzero) or not (zero). Returns zero (0) if @param settings - * is NULL. + * a csymbol (@c 1 ; true) or not (@c 0 ; false). Returns @c 0 (false) if + * @p settings is @c NULL. * * @memberof L3ParserSettings_t */ @@ -1261,28 +1269,27 @@ /** -* Sets the behavior for handling the '%' sumbol in mathematical -* formulas. -* -* @copydetails doc_modulo_l3v2_settings -* -* This method lets you tell the parser which behavior to use---either -* collapse minuses or always preserve them. The two possibilities are -* represented using the following constants: -* -* @copydetails doc_modulo_l3v2_values -* -* @param settings the L3ParserSettings_t structure from which to get the option. -* -* @param modulol3v2 a boolean value (one of the constants -* @sbmlconstant{L3P_MODULO_IS_PIECEWISE,} or -* @sbmlconstant{L3P_MODULO_IS_REM,}) -* indicating how the '%' symbol in the input should be handled. -* -* @see getParseModuloL3v2() -* -* @memberof L3ParserSettings_t -*/ + * Sets the behavior for handling the @% symbol in mathematical + * formulas. + * + * @copydetails doc_modulo_l3v2_settings + * + * This method lets you tell the parser which behavior to use---either + * collapse minuses or always preserve them. The two possibilities are + * represented using the following constants: + * + * @copydetails doc_modulo_l3v2_values + * + * @param settings the L3ParserSettings_t structure to modify. + * @param modulol3v2 a boolean value (one of the constants + * @sbmlconstant{L3P_MODULO_IS_PIECEWISE,} or + * @sbmlconstant{L3P_MODULO_IS_REM,}) + * indicating how the @% symbol in the input should be handled. + * + * @see L3ParserSettings_getParseModuloL3v2() + * + * @memberof L3ParserSettings_t + */ LIBSBML_EXTERN void L3ParserSettings_setParseModuloL3v2(const L3ParserSettings_t * settings, int modulol3v2); @@ -1289,19 +1296,19 @@ /** -* Indicates the current behavior set for handling the '%' sumbol in -* mathematical formulas. -* -* @copydetails doc_modulo_l3v2_settings -* -* @return A boolean indicating the behavior currently set. The possible -* values are as follows: -* @copydetails doc_unary_minus_values -* -* @see setParseModuloL3v2(@if java boolean@endif) -* -* @memberof L3ParserSettings_t -*/ + * Indicates the current behavior set for handling the @% symbol in + * mathematical formulas. + * + * @copydetails doc_modulo_l3v2_settings + * + * @return a boolean indicating the behavior currently set. The possible + * values are as follows: + * @copydetails doc_modulo_l3v2_values + * + * @see L3ParserSettings_setParseModuloL3v2(@if java boolean@endif) + * + * @memberof L3ParserSettings_t + */ LIBSBML_EXTERN int L3ParserSettings_getParseModuloL3v2(const L3ParserSettings_t * settings); Modified: trunk/libsbml/src/sbml/math/MathML.h =================================================================== --- trunk/libsbml/src/sbml/math/MathML.h 2019-08-01 20:32:30 UTC (rev 26101) +++ trunk/libsbml/src/sbml/math/MathML.h 2019-08-01 21:45:12 UTC (rev 26102) @@ -70,7 +70,7 @@ /** - * Writes the given ASTNode (and its children) to the XMLOutputStream as + * Writes the given ASTNode (and its children) to the XMLOutputStream_t as * MathML. */ LIBSBML_EXTERN @@ -90,7 +90,7 @@ * of the given AST on success or an empty string, * if one of the underlying parser * components fail. - * + * */ LIBSBML_EXTERN std::string @@ -97,15 +97,15 @@ writeMathMLToStdString(const ASTNode* node); /** -* Writes the given ASTNode to an in-memory string that is returned. + * Writes the given ASTNode to an in-memory string that is returned. * -* @param node the root of an AST to write out to the string. -* @param ns the optional sbml namespace to be used when specifying units + * @param node the root of an AST to write out to the string. + * @param ns the optional sbml namespace to be used when specifying units * -* @return the string containing the written-out MathML representation -* of the given AST on success or an empty string, -* if one of the underlying parser -* components fail. + * @return the string containing the written-out MathML representation + * of the given AST on success or an empty string, + * if one of the underlying parser + * components fail. * */ LIBSBML_EXTERN @@ -127,7 +127,7 @@ * Reads the MathML from the given XML string, constructs a corresponding * abstract syntax tree, and returns a pointer to the root of the tree. * - * @param xml a string containing a full MathML expression + * @param xml a string containing a full MathML expression. * * @return the root of an AST corresponding to the given mathematical * expression, otherwise @c NULL is returned if the given string is @c NULL @@ -146,7 +146,7 @@ * Reads the MathML from the given XML string, constructs a corresponding * abstract syntax tree, and returns a pointer to the root of the tree. * - * @param xml a string containing a full MathML expression + * @param xml a string containing a full MathML expression. * @param xmlns an @if conly XMLNamespaces_t structure @else XMLNamespaces * object@endif@~ containing namespaces that are considered active during the * read. (For example, an SBML Level 3 package namespace.) @@ -165,7 +165,7 @@ /** - * Writes the given ASTNode (and its children) to a string as MathML, and + * Writes the given AST node (and its children) to a string as MathML, and * returns the string. * * @param node the root of an AST to write out to the stream. @@ -187,23 +187,23 @@ /** -* Writes the given AST node (and its children) to a string as MathML, and -* returns the string. -* -* @param node the root of an AST to write out to the stream. -* @param sbmlns the SBML namespace to be used -* -* @return a string containing the written-out MathML representation -* of the given AST. -* -* @note The string is owned by the caller and should be freed (with -* free()) when no longer needed. @c NULL is returned if the given -* argument is @c NULL. -* -* @if conly -* @memberof ASTNode_t -* @endif -*/ + * Writes the given AST node (and its children) to a string as MathML, and + * returns the string. + * + * @param node the root of an AST to write out to the stream. + * @param sbmlns the SBML namespace to be used + * + * @return a string containing the written-out MathML representation + * of the given AST. + * + * @note The string is owned by the caller and should be freed (with + * free()) when no longer needed. @c NULL is returned if the given + * argument is @c NULL. + * + * @if conly + * @memberof ASTNode_t + * @endif + */ LIBSBML_EXTERN char * writeMathMLWithNamespaceToString(const ASTNode_t* node, SBMLNamespaces_t* sbmlns); |
From: <luc...@us...> - 2019-08-01 20:32:41
|
Revision: 26101 http://sourceforge.net/p/sbml/code/26101 Author: luciansmith Date: 2019-08-01 20:32:30 +0000 (Thu, 01 Aug 2019) Log Message: ----------- Pull changes from old version of documentation to this version (which had gotten clobbered in the math-legacy -> math transition). * Lots of changes to ASTNode.h * Other changes from 'non-zero' to 'nonzero'. Modified Paths: -------------- trunk/libsbml/src/sbml/math/ASTNode.cpp trunk/libsbml/src/sbml/math/ASTNode.h trunk/libsbml/src/sbml/math/FormulaFormatter.cpp trunk/libsbml/src/sbml/math/FormulaFormatter.h trunk/libsbml/src/sbml/math/L3FormulaFormatter.cpp trunk/libsbml/src/sbml/math/L3FormulaFormatter.h trunk/libsbml/src/sbml/math/L3ParserSettings.h Modified: trunk/libsbml/src/sbml/math/ASTNode.cpp =================================================================== --- trunk/libsbml/src/sbml/math/ASTNode.cpp 2019-07-31 21:09:07 UTC (rev 26100) +++ trunk/libsbml/src/sbml/math/ASTNode.cpp 2019-08-01 20:32:30 UTC (rev 26101) @@ -1084,7 +1084,7 @@ * * int (*ASTNodePredicate) (const ASTNode_t *node); * - * where a return value of non-zero represents true and zero represents + * where a return value of nonzero represents true and zero represents * false. * * The List returned is owned by the caller and should be deleted. The Modified: trunk/libsbml/src/sbml/math/ASTNode.h =================================================================== --- trunk/libsbml/src/sbml/math/ASTNode.h 2019-07-31 21:09:07 UTC (rev 26100) +++ trunk/libsbml/src/sbml/math/ASTNode.h 2019-08-01 20:32:30 UTC (rev 26101) @@ -125,14 +125,14 @@ * * @copydetails doc_note_l3_parser_encouraged * - * @if clike @see SBML_parseL3Formula()@endif@~ - * @if csharp @see SBML_parseL3Formula()@endif@~ - * @if python @see libsbml.parseL3Formula()@endif@~ - * @if java @see <code><a href="libsbml.html#parseL3Formula(String formula)">libsbml.parseL3Formula(String formula)</a></code>@endif@~ - * @if clike @see SBML_parseFormula()@endif@~ - * @if csharp @see SBML_parseFormula()@endif@~ - * @if python @see libsbml.parseFormula()@endif@~ - * @if java @see <code><a href="libsbml.html#parseFormula(String formula)">libsbml.parseFormula(String formula)</a></code>@endif@~ + * @see @sbmlfunction{parseL3Formula, String} + * @see @sbmlfunction{parseL3FormulaWithSettings, String\, L3ParserSettings} + * @see @sbmlfunction{parseL3FormulaWithModel, String\, Model} + * @see @sbmlfunction{parseFormula, String} + * @see @sbmlfunction{formulaToL3StringWithSettings, ASTNode\, L3ParserSettings} + * @see @sbmlfunction{formulaToL3String, ASTNode} + * @see @sbmlfunction{formulaToString, ASTNode} + * @see @sbmlfunction{getDefaultL3ParserSettings,} */ /** @@ -153,6 +153,18 @@ * formulas. The method @if conly ASTNode_isWellFormedASTNode()@else * ASTNode::isWellFormedASTNode()@endif@~ may also be useful for checking the * results of node modifications. + * <!-- ------------------------------------------------------------------- --> + * @class doc_note_mathml_semantic_annotations_uncommon + * + * @note Although SBML permits the use of the MathML + * <code><semantics></code> annotation construct, the truth is that + * this construct has so far (at this time of this writing, which is early + * 2014) seen very little use in SBML software. The full implications of + * using these annotations are still poorly understood. If you wish to + * use this construct, we urge you to discuss possible uses and applications + * on the SBML discussion lists, particularly <a target="_blank" + * href="http://sbml.org/Forums">sbml-discuss</a> and/or <a target="_blank" + * href="http://sbml.org/Forums">sbml-interoperability</a>. */ #ifndef ASTNode_h @@ -183,7 +195,7 @@ * and @if conly ASTNode_getListOfNodes() @else ASTNode::getListOfNodes() @endif. * * A pointer to a function that takes an ASTNode and returns @if conly @c 1 - * (true) or @c 0 (false) @else @c true (non-zero) or @c false (0)@endif. + * (true) or @c 0 (false) @else @c true (nonzero) or @c false (0)@endif. * * @if conly @see ASTNode_getListOfNodes()@else @see ASTNode::getListOfNodes()@endif * @if conly @see ASTNode_fillListOfNodes()@else @see ASTNode::fillListOfNodes()@endif @@ -225,9 +237,10 @@ /** * Creates a new ASTNode from the given Token. The resulting ASTNode - * will contain the same data as the Token. + * will contain the same data as the @p token. * - * @param token the Token to add. + * @param token the token to use as a starting point for creating the + * ASTNode object. */ LIBSBML_EXTERN ASTNode (Token_t *token); @@ -244,6 +257,9 @@ /** * Assignment operator for ASTNode. + * + * @param rhs the object whose values are used as the basis of the + * assignment. */ LIBSBML_EXTERN ASTNode& operator=(const ASTNode& rhs); @@ -260,8 +276,8 @@ * Frees the name of this ASTNode and sets it to @c NULL. * * This operation is only applicable to ASTNode objects corresponding to - * operators, numbers, or @sbmlconstant{AST_UNKNOWN, ASTNodeType_t}. This method has no effect on other types of - * nodes. + * operators, numbers, or @sbmlconstant{AST_UNKNOWN, ASTNodeType_t}. This + * method has no effect on other types of nodes. * * @copydetails doc_returns_success_code * @li @sbmlconstant{LIBSBML_OPERATION_SUCCESS, OperationReturnValues_t} @@ -276,20 +292,18 @@ * successful, @c false otherwise. * * The rules determining the canonical form conversion are as follows: - * <ul> * - * <li> If the node type is @sbmlconstant{AST_NAME, ASTNodeType_t} + * @li If the node type is @sbmlconstant{AST_NAME, ASTNodeType_t} * and the node name matches @c "ExponentialE", @c "Pi", @c "True" or @c * "False" the node type is converted to the corresponding * <code>AST_CONSTANT_</code><em><span class="placeholder">X</span></em> type. * - * <li> If the node type is an @sbmlconstant{AST_FUNCTION, ASTNodeType_t} and the node name matches an SBML (MathML) function name, logical operator name, or - * relational operator name, the node is converted to the corresponding + * @li If the node type is an @sbmlconstant{AST_FUNCTION, ASTNodeType_t} + * and the node name matches an SBML (MathML) function name, logical operator name, + * or relational operator name, the node is converted to the corresponding * <code>AST_FUNCTION_</code><em><span class="placeholder">X</span></em> or * <code>AST_LOGICAL_</code><em><span class="placeholder">X</span></em> type. * - * </ul> - * * SBML Level 1 function names are searched first; thus, for * example, canonicalizing @c log will result in a node type of @sbmlconstant{AST_FUNCTION_LN, ASTNodeType_t}. (See the SBML * Level 1 Version 2 Specification, Appendix C.) @@ -312,7 +326,7 @@ * * Child nodes are added in-order, from left to right. * - * @param disownedChild the ASTNode instance to add + * @param disownedChild the ASTNode instance to add. * @param inRead @c false by default; may be set to @c true when * reading XML where there may be a lambda function with no * bvar arguments. @@ -324,7 +338,7 @@ * @copydetails doc_warning_modifying_structure * * @see prependChild(ASTNode* disownedChild) - * @see replaceChild(unsigned int n, ASTNode* disownedChild) + * @see replaceChild(unsigned int n, ASTNode* disownedChild, bool delreplaced) * @see insertChild(unsigned int n, ASTNode* disownedChild) * @see removeChild(unsigned int n) * @see isWellFormedASTNode() @@ -337,7 +351,8 @@ * Adds the given node as a child of this ASTNode. This method adds * child nodes from right to left. * - * @param disownedChild the ASTNode instance to add + * @param disownedChild the ASTNode instance to add. + * Will become a child of the parent node. * * @copydetails doc_returns_success_code * @li @sbmlconstant{LIBSBML_OPERATION_SUCCESS, OperationReturnValues_t} @@ -346,7 +361,7 @@ * @copydetails doc_warning_modifying_structure * * @see addChild(ASTNode* disownedChild) - * @see replaceChild(unsigned int n, ASTNode* disownedChild) + * @see replaceChild(unsigned int n, ASTNode* disownedChild, bool delreplaced) * @see insertChild(unsigned int n, ASTNode* disownedChild) * @see removeChild(unsigned int n) */ @@ -357,7 +372,7 @@ /** * Removes the nth child of this ASTNode object. * - * @param n unsigned int the index of the child to remove + * @param n unsigned int the index of the child to remove. * * @copydetails doc_returns_success_code * @li @sbmlconstant{LIBSBML_OPERATION_SUCCESS, OperationReturnValues_t} @@ -367,7 +382,7 @@ * * @see addChild(ASTNode* disownedChild) * @see prependChild(ASTNode* disownedChild) - * @see replaceChild(unsigned int n, ASTNode* disownedChild) + * @see replaceChild(unsigned int n, ASTNode* disownedChild, bool delreplaced) * @see insertChild(unsigned int n, ASTNode* disownedChild) */ LIBSBML_EXTERN @@ -377,9 +392,10 @@ /** * Replaces and optionally deletes the nth child of this ASTNode with the given ASTNode. * - * @param n unsigned int the index of the child to replace - * @param disownedChild ASTNode to replace the nth child - * @param delreplaced boolean indicating whether to delete the replaced child. + * @param n unsigned int the index of the child to replace. + * @param disownedChild ASTNode to replace the nth child. + * Will become a child of the parent node. + * @param delreplaced Boolean indicating whether to delete the replaced child. * * @copydetails doc_returns_success_code * @li @sbmlconstant{LIBSBML_OPERATION_SUCCESS, OperationReturnValues_t} @@ -401,8 +417,8 @@ * Inserts the given ASTNode at point n in the list of children * of this ASTNode. * - * @param n unsigned int the index of the ASTNode being added - * @param disownedChild ASTNode to insert as the nth child + * @param n unsigned int the index of the ASTNode being added. + * @param disownedChild ASTNode to insert as the nth child. * * @copydetails doc_returns_success_code * @li @sbmlconstant{LIBSBML_OPERATION_SUCCESS, OperationReturnValues_t} @@ -413,7 +429,7 @@ * * @see addChild(ASTNode* disownedChild) * @see prependChild(ASTNode* disownedChild) - * @see replaceChild(unsigned int n, ASTNode* disownedChild) + * @see replaceChild(unsigned int n, ASTNode* disownedChild, bool delreplaced) * @see removeChild(unsigned int n) */ LIBSBML_EXTERN @@ -431,9 +447,9 @@ /** - * Returns a child of this node according to its index number. + * Returns the child at index n of this node. * - * @param n the index of the child to get + * @param n the index of the child to get. * * @return the nth child of this ASTNode or @c NULL if this node has no nth * child (<code>n > </code> @@ -456,7 +472,7 @@ * with an argument of @c 0. * * @see getNumChildren() - * @see getChild() + * @see getChild(@if java unsigned int@endif) * @see getRightChild() */ LIBSBML_EXTERN @@ -476,7 +492,7 @@ * * @see getNumChildren() * @see getLeftChild() - * @see getChild() + * @see getChild(@if java unsigned int@endif) */ LIBSBML_EXTERN ASTNode* getRightChild () const; @@ -483,7 +499,7 @@ /** - * Returns the number of children that this node has. + * Returns the number of children of this node. * * @return the number of children of this ASTNode, or 0 is this node has * no children. @@ -493,26 +509,22 @@ /** - * Adds the given XMLNode as a <em>semantic annotation</em> of this ASTNode. + * Adds the given XMLNode as a MathML <code><semantics></code> + * element to this ASTNode. * * @htmlinclude about-semantic-annotations.html * * @param disownedAnnotation the annotation to add. + * Will become a child of the parent node. * * @copydetails doc_returns_success_code * @li @sbmlconstant{LIBSBML_OPERATION_SUCCESS, OperationReturnValues_t} * @li @sbmlconstant{LIBSBML_OPERATION_FAILED, OperationReturnValues_t} * - * @note Although SBML permits the semantic annotation construct in - * MathML expressions, the truth is that this construct has so far (at - * this time of this writing, which is early 2011) seen very little use - * in SBML software. The full implications of using semantic annotations - * are still poorly understood. If you wish to use this construct, we - * urge you to discuss possible uses and applications on the SBML - * discussion lists, particularly <a target="_blank" - * href="http://sbml.org/Forums">sbml-discuss@caltech.edu</a> and/or <a - * target="_blank" - * href="http://sbml.org/Forums">sbml-interoperability@caltech.edu</a>. + * @copydetails doc_note_mathml_semantic_annotations_uncommon + * + * @see getNumSemanticsAnnotations() + * @see getSemanticsAnnotation(@if java unsigned int@endif) */ LIBSBML_EXTERN int addSemanticsAnnotation (XMLNode* disownedAnnotation); @@ -519,13 +531,17 @@ /** - * Returns the number of <em>semantic annotation</em> elements inside this node. + * Returns the number of MathML <code><semantics></code> element + * elements on this node. * * @htmlinclude about-semantic-annotations.html * * @return the number of annotations of this ASTNode. * - * @see ASTNode::addSemanticsAnnotation(XMLNode* disownedAnnotation) + * @copydetails doc_note_mathml_semantic_annotations_uncommon + * + * @see addSemanticsAnnotation(@if java XMLNode@endif) + * @see getSemanticsAnnotation(@if java unsigned int@endif) */ LIBSBML_EXTERN unsigned int getNumSemanticsAnnotations () const; @@ -532,16 +548,24 @@ /** - * Returns the nth semantic annotation of this node. + * Returns the nth MathML <code><semantics></code> element on this + * ASTNode. * * @htmlinclude about-semantic-annotations.html * - * @return the nth annotation of this ASTNode, or @c NULL if this node has + * @param n the index of the annotation to return. Callers should + * use ASTNode::getNumSemanticsAnnotations() to first find out how + * many annotations there are. + * + * @return the nth annotation inside this ASTNode, or @c NULL if this node has * no nth annotation (<code>n ></code> * @if clike getNumSemanticsAnnotations()@else ASTNode::getNumSemanticsAnnotations()@endif@~ * <code>- 1</code>). * - * @see ASTNode::addSemanticsAnnotation(XMLNode* disownedAnnotation) + * @copydetails doc_note_mathml_semantic_annotations_uncommon + * + * @see getNumSemanticsAnnotations() + * @see addSemanticsAnnotation(@if java XMLNode@endif) */ LIBSBML_EXTERN XMLNode* getSemanticsAnnotation (unsigned int n) const; @@ -552,7 +576,7 @@ * * This performs a depth-first search of the tree rooted at this ASTNode * object, and returns a List of nodes for which the given function - * <code>predicate(node)</code> returns @c true (non-zero). + * <code>predicate(node)</code> returns @c true (nonzero). * * For portability between different programming languages, the predicate * is passed in as a pointer to a function. @if clike The function @@ -561,13 +585,13 @@ * @verbatim int (*ASTNodePredicate) (const ASTNode *node); @endverbatim - * where a return value of non-zero represents @c true and zero + * where a return value of nonzero represents @c true and zero * represents @c false. @endif * - * @param predicate the predicate to use + * @param predicate the predicate to use. * * @return the list of nodes for which the predicate returned @c true - * (non-zero). The List returned is owned by the caller and should be + * (nonzero). The List returned is owned by the caller and should be * deleted after the caller is done using it. The ASTNode objects in the * list; however, are not owned by the caller (as they still belong to * the tree itself), and therefore should not be deleted. @@ -586,7 +610,7 @@ * passed in as argument @p lst. This method a depth-first search of the * tree rooted at this ASTNode object, and adds to the list @p lst the * nodes for which the given function <code>predicate(node)</code> returns - * @c true (non-zero). + * @c true (nonzero). * * For portability between different programming languages, the predicate * is passed in as a pointer to a function. The function definition must @@ -595,7 +619,7 @@ * @verbatim int (*ASTNodePredicate) (const ASTNode_t *node); @endverbatim - * where a return value of non-zero represents @c true and zero + * where a return value of nonzero represents @c true and zero * represents @c false. * * @param predicate the predicate to use. @@ -602,7 +626,7 @@ * * @param lst the List to which ASTNode objects should be added. * - * @see getListOfNodes(ASTNodePredicate predicate) const + * @see getListOfNodes(@if java ASTNodePredicate@endif) */ LIBSBML_EXTERN void fillListOfNodes (ASTNodePredicate predicate, List* lst) const; @@ -626,9 +650,13 @@ /** - * Returns the id of this ASTNode. + * Returns the MathML @c id attribute value of this ASTNode. * * @return the MathML id of this ASTNode. + * + * @see isSetId() + * @see setId(const std::string& id) + * @see unsetId() */ LIBSBML_EXTERN std::string getId () const; @@ -635,9 +663,13 @@ /** - * Returns the class of this ASTNode. + * Returns the MathML @c class attribute value of this ASTNode. * - * @return the MathML class of this ASTNode. + * @return the MathML class of this ASTNode, or an empty string if it does not exist. + * + * @see isSetClass() + * @see @if java setClassName(const std::string& id)@else setClass()@endif@~ + * @see unsetClass() */ LIBSBML_EXTERN std::string getClass () const; @@ -644,9 +676,13 @@ /** - * Returns the style of this ASTNode. + * Returns the MathML @c style attribute value of this ASTNode. * - * @return the MathML style of this ASTNode. + * @return the MathML style of this ASTNode, or an empty string if it does not exist. + * + * @see isSetStyle() + * @see setStyle(const std::string& id) + * @see unsetStyle() */ LIBSBML_EXTERN std::string getStyle () const; @@ -655,10 +691,22 @@ /** * Returns the value of this node as an integer. * - * This function should be called only when @if clike getType()@else - * ASTNode::getType()@endif@~ <code>== @sbmlconstant{AST_INTEGER, ASTNodeType_t}</code>. + * If this node type is @sbmlconstant{AST_RATIONAL, ASTNodeType_t}, this + * method returns the value of the numerator. * - * @return the value of this ASTNode as a (<code>long</code>) integer. + * @return the value of this ASTNode as a (<code>long</code>) integer if type @sbmlconstant{AST_INTEGER, ASTNodeType_t}; the numerator if type @sbmlconstant{AST_RATIONAL, ASTNodeType_t}, and @c 0 otherwise. + * + * @note This function should be called only when + * @if clike getType()@else ASTNode::getType()@endif@~ returns + * @sbmlconstant{AST_INTEGER, ASTNodeType_t} or + * @sbmlconstant{AST_RATIONAL, ASTNodeType_t}. + * It will return @c 0 if the node type is @em not one of these, but since + * @c 0 may be a valid value for integer, it is important to be sure that + * the node type is one of the expected types in order to understand if + * @c 0 is the actual value. + * + * @see getNumerator() + * @see getDenominator() */ LIBSBML_EXTERN long getInteger () const; @@ -670,10 +718,11 @@ * This function may be called on nodes that (1) are not operators, i.e., * nodes for which @if clike isOperator()@else * ASTNode::isOperator()@endif@~ returns @c false, and (2) are not numbers, - * i.e., @if clike isNumber()@else ASTNode::isNumber()@endif@~ returns @c - * false. + * i.e., @if clike isNumber()@else ASTNode::isNumber()@endif@~ returns + * @c NULL. * - * @return the value of this ASTNode as a string. + * @return the value of this ASTNode as a string, or @c NULL if it is + * a node that does not have a name equivalent (e.g., if it is a number). */ LIBSBML_EXTERN const char* getName () const; @@ -680,12 +729,14 @@ /** - * Returns the value of this operator node as a string. This function may be called - * on nodes that are operators, i.e., nodes for which - * @if clike isOperator()@else ASTNode::isOperator()@endif@~ - * returns @c true. - * - * @return the name of this operator ASTNode as a string (or NULL if not an operator). + * Returns the value of this operator node as a string. + * + * This function may be called on nodes that are operators, i.e., nodes for + * which @if clike isOperator()@else ASTNode::isOperator()@endif@~ returns + * @c true. + * + * @return the name of this operator ASTNode as a string (or @c NULL if not + * an operator). */ LIBSBML_EXTERN const char* getOperatorName () const; @@ -692,12 +743,26 @@ /** - * Returns the value of the numerator of this node. This function should be - * called only when - * @if clike getType()@else ASTNode::getType()@endif@~ - * <code>== @sbmlconstant{AST_RATIONAL, ASTNodeType_t}</code>. - * - * @return the value of the numerator of this ASTNode. + * Returns the value of the numerator of this node if of + * type @sbmlconstant{AST_RATIONAL, ASTNodeType_t}, or the + * numerical value of the node if of type + * @sbmlconstant{AST_INTEGER, ASTNodeType_t}; @c 0 otherwise. + * + * This function should be called only when + * @if clike getType()@else ASTNode::getType()@endif@~ returns + * @sbmlconstant{AST_RATIONAL, ASTNodeType_t} or + * @sbmlconstant{AST_INTEGER, ASTNodeType_t}. + * It will return @c 0 if the node type is another type, but since @c 0 may + * be a valid value for the denominator of a rational number or of an integer, it is + * important to be sure that the node type is the correct type in order to + * correctly interpret the returned value. + * + * @return the value of the numerator of this ASTNode if + * @sbmlconstant{AST_RATIONAL, ASTNodeType_t}, the value if + * @sbmlconstant{AST_INTEGER, ASTNodeType_t}, or @c 0 otherwise. + * + * @see getDenominator() + * @see getInteger() */ LIBSBML_EXTERN long getNumerator () const; @@ -704,12 +769,20 @@ /** - * Returns the value of the denominator of this node. This function should - * be called only when - * @if clike getType()@else ASTNode::getType()@endif@~ - * <code>== @sbmlconstant{AST_RATIONAL, ASTNodeType_t}</code>. - * - * @return the value of the denominator of this ASTNode. + * Returns the value of the denominator of this node. + * + * @return the value of the denominator of this ASTNode, or @c 1 (true) if + * this node is not of type @sbmlconstant{AST_RATIONAL, ASTNodeType_t}. + * + * @note This function should be called only when + * @if clike getType()@else ASTNode::getType()@endif@~ returns + * @sbmlconstant{AST_RATIONAL, ASTNodeType_t}. + * It will return @c 1 if the node type is another type, but since @c 1 may + * be a valid value for the denominator of a rational number, it is + * important to be sure that the node type is the correct type in order to + * correctly interpret the returned value. + * + * @see getNumerator() */ LIBSBML_EXTERN long getDenominator () const; @@ -716,16 +789,22 @@ /** - * Returns the real-numbered value of this node. This function - * should be called only when - * @if clike isReal()@else ASTNode::isReal()@endif@~ - * <code>== true</code>. + * Returns the real-numbered value of this node. * * This function performs the necessary arithmetic if the node type is * @sbmlconstant{AST_REAL_E, ASTNodeType_t} (<em>mantissa * - * 10<sup> exponent</sup></em>) or @sbmlconstant{AST_RATIONAL, ASTNodeType_t} (<em>numerator / denominator</em>). - * - * @return the value of this ASTNode as a real (double). + * 10<sup>exponent</sup></em>) or + * @sbmlconstant{AST_RATIONAL, ASTNodeType_t} + * (<em>numerator / denominator</em>). + * + * @return the value of this ASTNode as a real (double), or @c 0 + * if this is not a node that holds a number. + * + * @note This function should be called only when this ASTNode has a + * numerical value type. It will return @c 0 if the node type is another + * type, but since @c 0 may be a valid value, it is important to be sure + * that the node type is the correct type in order to correctly interpret + * the returned value. */ LIBSBML_EXTERN double getReal () const; @@ -732,29 +811,44 @@ /** - * Returns the mantissa value of this node. This function should be called - * only when @if clike getType()@else ASTNode::getType()@endif@~ - * returns @sbmlconstant{AST_REAL_E, ASTNodeType_t} - * or @sbmlconstant{AST_REAL, ASTNodeType_t}. - * If @if clike getType()@else ASTNode::getType()@endif@~ - * returns @sbmlconstant{AST_REAL, ASTNodeType_t}, - * this method is identical to - * @if clike getReal()@else ASTNode::getReal()@endif. - * - * @return the value of the mantissa of this ASTNode. + * Returns the mantissa value of this node. + * + * If @if clike getType()@else ASTNode::getType()@endif@~ returns + * @sbmlconstant{AST_REAL, ASTNodeType_t}, this method is + * identical to ASTNode::getReal(). + * + * @return the value of the mantissa of this ASTNode, or @c 0 if this + * node is not a type that has a real-numbered value. + * + * @note This function should be called only when + * @if clike getType()@else ASTNode::getType()@endif@~ returns + * @sbmlconstant{AST_REAL_E, ASTNodeType_t}, + * @sbmlconstant{AST_REAL, ASTNodeType_t} or + * @sbmlconstant{AST_NAME_AVOGADRO, ASTNodeType_t}. It + * will return @c 0 if the node type is another type, but since @c 0 may be + * a valid value, it is important to be sure that the node type is the + * correct type in order to correctly interpret the returned value. + * + * @see getExponent() */ - LIBSBML_EXTERN +LIBSBML_EXTERN double getMantissa () const; /** - * Returns the exponent value of this ASTNode. This function should be - * called only when + * Returns the exponent value of this ASTNode. + * + * @return the value of the exponent of this ASTNode, or @c 0 if this + * is not a type of node that has an exponent. + * + * @note This function should be called only when * @if clike getType()@else ASTNode::getType()@endif@~ - * returns @sbmlconstant{AST_REAL_E, ASTNodeType_t} - * or @sbmlconstant{AST_REAL, ASTNodeType_t}. - * - * @return the value of the exponent of this ASTNode. + * returns @sbmlconstant{AST_REAL_E, ASTNodeType_t}. + * It will return @c 0 if the node type is another type, but since @c 0 may + * be a valid value, it is important to be sure that the node type is the + * correct type in order to correctly interpret the returned value. + * + * @see getMantissa() */ LIBSBML_EXTERN long getExponent () const; @@ -795,10 +889,12 @@ /** - * Returns the type of this ASTNode. The value returned is one of the - * enumeration values such as @sbmlconstant{AST_LAMBDA, ASTNodeType_t}, @sbmlconstant{AST_PLUS, ASTNodeType_t}, - * etc. - * + * Returns the type of this ASTNode. + * + * The value returned is one of the Core AST type codes such as + * @sbmlconstant{AST_LAMBDA, ASTNodeType_t}, + * @sbmlconstant{AST_PLUS, ASTNodeType_t}, etc. + * * @return the type of this ASTNode. */ LIBSBML_EXTERN @@ -814,11 +910,8 @@ * * @note The <code>sbml:units</code> attribute is only available in SBML * Level 3. It may not be used in Levels 1–2 of SBML. - * - * @if clike @see SBML_parseL3Formula()@endif@~ - * @if csharp @see SBML_parseL3Formula()@endif@~ - * @if python @see libsbml.parseL3Formula()@endif@~ - * @if java @see <code><a href="libsbml.html#parseL3Formula(String formula)">libsbml.parseL3Formula(String formula)</a></code>@endif@~ + * + * @see @sbmlfunction{parseL3Formula, String} */ LIBSBML_EXTERN std::string getUnits () const; @@ -825,15 +918,18 @@ /** - * Returns @c true (non-zero) if this node is the special + * Returns @c true (nonzero) if this node is the special * symbol @c avogadro. The predicate returns @c false (zero) otherwise. * - * @return @c true if this ASTNode is the special symbol avogadro. + * SBML Level 3 introduced a predefined MathML <code><csymbol></code> + * for the value of Avogadro's constant. LibSBML stores this internally as + * a node of type @sbmlconstant{AST_NAME_AVOGADRO, ASTNodeType_t}. + * This method returns @c true if this node has that type. * - * @if clike @see SBML_parseL3Formula()@endif@~ - * @if csharp @see SBML_parseL3Formula()@endif@~ - * @if python @see libsbml.parseL3Formula()@endif@~ - * @if java @see <code><a href="libsbml.html#parseL3Formula(String formula)">libsbml.parseL3Formula(String formula)</a></code>@endif@~ + * @return @c true if this ASTNode is the special symbol avogadro, + * @c false otherwise. + * + * @see @sbmlfunction{parseL3Formula, String} */ LIBSBML_EXTERN bool isAvogadro () const; @@ -840,11 +936,12 @@ /** - * Returns @c true (non-zero) if this node has a boolean type - * (a logical operator, a relational operator, or the constants @c true - * or @c false). + * Returns @c true if this node has a Boolean type. * - * @return true if this ASTNode is a boolean, false otherwise. + * The ASTNode objects that have Boolean types are the logical operators, + * relational operators, and the constants @c true or @c false. + * + * @return @c true if this ASTNode has a Boolean type, @c false otherwise. */ LIBSBML_EXTERN bool isBoolean () const; @@ -851,7 +948,7 @@ /** - * Returns @c true (non-zero) if this node returns a boolean type + * Returns @c true (nonzero) if this node returns a Boolean type * or @c false (zero) otherwise. * * This function looks at the whole ASTNode rather than just the top @@ -859,12 +956,14 @@ * piecewise statements. In addition, if this ASTNode uses a function * call, the return value of the functionDefinition will be determined. * Note that this is only possible where the ASTNode can trace its parent - * Model, that is, the ASTNode must represent the math element of some + * Model, that is, the ASTNode must represent the <code><math></code> element of some * SBML object that has already been added to an instance of an SBMLDocument. + * If this is not the case, this function will return @c false unless + * isBoolean() returns @c true. * * @see isBoolean() * - * @return true if this ASTNode returns a boolean, false otherwise. + * @return @c true if this ASTNode returns a Boolean, @c false otherwise. */ LIBSBML_EXTERN bool returnsBoolean (const Model* model=NULL) const; @@ -871,12 +970,13 @@ /** - * Returns @c true (non-zero) if this node represents a MathML + * Returns @c true (nonzero) if this node represents a MathML * constant (e.g., @c true, @c Pi). * * @return @c true if this ASTNode is a MathML constant, @c false otherwise. * - * @note this function will also return @c true for @sbmlconstant{AST_NAME_AVOGADRO, ASTNodeType_t} in SBML Level 3. + * @note this function will also return @c true for nodes of type + * @sbmlconstant{AST_NAME_AVOGADRO, ASTNodeType_t} in SBML Level 3. */ LIBSBML_EXTERN bool isConstant () const; @@ -884,7 +984,7 @@ /** - * Returns @c true (non-zero) if this node represents a MathML + * Returns @c true (nonzero) if this node represents a MathML * ci element representing a value not a function (e.g., @c true, @c Pi). * * @return @c true if this ASTNode is a MathML ci element, @c false otherwise. @@ -894,12 +994,13 @@ /** - * Returns @c true (non-zero) if this node represents a MathML - * constant with numeric value(e.g., @c Pi). + * Returns @c true (nonzero) if this node represents a MathML + * constant with numeric value (e.g., @c Pi). * * @return @c true if this ASTNode is a MathML constant, @c false otherwise. * - * @note this function will also return @c true for @sbmlconstant{AST_NAME_AVOGADRO, ASTNodeType_t} in SBML Level 3. + * @note this function will also return @c true for + * @sbmlconstant{AST_NAME_AVOGADRO, ASTNodeType_t} in SBML Level 3. */ LIBSBML_EXTERN @@ -906,20 +1007,23 @@ bool isConstantNumber() const; /** - * Returns @c true (non-zero) if this node represents a MathML - * csymbol representing a function. - * - * @return @c true if this ASTNode is a MathML csymbol function, @c false otherwise. - */ + * Returns @c true (nonzero) if this node represents a MathML + * csymbol representing a function. + * + * @return @c true if this ASTNode is a MathML csymbol function, @c false otherwise. + */ LIBSBML_EXTERN bool isCSymbolFunction() const; /** - * Returns @c true (non-zero) if this node represents a - * MathML function (e.g., <code>abs()</code>), or an SBML Level 1 - * function, or a user-defined function. - * + * Returns @c true if this node represents a function. + * + * The three types of functions in SBML are MathML functions (e.g., + * <code>abs()</code>), SBML Level 1 functions (in the SBML + * Level 1 math syntax), and user-defined functions (using + * FunctionDefinition in SBML Level 2 and 3). + * * @return @c true if this ASTNode is a function, @c false otherwise. */ LIBSBML_EXTERN @@ -927,7 +1031,7 @@ /** - * Returns @c true (non-zero) if this node represents + * Returns @c true (nonzero) if this node represents * the special IEEE 754 value infinity, @c false (zero) otherwise. * * @return @c true if this ASTNode is the special IEEE 754 value infinity, @@ -938,7 +1042,7 @@ /** - * Returns @c true (non-zero) if this node contains an + * Returns @c true (nonzero) if this node contains an * integer value, @c false (zero) otherwise. * * @return @c true if this ASTNode is of type @sbmlconstant{AST_INTEGER, ASTNodeType_t}, @c false otherwise. @@ -948,7 +1052,7 @@ /** - * Returns @c true (non-zero) if this node is a MathML + * Returns @c true (nonzero) if this node is a MathML * <code><lambda></code>, @c false (zero) otherwise. * * @return @c true if this ASTNode is of type @sbmlconstant{AST_LAMBDA, ASTNodeType_t}, @c false otherwise. @@ -958,18 +1062,17 @@ /** - * Returns @c true (non-zero) if this node represents a - * @c log10 function, @c false (zero) otherwise. More precisely, this - * predicate returns @c true if the node type is @sbmlconstant{AST_FUNCTION_LOG, ASTNodeType_t} with two + * Returns @c true (nonzero) if this node represents a + * @c log10 function, @c false (zero) otherwise. + * + * More precisely, this predicate returns @c true if the node type is + * @sbmlconstant{AST_FUNCTION_LOG, ASTNodeType_t} with two * children, the first of which is an @sbmlconstant{AST_INTEGER, ASTNodeType_t} equal to 10. * - * @return @c true if the given ASTNode represents a log10() function, @c - * false otherwise. + * @return @c true if the given ASTNode represents a log10() function, + * @c false otherwise. * - * @if clike @see SBML_parseL3Formula()@endif@~ - * @if csharp @see SBML_parseL3Formula()@endif@~ - * @if python @see libsbml.parseL3Formula()@endif@~ - * @if java @see <code><a href="libsbml.html#parseL3Formula(String formula)">libsbml.parseL3Formula(String formula)</a></code>@endif@~ + * @see @sbmlfunction{parseL3Formula, String} */ LIBSBML_EXTERN bool isLog10 () const; @@ -976,10 +1079,16 @@ /** - * Returns @c true (non-zero) if this node is a MathML - * logical operator (i.e., @c and, @c or, @c not, @c xor). - * - * @return @c true if this ASTNode is a MathML logical operator + * Returns @c true (nonzero) if this node is a MathML + * logical operator. + * + * The possible MathML logical operators in SBML core are @c and, @c or, @c not, + * @c xor, and (as of SBML Level 3 Version 2) @c implies. If + * the node represents a logical operator defined in a Level 3 package, + * it will also return @c true. + * + * @return @c true if this ASTNode is a MathML logical operator, @c false + * otherwise. */ LIBSBML_EXTERN bool isLogical () const; @@ -986,12 +1095,20 @@ /** - * Returns @c true (non-zero) if this node is a user-defined - * variable name in SBML L1, L2 (MathML), or the special symbols @c time - * or @c avogadro. The predicate returns @c false (zero) otherwise. - * + * Returns @c true if this node is a user-defined variable name + * or the symbols for time or Avogadro's constant. + * + * SBML Levels 2 and 3 provides <code><csymbol></code> + * definitions for "time" and "avogadro", which can be used to represent + * simulation time and Avogadro's constant in MathML. Note that this + * method does @em not return @c true for the other <code>csymbol</code> + * values defined by SBML, "delay", because the "delay" is a function + * and not a constant or variable. Similarly, this function returns + * @c false for the csymbol functions added by the 'Distributions' package. + * * @return @c true if this ASTNode is a user-defined variable name in SBML - * L1, L2 (MathML) or the special symbols delay or time. + * or the special symbols for time or Avogadro's constant. It returns + * @c false otherwise. */ LIBSBML_EXTERN bool isName () const; @@ -998,11 +1115,12 @@ /** - * Returns @c true (non-zero) if this node represents the + * Returns @c true (nonzero) if this node represents the * special IEEE 754 value "not a number" (NaN), @c false (zero) * otherwise. * - * @return @c true if this ASTNode is the special IEEE 754 NaN. + * @return @c true if this ASTNode is the special IEEE 754 NaN, @c false + * otherwise. */ LIBSBML_EXTERN bool isNaN () const; @@ -1009,7 +1127,7 @@ /** - * Returns @c true (non-zero) if this node represents the + * Returns @c true (nonzero) if this node represents the * special IEEE 754 value "negative infinity", @c false (zero) otherwise. * * @return @c true if this ASTNode is the special IEEE 754 value negative @@ -1020,7 +1138,7 @@ /** - * Returns @c true (non-zero) if this node contains a number, + * Returns @c true (nonzero) if this node contains a number, * @c false (zero) otherwise. This is functionally equivalent to the * following code: * @verbatim @@ -1034,11 +1152,14 @@ /** - * Returns @c true (non-zero) if this node is a mathematical - * operator, meaning, <code>+</code>, <code>-</code>, <code>*</code>, - * <code>/</code> or <code>^</code> (power). - * - * @return @c true if this ASTNode is an operator. + * Returns @c true if this node is a mathematical + * operator. + * + * The possible mathematical operators in the MathML syntax supported by + * SBML are <code>+</code>, <code>-</code>, <code>*</code>, <code>/</code> + * and <code>^</code> (power). + * + * @return @c true if this ASTNode is an operator, @c false otherwise. */ LIBSBML_EXTERN bool isOperator () const; @@ -1045,10 +1166,11 @@ /** - * Returns @c true (non-zero) if this node is the MathML - * <code><piecewise></code> construct, @c false (zero) otherwise. + * Returns @c true (nonzero) if this node is the MathML + * <code><piecewise></code> construct. * - * @return @c true if this ASTNode is a MathML @c piecewise function + * @return @c true if this ASTNode is a MathML @c piecewise function, + * @c false (zero) otherwise. */ LIBSBML_EXTERN bool isPiecewise () const; @@ -1055,10 +1177,11 @@ /** - * Returns @c true (non-zero) if this node represents a rational - * number, @c false (zero) otherwise. + * Returns @c true (nonzero) if this node represents a rational + * number. * - * @return @c true if this ASTNode is of type @sbmlconstant{AST_RATIONAL, ASTNodeType_t}. + * @return @c true if this ASTNode is of type + * @sbmlconstant{AST_RATIONAL, ASTNodeType_t}, @c false (zero) otherwise. */ LIBSBML_EXTERN bool isRational () const; @@ -1065,7 +1188,7 @@ /** - * Returns @c true (non-zero) if this node can represent a + * Returns @c true (nonzero) if this node can represent a * real number, @c false (zero) otherwise. * * More precisely, this node must be of one of the following types: @sbmlconstant{AST_REAL, ASTNodeType_t}, @sbmlconstant{AST_REAL_E, ASTNodeType_t} or @sbmlconstant{AST_RATIONAL, ASTNodeType_t}. @@ -1078,8 +1201,10 @@ /** - * Returns @c true (non-zero) if this node is a MathML - * relational operator, meaning <code>==</code>, <code>>=</code>, + * Returns @c true if this node is a MathML + * relational operator. + * + * The MathML relational operators are <code>==</code>, <code>>=</code>, * <code>></code>, <code><</code>, and <code>!=</code>. * * @return @c true if this ASTNode is a MathML relational operator, @c @@ -1090,7 +1215,7 @@ /** - * Returns @c true (non-zero) if this node represents a + * Returns @c true (nonzero) if this node represents a * square root function, @c false (zero) otherwise. * * More precisely, the node type must be @sbmlconstant{AST_FUNCTION_ROOT, ASTNodeType_t} with two @@ -1104,16 +1229,14 @@ /** - * Returns @c true (non-zero) if this node is a unary minus + * Returns @c true (nonzero) if this node is a unary minus * operator, @c false (zero) otherwise. * * A node is defined as a unary minus node if it is of type @sbmlconstant{AST_MINUS, ASTNodeType_t} and has exactly one child. * * For numbers, unary minus nodes can be "collapsed" by negating the - * number. In fact, - * @if clike SBML_parseFormula()@endif@if csharp SBML_parseFormula()@endif@if python libsbml.parseFormula()@endif@if java <code><a href="libsbml.html#parseFormula(java.lang.String)">libsbml.parseFormula(String formula)</a></code>@endif@~ - * does this during its parsing process, and - * @if clike SBML_parseL3Formula()@endif@if csharp SBML_parseL3Formula()@endif@if python libsbml.parseL3Formula()@endif@if java <code><a href="libsbml.html#parseL3Formula(java.lang.String)">libsbml.parseL3Formula(String formula)</a></code>@endif@~ + * number. In fact, @sbmlfunction{parseFormula, String} + * does this during its parsing process, and @sbmlfunction{parseL3Formula, String} * has a configuration option that allows this behavior to be turned * on or off. However, unary minus nodes for symbols * (@sbmlconstant{AST_NAME, ASTNodeType_t}) cannot @@ -1121,10 +1244,7 @@ * * @return @c true if this ASTNode is a unary minus, @c false otherwise. * - * @if clike @see SBML_parseL3Formula()@endif@~ - * @if csharp @see SBML_parseL3Formula()@endif@~ - * @if python @see libsbml.parseL3Formula()@endif@~ - * @if java @see <code><a href="libsbml.html#parseL3Formula(String formula)">libsbml.parseL3Formula(String formula)</a></code>@endif@~ + * @see @sbmlfunction{parseL3Formula, String} */ LIBSBML_EXTERN bool isUMinus () const; @@ -1131,7 +1251,7 @@ /** - * Returns @c true (non-zero) if this node is a unary plus + * Returns @c true (nonzero) if this node is a unary plus * operator, @c false (zero) otherwise. A node is defined as a unary * minus node if it is of type @sbmlconstant{AST_MINUS, ASTNodeType_t} and has exactly one child. * @@ -1142,7 +1262,7 @@ /** - * Returns @c true (non-zero) if this node represents a + * Returns @c true (nonzero) if this node represents a * MathML user-defined function. * * @return @c true if this ASTNode is a user-defined function, @c false otherwise. @@ -1152,8 +1272,8 @@ /** - * Returns @c true if this node is of type @param type - * and has @param numchildren number of children. Designed + * Returns @c true if this node is of type @p type + * and has @p numchildren number of children. Designed * for use in cases where it is useful to discover if the node is * a unary not or unary minus, or a times node with no children, etc. * @@ -1165,11 +1285,13 @@ /** - * Returns @c true (non-zero) if this node has an unknown type. + * Returns @c true (nonzero) if this node has an unknown type. * - * "Unknown" nodes have the type @sbmlconstant{AST_UNKNOWN, ASTNodeType_t}. Nodes with unknown types will not appear in an + * "Unknown" nodes have the type @sbmlconstant{AST_UNKNOWN, ASTNodeType_t}. + * Nodes with unknown types will not appear in an * ASTNode tree returned by libSBML based upon valid SBML input; the only - * situation in which a node with type @sbmlconstant{AST_UNKNOWN, ASTNodeType_t} may appear is immediately after having create a + * situation in which a node with type @sbmlconstant{AST_UNKNOWN, ASTNodeType_t} + * may appear is immediately after having create a * new, untyped node using the ASTNode constructor. Callers creating * nodes should endeavor to set the type to a valid node type as soon as * possible after creating new nodes. @@ -1181,10 +1303,15 @@ /** - * Returns @c true (non-zero) if this node has a value for the MathML + * Returns @c true (nonzero) if this node has a value for the MathML * attribute "id". * - * @return true if this ASTNode has an attribute id, false otherwise. + * @return @c true if this ASTNode has an attribute id, @c false otherwise. + * + * @see isSetClass() + * @see isSetStyle() + * @see setId(const std::string& id) + * @see unsetId() */ LIBSBML_EXTERN bool isSetId() const; @@ -1191,10 +1318,15 @@ /** - * Returns @c true (non-zero) if this node has a value for the MathML + * Returns @c true (nonzero) if this node has a value for the MathML * attribute "class". * - * @return true if this ASTNode has an attribute class, false otherwise. + * @return @c true if this ASTNode has an attribute class, @c false otherwise. + * + * @see isSetId() + * @see isSetStyle() + * @see @if java setClassName(const std::string& id)@else setClass()@endif@~ + * @see unsetClass() */ LIBSBML_EXTERN bool isSetClass() const; @@ -1201,10 +1333,15 @@ /** - * Returns @c true (non-zero) if this node has a value for the MathML + * Returns @c true (nonzero) if this node has a value for the MathML * attribute "style". * - * @return true if this ASTNode has an attribute style, false otherwise. + * @return @c true if this ASTNode has an attribute style, @c false otherwise. + * + * @see isSetClass() + * @see isSetId() + * @see setStyle(const std::string& id) + * @see unsetStyle() */ LIBSBML_EXTERN bool isSetStyle() const; @@ -1211,7 +1348,7 @@ /** - * Returns @c true (non-zero) if this node has the attribute + * Returns @c true (nonzero) if this node has the attribute * <code>sbml:units</code>. * * @htmlinclude about-sbml-units-attrib.html @@ -1220,6 +1357,9 @@ * * @note The <code>sbml:units</code> attribute is only available in SBML * Level 3. It may not be used in Levels 1–2 of SBML. + * + * @see hasUnits() + * @see setUnits(const std::string& units) */ LIBSBML_EXTERN bool isSetUnits() const; @@ -1226,7 +1366,7 @@ /** - * Returns @c true (non-zero) if this node or any of its + * Returns @c true (nonzero) if this node or any of its * children nodes have the attribute <code>sbml:units</code>. * * @htmlinclude about-sbml-units-attrib.html @@ -1236,6 +1376,9 @@ * * @note The <code>sbml:units</code> attribute is only available in SBML * Level 3. It may not be used in Levels 1–2 of SBML. + * + * @see isSetUnits() + * @see setUnits(const std::string& units) */ LIBSBML_EXTERN bool hasUnits() const; @@ -1250,7 +1393,7 @@ * @param value the character value to which the node's value should be * set. * - * @copydetails doc_returns_success_code + * @copydetails doc_returns_one_success_code * @li @sbmlconstant{LIBSBML_OPERATION_SUCCESS, OperationReturnValues_t} */ LIBSBML_EXTERN @@ -1258,12 +1401,16 @@ /** - * Sets the MathML id of this ASTNode to id. + * Sets the MathML attribute @c id of this ASTNode. * * @param id @c string representing the identifier. * - * @copydetails doc_returns_success_code + * @copydetails doc_returns_one_success_code * @li @sbmlconstant{LIBSBML_OPERATION_SUCCESS, OperationReturnValues_t} + * + * @see isSetId() + * @see getId() + * @see unsetId() */ LIBSBML_EXTERN int setId (const std::string& id); @@ -1270,12 +1417,23 @@ /** - * Sets the MathML class of this ASTNode to className. + * Sets the MathML attribute @c class of this ASTNode to @p className. * * @param className @c string representing the MathML class for this node. * - * @copydetails doc_returns_success_code + * @copydetails doc_returns_one_success_code * @li @sbmlconstant{LIBSBML_OPERATION_SUCCESS, OperationReturnValues_t} + * + * @if java + * @note In the API interfaces for languages other than Java, this method + * is named <code>setClass()</code>, but in Java it is renamed + * <code>setClassName()</code> to avoid a name collision with Java's + * standard object method of the same name. + * @endif@~ + * + * @see isSetClass() + * @see getClass() + * @see unsetClass() */ LIBSBML_EXTERN int setClass (const std::string& className); @@ -1282,12 +1440,16 @@ /** - * Sets the MathML style of this ASTNode to style. + * Sets the MathML attribute @c style of this ASTNode to style. * * @param style @c string representing the identifier. * - * @copydetails doc_returns_success_code + * @copydetails doc_returns_one_success_code * @li @sbmlconstant{LIBSBML_OPERATION_SUCCESS, OperationReturnValues_t} + * + * @see isSetStyle() + * @see getStyle() + * @see unsetStyle() */ LIBSBML_EXTERN int setStyle (const std::string& style); @@ -1296,19 +1458,18 @@ /** * Sets the value of this ASTNode to the given name. * - * As a side-effect, this ASTNode object's type will be reset to + * As a side effect, this ASTNode object's type will be reset to * @sbmlconstant{AST_NAME, ASTNodeType_t} if (and <em>only - * if</em>) the ASTNode was previously an operator ( - * @if clike isOperator()@else ASTNode::isOperator()@endif@~ - * <code>== true</code>), number ( - * @if clike isNumber()@else ASTNode::isNumber()@endif@~ - * <code>== true</code>), or unknown. - * This allows names to be set for @sbmlconstant{AST_FUNCTION, ASTNodeType_t} nodes and the like. + * if</em>) the ASTNode was previously an operator (i.e. + * @sbmlfunction{isOperator} <code>== true</code>), number ( + * @sbmlfunction{isNumber} <code>== true</code>), or unknown. + * This allows names to be set for @sbmlconstant{AST_FUNCTION, + * ASTNodeType_t} nodes and the like. * * @param name the string containing the name to which this node's value - * should be set + * should be set. * - * @copydetails doc_returns_success_code + * @copydetails doc_returns_one_success_code * @li @sbmlconstant{LIBSBML_OPERATION_SUCCESS, OperationReturnValues_t} */ LIBSBML_EXTERN @@ -1319,9 +1480,9 @@ * Sets the value of this ASTNode to the given integer and sets the node * type to @sbmlconstant{AST_INTEGER, ASTNodeType_t}. * - * @param value the integer to which this node's value should be set + * @param value the integer to which this node's value should be set. * - * @copydetails doc_returns_success_code + * @copydetails doc_returns_one_success_code * @li @sbmlconstant{LIBSBML_OPERATION_SUCCESS, OperationReturnValues_t} */ LIBSBML_EXTERN @@ -1332,9 +1493,9 @@ * Sets the value of this ASTNode to the given (@c long) integer and sets * the node type to @sbmlconstant{AST_INTEGER, ASTNodeType_t}. * - * @param value the integer to which this node's value should be set + * @param value the integer to which this node's value should be set. * - * @copydetails doc_returns_success_code + * @copydetails doc_returns_one_success_code * @li @sbmlconstant{LIBSBML_OPERATION_SUCCESS, OperationReturnValues_t} */ LIBSBML_EXTERN @@ -1345,10 +1506,10 @@ * Sets the value of this ASTNode to the given rational in two parts: the * numerator and denominator. The node type is set to @sbmlconstant{AST_RATIONAL, ASTNodeType_t}. * - * @param numerator the numerator value of the rational - * @param denominator the denominator value of the rational + * @param numerator the numerator value of the rational. + * @param denominator the denominator value of the rational. * - * @copydetails doc_returns_success_code + * @copydetails doc_returns_one_success_code * @li @sbmlconstant{LIBSBML_OPERATION_SUCCESS, OperationReturnValues_t} */ LIBSBML_EXTERN @@ -1365,9 +1526,9 @@ @endverbatim * * @param value the @c double format number to which this node's value - * should be set + * should be set. * - * @copydetails doc_returns_success_code + * @copydetails doc_returns_one_success_code * @li @sbmlconstant{LIBSBML_OPERATION_SUCCESS, OperationReturnValues_t} */ LIBSBML_EXTERN @@ -1379,10 +1540,10 @@ * parts: the mantissa and the exponent. The node type is set to * @sbmlconstant{AST_REAL_E, ASTNodeType_t}. * - * @param mantissa the mantissa of this node's real-numbered value - * @param exponent the exponent of this node's real-numbered value + * @param mantissa the mantissa of this node's real-numbered value. + * @param exponent the exponent of this node's real-numbered value. * - * @copydetails doc_returns_success_code + * @copydetails doc_returns_one_success_code * @li @sbmlconstant{LIBSBML_OPERATION_SUCCESS, OperationReturnValues_t} */ LIBSBML_EXTERN @@ -1392,7 +1553,7 @@ /** * Sets the type of this ASTNode to the given type code. * - * @param type the type to which this node should be set + * @param type the type to which this node should be set. * * @copydetails doc_returns_success_code * @li @sbmlconstant{LIBSBML_OPERATION_SUCCESS, OperationReturnValues_t} @@ -1425,6 +1586,9 @@ * * @note The <code>sbml:units</code> attribute is only available in SBML * Level 3. It may not be used in Levels 1–2 of SBML. + * + * @see isSetUnits() + * @see hasUnits() */ LIBSBML_EXTERN int setUnits (const std::string& units); @@ -1435,7 +1599,7 @@ * given ASTNode object. * * @param that the other node whose children should be used to replace - * <em>this</em> node's children + * <em>this</em> node's children. * * @copydetails doc_returns_success_code * @li @sbmlconstant{LIBSBML_OPERATION_SUCCESS, OperationReturnValues_t} @@ -1454,7 +1618,12 @@ /** * Renames all the UnitSIdRef attributes on this node and any child node. - * (The only place UnitSIDRefs appear in MathML <code><cn></code> elements.) + * + * The only place UnitSIDRefs appear is in MathML <code><cn></code> + * elements, so the effects of this method are limited to that. + * + * @param oldid the old identifier. + * @param newid the new identifier. */ LIBSBML_EXTERN virtual void renameUnitSIdRefs(const std::string& oldid, const std::string& newid); @@ -1492,7 +1661,7 @@ int unsetUnits (); /** - * Unsets the MathML id of this ASTNode. + * Unsets the MathML @c id attribute of this ASTNode. * * @copydetails doc_returns_success_code * @li @sbmlconstant{LIBSBML_OPERATION_SUCCESS, OperationReturnValues_t} @@ -1503,7 +1672,7 @@ /** - * Unsets the MathML class of this ASTNode. + * Unsets the MathML @c class attribute of this ASTNode. * * @copydetails doc_returns_success_code * @li @sbmlconstant{LIBSBML_OPERATION_SUCCESS, OperationReturnValues_t} @@ -1514,7 +1683,7 @@ /** - * Unsets the MathML style of this ASTNode. + * Unsets the MathML @c style attribute of this ASTNode. * * @copydetails doc_returns_success_code * @li @sbmlconstant{LIBSBML_OPERATION_SUCCESS, OperationReturnValues_t} @@ -1525,31 +1694,34 @@ /** @cond doxygenLibsbmlInternal */ - /** * Sets the flag indicating that this ASTNode has semantics attached. * * @htmlinclude about-semantic-annotations.html * - * @copydetails doc_returns_success_code + * @copydetails doc_returns_one_success_code * @li @sbmlconstant{LIBSBML_OPERATION_SUCCESS, OperationReturnValues_t} */ LIBSBML_EXTERN int setSemanticsFlag(); + /** @endcond */ + /** @cond doxygenLibsbmlInternal */ /** * Unsets the flag indicating that this ASTNode has semantics attached. * * @htmlinclude about-semantic-annotations.html * - * @copydetails doc_returns_success_code + * @copydetails doc_returns_one_success_code * @li @sbmlconstant{LIBSBML_OPERATION_SUCCESS, OperationReturnValues_t} */ LIBSBML_EXTERN int unsetSemanticsFlag(); + /** @endcond */ + /** @cond doxygenLibsbmlInternal */ /** * Returns the flag indicating that this ASTNode has semantics attached. * @@ -1559,18 +1731,28 @@ */ LIBSBML_EXTERN bool getSemanticsFlag() const; + /** @endcond */ + /** @cond doxygenLibsbmlInternal */ /** - * Sets the attribute "definitionURL". + * Sets the MathML attribute @c definitionURL. * - * @copydetails doc_returns_success_code + * @param url the URL value for the @c definitionURL attribute. + * + * @copydetails doc_returns_one_success_code * @li @sbmlconstant{LIBSBML_OPERATION_SUCCESS, OperationReturnValues_t} + * + * @see setDefinitionURL(const std::string& url) + * @see getDefinitionURL() + * @see getDefinitionURLString() */ LIBSBML_EXTERN int setDefinitionURL(XMLAttributes url); + /** @endcond */ + /** @cond doxygenLibsbmlInternal */ /** * Sets the MathML attribute @c definitionURL. * @@ -1586,16 +1768,18 @@ */ LIBSBML_EXTERN int setDefinitionURL(const std::string& url); - - /** @endcond */ /** - * Returns the MathML "definitionURL" attribute value. + * Returns the MathML @c definitionURL attribute value. * * @return the value of the @c definitionURL attribute, in the form of * a libSBML XMLAttributes object. + * + * @see setDefinitionURL(XMLAttributes url) + * @see setDefinitionURL(const std::string& url) + * @see getDefinitionURLString() */ LIBSBML_EXTERN XMLAttributes* getDefinitionURL() const; @@ -1602,16 +1786,16 @@ /** - * Replaces occurences of a given name within this ASTNode with the - * name/value/formula represented by @p arg. - * + * Replaces occurrences of a given name with a given ASTNode. + * * For example, if the formula in this ASTNode is <code>x + y</code>, - * then the <code><bvar></code> is @c x and @c arg is an ASTNode - * representing the real value @c 3. This method substitutes @c 3 for @c - * x within this ASTNode object. + * and the function is called with @c bvar = @c "x" and @c arg = an ASTNode + * representing the real value @c 3. This method would substitute @c 3 for + * @c x within this ASTNode object, resulting in the forula <code>3 + y</code>. * - * @param bvar a string representing the variable name to be substituted - * @param arg an ASTNode representing the name/value/formula to substitute + * @param bvar a string representing the variable name to be substituted. + * @param arg an ASTNode representing the name/value/formula to use as + * a replacement. */ LIBSBML_EXTERN void r... [truncated message content] |
From: <luc...@us...> - 2019-07-31 21:09:19
|
Revision: 26100 http://sourceforge.net/p/sbml/code/26100 Author: luciansmith Date: 2019-07-31 21:09:07 +0000 (Wed, 31 Jul 2019) Log Message: ----------- Documentation: 'Gets'->'Returns', for slightly more formal and precise language. Modified Paths: -------------- trunk/libsbml/src/sbml/AlgebraicRule.cpp trunk/libsbml/src/sbml/AlgebraicRule.h trunk/libsbml/src/sbml/AssignmentRule.cpp trunk/libsbml/src/sbml/AssignmentRule.h trunk/libsbml/src/sbml/Compartment.cpp trunk/libsbml/src/sbml/Compartment.h trunk/libsbml/src/sbml/CompartmentType.cpp trunk/libsbml/src/sbml/CompartmentType.h trunk/libsbml/src/sbml/Constraint.cpp trunk/libsbml/src/sbml/Constraint.h trunk/libsbml/src/sbml/Delay.cpp trunk/libsbml/src/sbml/Delay.h trunk/libsbml/src/sbml/Event.cpp trunk/libsbml/src/sbml/Event.h trunk/libsbml/src/sbml/EventAssignment.cpp trunk/libsbml/src/sbml/EventAssignment.h trunk/libsbml/src/sbml/FunctionDefinition.cpp trunk/libsbml/src/sbml/FunctionDefinition.h trunk/libsbml/src/sbml/InitialAssignment.cpp trunk/libsbml/src/sbml/InitialAssignment.h trunk/libsbml/src/sbml/KineticLaw.cpp trunk/libsbml/src/sbml/KineticLaw.h trunk/libsbml/src/sbml/LocalParameter.cpp trunk/libsbml/src/sbml/LocalParameter.h trunk/libsbml/src/sbml/Model.cpp trunk/libsbml/src/sbml/Model.h trunk/libsbml/src/sbml/ModifierSpeciesReference.cpp trunk/libsbml/src/sbml/ModifierSpeciesReference.h trunk/libsbml/src/sbml/Parameter.cpp trunk/libsbml/src/sbml/Parameter.h trunk/libsbml/src/sbml/Priority.cpp trunk/libsbml/src/sbml/Priority.h trunk/libsbml/src/sbml/RateRule.cpp trunk/libsbml/src/sbml/RateRule.h trunk/libsbml/src/sbml/Reaction.cpp trunk/libsbml/src/sbml/Reaction.h trunk/libsbml/src/sbml/Rule.cpp trunk/libsbml/src/sbml/Rule.h trunk/libsbml/src/sbml/SBase.cpp trunk/libsbml/src/sbml/SBase.h trunk/libsbml/src/sbml/SimpleSpeciesReference.cpp trunk/libsbml/src/sbml/SimpleSpeciesReference.h trunk/libsbml/src/sbml/Species.cpp trunk/libsbml/src/sbml/Species.h trunk/libsbml/src/sbml/SpeciesReference.cpp trunk/libsbml/src/sbml/SpeciesReference.h trunk/libsbml/src/sbml/SpeciesType.cpp trunk/libsbml/src/sbml/SpeciesType.h trunk/libsbml/src/sbml/Trigger.cpp trunk/libsbml/src/sbml/Trigger.h trunk/libsbml/src/sbml/Unit.cpp trunk/libsbml/src/sbml/Unit.h trunk/libsbml/src/sbml/UnitDefinition.cpp trunk/libsbml/src/sbml/UnitDefinition.h trunk/libsbml/src/sbml/extension/ASTBasePlugin.h trunk/libsbml/src/sbml/math/ASTNode.h trunk/libsbml/src/sbml/packages/comp/extension/CompSBMLDocumentPlugin.cpp trunk/libsbml/src/sbml/packages/fbc/extension/FbcModelPlugin.cpp trunk/libsbml/src/sbml/packages/fbc/extension/FbcModelPlugin.h trunk/libsbml/src/sbml/packages/fbc/extension/FbcReactionPlugin.cpp trunk/libsbml/src/sbml/packages/fbc/extension/FbcReactionPlugin.h trunk/libsbml/src/sbml/packages/fbc/extension/FbcSpeciesPlugin.cpp trunk/libsbml/src/sbml/packages/fbc/extension/FbcSpeciesPlugin.h trunk/libsbml/src/sbml/packages/fbc/sbml/Association.cpp trunk/libsbml/src/sbml/packages/fbc/sbml/Association.h trunk/libsbml/src/sbml/packages/fbc/sbml/FbcAnd.cpp trunk/libsbml/src/sbml/packages/fbc/sbml/FbcAnd.h trunk/libsbml/src/sbml/packages/fbc/sbml/FbcAssociation.cpp trunk/libsbml/src/sbml/packages/fbc/sbml/FbcAssociation.h trunk/libsbml/src/sbml/packages/fbc/sbml/FbcOr.cpp trunk/libsbml/src/sbml/packages/fbc/sbml/FbcOr.h trunk/libsbml/src/sbml/packages/fbc/sbml/FluxBound.cpp trunk/libsbml/src/sbml/packages/fbc/sbml/FluxBound.h trunk/libsbml/src/sbml/packages/fbc/sbml/FluxObjective.cpp trunk/libsbml/src/sbml/packages/fbc/sbml/FluxObjective.h trunk/libsbml/src/sbml/packages/fbc/sbml/GeneProduct.cpp trunk/libsbml/src/sbml/packages/fbc/sbml/GeneProduct.h trunk/libsbml/src/sbml/packages/fbc/sbml/GeneProductAssociation.cpp trunk/libsbml/src/sbml/packages/fbc/sbml/GeneProductAssociation.h trunk/libsbml/src/sbml/packages/fbc/sbml/GeneProductRef.cpp trunk/libsbml/src/sbml/packages/fbc/sbml/GeneProductRef.h trunk/libsbml/src/sbml/packages/fbc/sbml/Objective.cpp trunk/libsbml/src/sbml/packages/fbc/sbml/Objective.h trunk/libsbml/src/sbml/packages/groups/extension/GroupsModelPlugin.cpp trunk/libsbml/src/sbml/packages/groups/extension/GroupsModelPlugin.h trunk/libsbml/src/sbml/packages/groups/extension/GroupsSBMLDocumentPlugin.cpp trunk/libsbml/src/sbml/packages/groups/extension/GroupsSBMLDocumentPlugin.h trunk/libsbml/src/sbml/packages/groups/sbml/Group.cpp trunk/libsbml/src/sbml/packages/groups/sbml/Group.h trunk/libsbml/src/sbml/packages/groups/sbml/Member.cpp trunk/libsbml/src/sbml/packages/groups/sbml/Member.h trunk/libsbml/src/sbml/packages/l3v2extendedmath/extension/L3v2extendedmathSBMLDocumentPlugin.cpp trunk/libsbml/src/sbml/packages/l3v2extendedmath/extension/L3v2extendedmathSBMLDocumentPlugin.h trunk/libsbml/src/sbml/packages/layout/sbml/CompartmentGlyph.h trunk/libsbml/src/sbml/packages/layout/sbml/GeneralGlyph.h trunk/libsbml/src/sbml/packages/layout/sbml/Point.h trunk/libsbml/src/sbml/packages/layout/sbml/ReactionGlyph.h trunk/libsbml/src/sbml/packages/layout/sbml/ReferenceGlyph.h trunk/libsbml/src/sbml/packages/layout/sbml/SpeciesGlyph.h trunk/libsbml/src/sbml/packages/layout/sbml/SpeciesReferenceGlyph.h trunk/libsbml/src/sbml/packages/qual/extension/QualModelPlugin.cpp trunk/libsbml/src/sbml/packages/qual/extension/QualModelPlugin.h trunk/libsbml/src/sbml/packages/qual/extension/QualSBMLDocumentPlugin.cpp trunk/libsbml/src/sbml/packages/qual/extension/QualSBMLDocumentPlugin.h trunk/libsbml/src/sbml/packages/qual/sbml/DefaultTerm.cpp trunk/libsbml/src/sbml/packages/qual/sbml/DefaultTerm.h trunk/libsbml/src/sbml/packages/qual/sbml/FunctionTerm.cpp trunk/libsbml/src/sbml/packages/qual/sbml/FunctionTerm.h trunk/libsbml/src/sbml/packages/qual/sbml/Input.cpp trunk/libsbml/src/sbml/packages/qual/sbml/Input.h trunk/libsbml/src/sbml/packages/qual/sbml/Output.cpp trunk/libsbml/src/sbml/packages/qual/sbml/Output.h trunk/libsbml/src/sbml/packages/qual/sbml/QualitativeSpecies.cpp trunk/libsbml/src/sbml/packages/qual/sbml/QualitativeSpecies.h trunk/libsbml/src/sbml/packages/qual/sbml/Transition.cpp trunk/libsbml/src/sbml/packages/qual/sbml/Transition.h trunk/libsbml/src/sbml/packages/render/extension/RenderSBMLDocumentPlugin.cpp trunk/libsbml/src/sbml/packages/render/extension/RenderSBMLDocumentPlugin.h trunk/libsbml/src/sbml/packages/render/sbml/ColorDefinition.cpp trunk/libsbml/src/sbml/packages/render/sbml/ColorDefinition.h trunk/libsbml/src/sbml/packages/render/sbml/DefaultValues.cpp trunk/libsbml/src/sbml/packages/render/sbml/DefaultValues.h trunk/libsbml/src/sbml/packages/render/sbml/GradientBase.cpp trunk/libsbml/src/sbml/packages/render/sbml/GradientBase.h trunk/libsbml/src/sbml/packages/render/sbml/GradientStop.cpp trunk/libsbml/src/sbml/packages/render/sbml/GradientStop.h trunk/libsbml/src/sbml/packages/render/sbml/GraphicalPrimitive1D.cpp trunk/libsbml/src/sbml/packages/render/sbml/GraphicalPrimitive1D.h trunk/libsbml/src/sbml/packages/render/sbml/GraphicalPrimitive2D.cpp trunk/libsbml/src/sbml/packages/render/sbml/GraphicalPrimitive2D.h trunk/libsbml/src/sbml/packages/render/sbml/LineEnding.cpp trunk/libsbml/src/sbml/packages/render/sbml/LineEnding.h trunk/libsbml/src/sbml/packages/render/sbml/RenderCurve.cpp trunk/libsbml/src/sbml/packages/render/sbml/RenderCurve.h trunk/libsbml/src/sbml/packages/render/sbml/RenderGroup.cpp trunk/libsbml/src/sbml/packages/render/sbml/RenderGroup.h trunk/libsbml/src/sbml/packages/render/sbml/RenderInformationBase.cpp trunk/libsbml/src/sbml/packages/render/sbml/RenderInformationBase.h trunk/libsbml/src/sbml/packages/render/sbml/Style.cpp trunk/libsbml/src/sbml/packages/render/sbml/Style.h trunk/libsbml/src/sbml/packages/render/sbml/Transformation.cpp trunk/libsbml/src/sbml/packages/render/sbml/Transformation.h trunk/libsbml/src/sbml/packages/render/sbml/Transformation2D.cpp trunk/libsbml/src/sbml/packages/render/sbml/Transformation2D.h Modified: trunk/libsbml/src/sbml/AlgebraicRule.cpp =================================================================== --- trunk/libsbml/src/sbml/AlgebraicRule.cpp 2019-07-31 19:20:12 UTC (rev 26099) +++ trunk/libsbml/src/sbml/AlgebraicRule.cpp 2019-07-31 21:09:07 UTC (rev 26100) @@ -144,7 +144,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this AlgebraicRule. + * Returns the value of the "attributeName" attribute of this AlgebraicRule. */ int AlgebraicRule::getAttribute(const std::string& attributeName, @@ -162,7 +162,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this AlgebraicRule. + * Returns the value of the "attributeName" attribute of this AlgebraicRule. */ int AlgebraicRule::getAttribute(const std::string& attributeName, @@ -180,7 +180,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this AlgebraicRule. + * Returns the value of the "attributeName" attribute of this AlgebraicRule. */ int AlgebraicRule::getAttribute(const std::string& attributeName, @@ -198,7 +198,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this AlgebraicRule. + * Returns the value of the "attributeName" attribute of this AlgebraicRule. */ int AlgebraicRule::getAttribute(const std::string& attributeName, @@ -216,7 +216,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this AlgebraicRule. + * Returns the value of the "attributeName" attribute of this AlgebraicRule. */ int AlgebraicRule::getAttribute(const std::string& attributeName, @@ -234,7 +234,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this AlgebraicRule. + * Returns the value of the "attributeName" attribute of this AlgebraicRule. */ //int //AlgebraicRule::getAttribute(const std::string& attributeName, Modified: trunk/libsbml/src/sbml/AlgebraicRule.h =================================================================== --- trunk/libsbml/src/sbml/AlgebraicRule.h 2019-07-31 19:20:12 UTC (rev 26099) +++ trunk/libsbml/src/sbml/AlgebraicRule.h 2019-07-31 21:09:07 UTC (rev 26100) @@ -222,7 +222,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this AlgebraicRule. + * Returns the value of the "attributeName" attribute of this AlgebraicRule. * * @param attributeName, the name of the attribute to retrieve. * @@ -242,7 +242,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this AlgebraicRule. + * Returns the value of the "attributeName" attribute of this AlgebraicRule. * * @param attributeName, the name of the attribute to retrieve. * @@ -261,7 +261,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this AlgebraicRule. + * Returns the value of the "attributeName" attribute of this AlgebraicRule. * * @param attributeName, the name of the attribute to retrieve. * @@ -281,7 +281,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this AlgebraicRule. + * Returns the value of the "attributeName" attribute of this AlgebraicRule. * * @param attributeName, the name of the attribute to retrieve. * @@ -301,7 +301,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this AlgebraicRule. + * Returns the value of the "attributeName" attribute of this AlgebraicRule. * * @param attributeName, the name of the attribute to retrieve. * @@ -321,7 +321,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this AlgebraicRule. + * Returns the value of the "attributeName" attribute of this AlgebraicRule. * * @param attributeName, the name of the attribute to retrieve. * @@ -599,7 +599,7 @@ /** - * Gets the mathematical expression of this AlgebraicRule_t structure as an + * Returns the mathematical expression of this AlgebraicRule_t structure as an * ASTNode_t structure. * * @param ar the AlgebraicRule_t structure. Modified: trunk/libsbml/src/sbml/AssignmentRule.cpp =================================================================== --- trunk/libsbml/src/sbml/AssignmentRule.cpp 2019-07-31 19:20:12 UTC (rev 26099) +++ trunk/libsbml/src/sbml/AssignmentRule.cpp 2019-07-31 21:09:07 UTC (rev 26100) @@ -136,7 +136,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this AssignmentRule. + * Returns the value of the "attributeName" attribute of this AssignmentRule. */ int AssignmentRule::getAttribute(const std::string& attributeName, @@ -154,7 +154,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this AssignmentRule. + * Returns the value of the "attributeName" attribute of this AssignmentRule. */ int AssignmentRule::getAttribute(const std::string& attributeName, @@ -172,7 +172,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this AssignmentRule. + * Returns the value of the "attributeName" attribute of this AssignmentRule. */ int AssignmentRule::getAttribute(const std::string& attributeName, @@ -190,7 +190,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this AssignmentRule. + * Returns the value of the "attributeName" attribute of this AssignmentRule. */ int AssignmentRule::getAttribute(const std::string& attributeName, @@ -208,7 +208,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this AssignmentRule. + * Returns the value of the "attributeName" attribute of this AssignmentRule. */ int AssignmentRule::getAttribute(const std::string& attributeName, @@ -252,7 +252,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this AssignmentRule. + * Returns the value of the "attributeName" attribute of this AssignmentRule. */ //int //AssignmentRule::getAttribute(const std::string& attributeName, Modified: trunk/libsbml/src/sbml/AssignmentRule.h =================================================================== --- trunk/libsbml/src/sbml/AssignmentRule.h 2019-07-31 19:20:12 UTC (rev 26099) +++ trunk/libsbml/src/sbml/AssignmentRule.h 2019-07-31 21:09:07 UTC (rev 26100) @@ -284,7 +284,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this AssignmentRule. + * Returns the value of the "attributeName" attribute of this AssignmentRule. * * @param attributeName, the name of the attribute to retrieve. * @@ -304,7 +304,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this AssignmentRule. + * Returns the value of the "attributeName" attribute of this AssignmentRule. * * @param attributeName, the name of the attribute to retrieve. * @@ -323,7 +323,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this AssignmentRule. + * Returns the value of the "attributeName" attribute of this AssignmentRule. * * @param attributeName, the name of the attribute to retrieve. * @@ -343,7 +343,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this AssignmentRule. + * Returns the value of the "attributeName" attribute of this AssignmentRule. * * @param attributeName, the name of the attribute to retrieve. * @@ -363,7 +363,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this AssignmentRule. + * Returns the value of the "attributeName" attribute of this AssignmentRule. * * @param attributeName, the name of the attribute to retrieve. * @@ -383,7 +383,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this AssignmentRule. + * Returns the value of the "attributeName" attribute of this AssignmentRule. * * @param attributeName, the name of the attribute to retrieve. * @@ -673,7 +673,7 @@ /** - * Gets the mathematical expression of this AssignmentRule_t structure as an + * Returns the mathematical expression of this AssignmentRule_t structure as an * ASTNode_t structure. * * @param ar the AssignmentRule_t structure. Modified: trunk/libsbml/src/sbml/Compartment.cpp =================================================================== --- trunk/libsbml/src/sbml/Compartment.cpp 2019-07-31 19:20:12 UTC (rev 26099) +++ trunk/libsbml/src/sbml/Compartment.cpp 2019-07-31 21:09:07 UTC (rev 26100) @@ -1018,7 +1018,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this Compartment. + * Returns the value of the "attributeName" attribute of this Compartment. */ int Compartment::getAttribute(const std::string& attributeName, bool& value) const @@ -1046,7 +1046,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this Compartment. + * Returns the value of the "attributeName" attribute of this Compartment. */ int Compartment::getAttribute(const std::string& attributeName, int& value) const @@ -1063,7 +1063,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this Compartment. + * Returns the value of the "attributeName" attribute of this Compartment. */ int Compartment::getAttribute(const std::string& attributeName, @@ -1102,7 +1102,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this Compartment. + * Returns the value of the "attributeName" attribute of this Compartment. */ int Compartment::getAttribute(const std::string& attributeName, @@ -1131,7 +1131,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this Compartment. + * Returns the value of the "attributeName" attribute of this Compartment. */ int Compartment::getAttribute(const std::string& attributeName, @@ -1170,7 +1170,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this Compartment. + * Returns the value of the "attributeName" attribute of this Compartment. */ //int //Compartment::getAttribute(const std::string& attributeName, Modified: trunk/libsbml/src/sbml/Compartment.h =================================================================== --- trunk/libsbml/src/sbml/Compartment.h 2019-07-31 19:20:12 UTC (rev 26099) +++ trunk/libsbml/src/sbml/Compartment.h 2019-07-31 21:09:07 UTC (rev 26100) @@ -1328,7 +1328,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this Compartment. + * Returns the value of the "attributeName" attribute of this Compartment. * * @param attributeName, the name of the attribute to retrieve. * @@ -1348,7 +1348,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this Compartment. + * Returns the value of the "attributeName" attribute of this Compartment. * * @param attributeName, the name of the attribute to retrieve. * @@ -1367,7 +1367,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this Compartment. + * Returns the value of the "attributeName" attribute of this Compartment. * * @param attributeName, the name of the attribute to retrieve. * @@ -1387,7 +1387,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this Compartment. + * Returns the value of the "attributeName" attribute of this Compartment. * * @param attributeName, the name of the attribute to retrieve. * @@ -1407,7 +1407,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this Compartment. + * Returns the value of the "attributeName" attribute of this Compartment. * * @param attributeName, the name of the attribute to retrieve. * @@ -1427,7 +1427,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this Compartment. + * Returns the value of the "attributeName" attribute of this Compartment. * * @param attributeName, the name of the attribute to retrieve. * Modified: trunk/libsbml/src/sbml/CompartmentType.cpp =================================================================== --- trunk/libsbml/src/sbml/CompartmentType.cpp 2019-07-31 19:20:12 UTC (rev 26099) +++ trunk/libsbml/src/sbml/CompartmentType.cpp 2019-07-31 21:09:07 UTC (rev 26100) @@ -312,7 +312,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this CompartmentType. + * Returns the value of the "attributeName" attribute of this CompartmentType. */ int CompartmentType::getAttribute(const std::string& attributeName, @@ -330,7 +330,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this CompartmentType. + * Returns the value of the "attributeName" attribute of this CompartmentType. */ int CompartmentType::getAttribute(const std::string& attributeName, @@ -348,7 +348,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this CompartmentType. + * Returns the value of the "attributeName" attribute of this CompartmentType. */ int CompartmentType::getAttribute(const std::string& attributeName, @@ -366,7 +366,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this CompartmentType. + * Returns the value of the "attributeName" attribute of this CompartmentType. */ int CompartmentType::getAttribute(const std::string& attributeName, @@ -384,7 +384,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this CompartmentType. + * Returns the value of the "attributeName" attribute of this CompartmentType. */ int CompartmentType::getAttribute(const std::string& attributeName, @@ -402,7 +402,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this CompartmentType. + * Returns the value of the "attributeName" attribute of this CompartmentType. */ //int //CompartmentType::getAttribute(const std::string& attributeName, Modified: trunk/libsbml/src/sbml/CompartmentType.h =================================================================== --- trunk/libsbml/src/sbml/CompartmentType.h 2019-07-31 19:20:12 UTC (rev 26099) +++ trunk/libsbml/src/sbml/CompartmentType.h 2019-07-31 21:09:07 UTC (rev 26100) @@ -321,7 +321,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this CompartmentType. + * Returns the value of the "attributeName" attribute of this CompartmentType. * * @param attributeName, the name of the attribute to retrieve. * @@ -341,7 +341,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this CompartmentType. + * Returns the value of the "attributeName" attribute of this CompartmentType. * * @param attributeName, the name of the attribute to retrieve. * @@ -360,7 +360,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this CompartmentType. + * Returns the value of the "attributeName" attribute of this CompartmentType. * * @param attributeName, the name of the attribute to retrieve. * @@ -380,7 +380,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this CompartmentType. + * Returns the value of the "attributeName" attribute of this CompartmentType. * * @param attributeName, the name of the attribute to retrieve. * @@ -400,7 +400,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this CompartmentType. + * Returns the value of the "attributeName" attribute of this CompartmentType. * * @param attributeName, the name of the attribute to retrieve. * @@ -420,7 +420,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this CompartmentType. + * Returns the value of the "attributeName" attribute of this CompartmentType. * * @param attributeName, the name of the attribute to retrieve. * Modified: trunk/libsbml/src/sbml/Constraint.cpp =================================================================== --- trunk/libsbml/src/sbml/Constraint.cpp 2019-07-31 19:20:12 UTC (rev 26099) +++ trunk/libsbml/src/sbml/Constraint.cpp 2019-07-31 21:09:07 UTC (rev 26100) @@ -482,7 +482,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this Constraint. + * Returns the value of the "attributeName" attribute of this Constraint. */ int Constraint::getAttribute(const std::string& attributeName, bool& value) const @@ -499,7 +499,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this Constraint. + * Returns the value of the "attributeName" attribute of this Constraint. */ int Constraint::getAttribute(const std::string& attributeName, int& value) const @@ -516,7 +516,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this Constraint. + * Returns the value of the "attributeName" attribute of this Constraint. */ int Constraint::getAttribute(const std::string& attributeName, @@ -534,7 +534,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this Constraint. + * Returns the value of the "attributeName" attribute of this Constraint. */ int Constraint::getAttribute(const std::string& attributeName, @@ -552,7 +552,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this Constraint. + * Returns the value of the "attributeName" attribute of this Constraint. */ int Constraint::getAttribute(const std::string& attributeName, @@ -570,7 +570,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this Constraint. + * Returns the value of the "attributeName" attribute of this Constraint. */ //int //Constraint::getAttribute(const std::string& attributeName, Modified: trunk/libsbml/src/sbml/Constraint.h =================================================================== --- trunk/libsbml/src/sbml/Constraint.h 2019-07-31 19:20:12 UTC (rev 26099) +++ trunk/libsbml/src/sbml/Constraint.h 2019-07-31 21:09:07 UTC (rev 26100) @@ -410,7 +410,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this Constraint. + * Returns the value of the "attributeName" attribute of this Constraint. * * @param attributeName, the name of the attribute to retrieve. * @@ -430,7 +430,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this Constraint. + * Returns the value of the "attributeName" attribute of this Constraint. * * @param attributeName, the name of the attribute to retrieve. * @@ -449,7 +449,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this Constraint. + * Returns the value of the "attributeName" attribute of this Constraint. * * @param attributeName, the name of the attribute to retrieve. * @@ -469,7 +469,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this Constraint. + * Returns the value of the "attributeName" attribute of this Constraint. * * @param attributeName, the name of the attribute to retrieve. * @@ -489,7 +489,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this Constraint. + * Returns the value of the "attributeName" attribute of this Constraint. * * @param attributeName, the name of the attribute to retrieve. * @@ -509,7 +509,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this Constraint. + * Returns the value of the "attributeName" attribute of this Constraint. * * @param attributeName, the name of the attribute to retrieve. * Modified: trunk/libsbml/src/sbml/Delay.cpp =================================================================== --- trunk/libsbml/src/sbml/Delay.cpp 2019-07-31 19:20:12 UTC (rev 26099) +++ trunk/libsbml/src/sbml/Delay.cpp 2019-07-31 21:09:07 UTC (rev 26100) @@ -447,7 +447,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this Delay. + * Returns the value of the "attributeName" attribute of this Delay. */ int Delay::getAttribute(const std::string& attributeName, bool& value) const @@ -464,7 +464,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this Delay. + * Returns the value of the "attributeName" attribute of this Delay. */ int Delay::getAttribute(const std::string& attributeName, int& value) const @@ -481,7 +481,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this Delay. + * Returns the value of the "attributeName" attribute of this Delay. */ int Delay::getAttribute(const std::string& attributeName, double& value) const @@ -498,7 +498,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this Delay. + * Returns the value of the "attributeName" attribute of this Delay. */ int Delay::getAttribute(const std::string& attributeName, @@ -516,7 +516,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this Delay. + * Returns the value of the "attributeName" attribute of this Delay. */ int Delay::getAttribute(const std::string& attributeName, @@ -534,7 +534,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this Delay. + * Returns the value of the "attributeName" attribute of this Delay. */ //int //Delay::getAttribute(const std::string& attributeName, const char* value) const Modified: trunk/libsbml/src/sbml/Delay.h =================================================================== --- trunk/libsbml/src/sbml/Delay.h 2019-07-31 19:20:12 UTC (rev 26099) +++ trunk/libsbml/src/sbml/Delay.h 2019-07-31 21:09:07 UTC (rev 26100) @@ -533,7 +533,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this Delay. + * Returns the value of the "attributeName" attribute of this Delay. * * @param attributeName, the name of the attribute to retrieve. * @@ -553,7 +553,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this Delay. + * Returns the value of the "attributeName" attribute of this Delay. * * @param attributeName, the name of the attribute to retrieve. * @@ -572,7 +572,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this Delay. + * Returns the value of the "attributeName" attribute of this Delay. * * @param attributeName, the name of the attribute to retrieve. * @@ -592,7 +592,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this Delay. + * Returns the value of the "attributeName" attribute of this Delay. * * @param attributeName, the name of the attribute to retrieve. * @@ -612,7 +612,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this Delay. + * Returns the value of the "attributeName" attribute of this Delay. * * @param attributeName, the name of the attribute to retrieve. * @@ -632,7 +632,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this Delay. + * Returns the value of the "attributeName" attribute of this Delay. * * @param attributeName, the name of the attribute to retrieve. * Modified: trunk/libsbml/src/sbml/Event.cpp =================================================================== --- trunk/libsbml/src/sbml/Event.cpp 2019-07-31 19:20:12 UTC (rev 26099) +++ trunk/libsbml/src/sbml/Event.cpp 2019-07-31 21:09:07 UTC (rev 26100) @@ -1370,7 +1370,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this Event. + * Returns the value of the "attributeName" attribute of this Event. */ int Event::getAttribute(const std::string& attributeName, bool& value) const @@ -1398,7 +1398,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this Event. + * Returns the value of the "attributeName" attribute of this Event. */ int Event::getAttribute(const std::string& attributeName, int& value) const @@ -1415,7 +1415,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this Event. + * Returns the value of the "attributeName" attribute of this Event. */ int Event::getAttribute(const std::string& attributeName, double& value) const @@ -1432,7 +1432,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this Event. + * Returns the value of the "attributeName" attribute of this Event. */ int Event::getAttribute(const std::string& attributeName, @@ -1450,7 +1450,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this Event. + * Returns the value of the "attributeName" attribute of this Event. */ int Event::getAttribute(const std::string& attributeName, @@ -1479,7 +1479,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this Event. + * Returns the value of the "attributeName" attribute of this Event. */ //int //Event::getAttribute(const std::string& attributeName, const char* value) const Modified: trunk/libsbml/src/sbml/Event.h =================================================================== --- trunk/libsbml/src/sbml/Event.h 2019-07-31 19:20:12 UTC (rev 26099) +++ trunk/libsbml/src/sbml/Event.h 2019-07-31 21:09:07 UTC (rev 26100) @@ -1121,7 +1121,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this Event. + * Returns the value of the "attributeName" attribute of this Event. * * @param attributeName, the name of the attribute to retrieve. * @@ -1141,7 +1141,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this Event. + * Returns the value of the "attributeName" attribute of this Event. * * @param attributeName, the name of the attribute to retrieve. * @@ -1160,7 +1160,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this Event. + * Returns the value of the "attributeName" attribute of this Event. * * @param attributeName, the name of the attribute to retrieve. * @@ -1180,7 +1180,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this Event. + * Returns the value of the "attributeName" attribute of this Event. * * @param attributeName, the name of the attribute to retrieve. * @@ -1200,7 +1200,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this Event. + * Returns the value of the "attributeName" attribute of this Event. * * @param attributeName, the name of the attribute to retrieve. * @@ -1220,7 +1220,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this Event. + * Returns the value of the "attributeName" attribute of this Event. * * @param attributeName, the name of the attribute to retrieve. * Modified: trunk/libsbml/src/sbml/EventAssignment.cpp =================================================================== --- trunk/libsbml/src/sbml/EventAssignment.cpp 2019-07-31 19:20:12 UTC (rev 26099) +++ trunk/libsbml/src/sbml/EventAssignment.cpp 2019-07-31 21:09:07 UTC (rev 26100) @@ -485,7 +485,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this EventAssignment. + * Returns the value of the "attributeName" attribute of this EventAssignment. */ int EventAssignment::getAttribute(const std::string& attributeName, @@ -503,7 +503,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this EventAssignment. + * Returns the value of the "attributeName" attribute of this EventAssignment. */ int EventAssignment::getAttribute(const std::string& attributeName, @@ -521,7 +521,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this EventAssignment. + * Returns the value of the "attributeName" attribute of this EventAssignment. */ int EventAssignment::getAttribute(const std::string& attributeName, @@ -539,7 +539,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this EventAssignment. + * Returns the value of the "attributeName" attribute of this EventAssignment. */ int EventAssignment::getAttribute(const std::string& attributeName, @@ -557,7 +557,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this EventAssignment. + * Returns the value of the "attributeName" attribute of this EventAssignment. */ int EventAssignment::getAttribute(const std::string& attributeName, @@ -586,7 +586,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this EventAssignment. + * Returns the value of the "attributeName" attribute of this EventAssignment. */ //int //EventAssignment::getAttribute(const std::string& attributeName, Modified: trunk/libsbml/src/sbml/EventAssignment.h =================================================================== --- trunk/libsbml/src/sbml/EventAssignment.h 2019-07-31 19:20:12 UTC (rev 26099) +++ trunk/libsbml/src/sbml/EventAssignment.h 2019-07-31 21:09:07 UTC (rev 26100) @@ -663,7 +663,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this EventAssignment. + * Returns the value of the "attributeName" attribute of this EventAssignment. * * @param attributeName, the name of the attribute to retrieve. * @@ -683,7 +683,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this EventAssignment. + * Returns the value of the "attributeName" attribute of this EventAssignment. * * @param attributeName, the name of the attribute to retrieve. * @@ -702,7 +702,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this EventAssignment. + * Returns the value of the "attributeName" attribute of this EventAssignment. * * @param attributeName, the name of the attribute to retrieve. * @@ -722,7 +722,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this EventAssignment. + * Returns the value of the "attributeName" attribute of this EventAssignment. * * @param attributeName, the name of the attribute to retrieve. * @@ -742,7 +742,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this EventAssignment. + * Returns the value of the "attributeName" attribute of this EventAssignment. * * @param attributeName, the name of the attribute to retrieve. * @@ -762,7 +762,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this EventAssignment. + * Returns the value of the "attributeName" attribute of this EventAssignment. * * @param attributeName, the name of the attribute to retrieve. * @@ -1294,7 +1294,7 @@ /** - * Gets the value of the "variable" attribute of this EventAssignment_t + * Returns the value of the "variable" attribute of this EventAssignment_t * structure. * * @param ea the EventAssignment_t structure to query. @@ -1309,7 +1309,7 @@ /** - * Gets the mathematical formula stored in the given EventAssignment_t + * Returns the mathematical formula stored in the given EventAssignment_t * structure. * * @param ea the EventAssignment_t structure to query. Modified: trunk/libsbml/src/sbml/FunctionDefinition.cpp =================================================================== --- trunk/libsbml/src/sbml/FunctionDefinition.cpp 2019-07-31 19:20:12 UTC (rev 26099) +++ trunk/libsbml/src/sbml/FunctionDefinition.cpp 2019-07-31 21:09:07 UTC (rev 26100) @@ -631,7 +631,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this FunctionDefinition. + * Returns the value of the "attributeName" attribute of this FunctionDefinition. */ int FunctionDefinition::getAttribute(const std::string& attributeName, @@ -649,7 +649,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this FunctionDefinition. + * Returns the value of the "attributeName" attribute of this FunctionDefinition. */ int FunctionDefinition::getAttribute(const std::string& attributeName, @@ -667,7 +667,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this FunctionDefinition. + * Returns the value of the "attributeName" attribute of this FunctionDefinition. */ int FunctionDefinition::getAttribute(const std::string& attributeName, @@ -685,7 +685,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this FunctionDefinition. + * Returns the value of the "attributeName" attribute of this FunctionDefinition. */ int FunctionDefinition::getAttribute(const std::string& attributeName, @@ -703,7 +703,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this FunctionDefinition. + * Returns the value of the "attributeName" attribute of this FunctionDefinition. */ int FunctionDefinition::getAttribute(const std::string& attributeName, @@ -721,7 +721,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this FunctionDefinition. + * Returns the value of the "attributeName" attribute of this FunctionDefinition. */ //int //FunctionDefinition::getAttribute(const std::string& attributeName, Modified: trunk/libsbml/src/sbml/FunctionDefinition.h =================================================================== --- trunk/libsbml/src/sbml/FunctionDefinition.h 2019-07-31 19:20:12 UTC (rev 26099) +++ trunk/libsbml/src/sbml/FunctionDefinition.h 2019-07-31 21:09:07 UTC (rev 26100) @@ -481,7 +481,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this + * Returns the value of the "attributeName" attribute of this * FunctionDefinition. * * @param attributeName, the name of the attribute to retrieve. @@ -502,7 +502,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this + * Returns the value of the "attributeName" attribute of this * FunctionDefinition. * * @param attributeName, the name of the attribute to retrieve. @@ -522,7 +522,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this + * Returns the value of the "attributeName" attribute of this * FunctionDefinition. * * @param attributeName, the name of the attribute to retrieve. @@ -543,7 +543,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this + * Returns the value of the "attributeName" attribute of this * FunctionDefinition. * * @param attributeName, the name of the attribute to retrieve. @@ -564,7 +564,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this + * Returns the value of the "attributeName" attribute of this * FunctionDefinition. * * @param attributeName, the name of the attribute to retrieve. @@ -585,7 +585,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this + * Returns the value of the "attributeName" attribute of this * FunctionDefinition. * * @param attributeName, the name of the attribute to retrieve. Modified: trunk/libsbml/src/sbml/InitialAssignment.cpp =================================================================== --- trunk/libsbml/src/sbml/InitialAssignment.cpp 2019-07-31 19:20:12 UTC (rev 26099) +++ trunk/libsbml/src/sbml/InitialAssignment.cpp 2019-07-31 21:09:07 UTC (rev 26100) @@ -464,7 +464,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this InitialAssignment. + * Returns the value of the "attributeName" attribute of this InitialAssignment. */ int InitialAssignment::getAttribute(const std::string& attributeName, @@ -482,7 +482,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this InitialAssignment. + * Returns the value of the "attributeName" attribute of this InitialAssignment. */ int InitialAssignment::getAttribute(const std::string& attributeName, @@ -500,7 +500,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this InitialAssignment. + * Returns the value of the "attributeName" attribute of this InitialAssignment. */ int InitialAssignment::getAttribute(const std::string& attributeName, @@ -518,7 +518,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this InitialAssignment. + * Returns the value of the "attributeName" attribute of this InitialAssignment. */ int InitialAssignment::getAttribute(const std::string& attributeName, @@ -536,7 +536,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this InitialAssignment. + * Returns the value of the "attributeName" attribute of this InitialAssignment. */ int InitialAssignment::getAttribute(const std::string& attributeName, @@ -565,7 +565,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this InitialAssignment. + * Returns the value of the "attributeName" attribute of this InitialAssignment. */ //int //InitialAssignment::getAttribute(const std::string& attributeName, Modified: trunk/libsbml/src/sbml/InitialAssignment.h =================================================================== --- trunk/libsbml/src/sbml/InitialAssignment.h 2019-07-31 19:20:12 UTC (rev 26099) +++ trunk/libsbml/src/sbml/InitialAssignment.h 2019-07-31 21:09:07 UTC (rev 26100) @@ -640,7 +640,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this InitialAssignment. + * Returns the value of the "attributeName" attribute of this InitialAssignment. * * @param attributeName, the name of the attribute to retrieve. * @@ -660,7 +660,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this InitialAssignment. + * Returns the value of the "attributeName" attribute of this InitialAssignment. * * @param attributeName, the name of the attribute to retrieve. * @@ -679,7 +679,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this InitialAssignment. + * Returns the value of the "attributeName" attribute of this InitialAssignment. * * @param attributeName, the name of the attribute to retrieve. * @@ -699,7 +699,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this InitialAssignment. + * Returns the value of the "attributeName" attribute of this InitialAssignment. * * @param attributeName, the name of the attribute to retrieve. * @@ -719,7 +719,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this InitialAssignment. + * Returns the value of the "attributeName" attribute of this InitialAssignment. * * @param attributeName, the name of the attribute to retrieve. * @@ -739,7 +739,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this InitialAssignment. + * Returns the value of the "attributeName" attribute of this InitialAssignment. * * @param attributeName, the name of the attribute to retrieve. * Modified: trunk/libsbml/src/sbml/KineticLaw.cpp =================================================================== --- trunk/libsbml/src/sbml/KineticLaw.cpp 2019-07-31 19:20:12 UTC (rev 26099) +++ trunk/libsbml/src/sbml/KineticLaw.cpp 2019-07-31 21:09:07 UTC (rev 26100) @@ -1166,7 +1166,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this KineticLaw. + * Returns the value of the "attributeName" attribute of this KineticLaw. */ int KineticLaw::getAttribute(const std::string& attributeName, bool& value) const @@ -1183,7 +1183,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this KineticLaw. + * Returns the value of the "attributeName" attribute of this KineticLaw. */ int KineticLaw::getAttribute(const std::string& attributeName, int& value) const @@ -1200,7 +1200,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this KineticLaw. + * Returns the value of the "attributeName" attribute of this KineticLaw. */ int KineticLaw::getAttribute(const std::string& attributeName, @@ -1218,7 +1218,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this KineticLaw. + * Returns the value of the "attributeName" attribute of this KineticLaw. */ int KineticLaw::getAttribute(const std::string& attributeName, @@ -1236,7 +1236,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this KineticLaw. + * Returns the value of the "attributeName" attribute of this KineticLaw. */ int KineticLaw::getAttribute(const std::string& attributeName, @@ -1270,7 +1270,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this KineticLaw. + * Returns the value of the "attributeName" attribute of this KineticLaw. */ //int //KineticLaw::getAttribute(const std::string& attributeName, Modified: trunk/libsbml/src/sbml/KineticLaw.h =================================================================== --- trunk/libsbml/src/sbml/KineticLaw.h 2019-07-31 19:20:12 UTC (rev 26099) +++ trunk/libsbml/src/sbml/KineticLaw.h 2019-07-31 21:09:07 UTC (rev 26100) @@ -1070,7 +1070,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this KineticLaw. + * Returns the value of the "attributeName" attribute of this KineticLaw. * * @param attributeName, the name of the attribute to retrieve. * @@ -1090,7 +1090,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this KineticLaw. + * Returns the value of the "attributeName" attribute of this KineticLaw. * * @param attributeName, the name of the attribute to retrieve. * @@ -1109,7 +1109,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this KineticLaw. + * Returns the value of the "attributeName" attribute of this KineticLaw. * * @param attributeName, the name of the attribute to retrieve. * @@ -1129,7 +1129,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this KineticLaw. + * Returns the value of the "attributeName" attribute of this KineticLaw. * * @param attributeName, the name of the attribute to retrieve. * @@ -1149,7 +1149,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this KineticLaw. + * Returns the value of the "attributeName" attribute of this KineticLaw. * * @param attributeName, the name of the attribute to retrieve. * @@ -1169,7 +1169,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this KineticLaw. + * Returns the value of the "attributeName" attribute of this KineticLaw. * * @param attributeName, the name of the attribute to retrieve. * @@ -1599,7 +1599,7 @@ /** - * Gets the mathematical expression of this KineticLaw_t structure as a + * Returns the mathematical expression of this KineticLaw_t structure as a * formula in text-string form. * * This is fundamentally equivalent to KineticLaw_getMath(). It is @@ -1630,7 +1630,7 @@ /** - * Gets the mathematical expression of this KineticLaw_t structure as an + * Returns the mathematical expression of this KineticLaw_t structure as an * ASTNode_t structure. * * This is fundamentally equivalent to KineticLaw_getFormula(). The latter @@ -1651,7 +1651,7 @@ /** - * Gets the value of the "timeUnits" attribute of the given + * Returns the value of the "timeUnits" attribute of the given * KineticLaw_t structure. * * @param kl the KineticLaw_t structure. @@ -1670,7 +1670,7 @@ /** - * Gets the value of the "substanceUnits" attribute of the given + * Returns the value of the "substanceUnits" attribute of the given * KineticLaw_t structure. * * @param kl the KineticLaw_t structure. Modified: trunk/libsbml/src/sbml/LocalParameter.cpp =================================================================== --- trunk/libsbml/src/sbml/LocalParameter.cpp 2019-07-31 19:20:12 UTC (rev 26099) +++ trunk/libsbml/src/sbml/LocalParameter.cpp 2019-07-31 21:09:07 UTC (rev 26100) @@ -266,7 +266,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this LocalParameter. + * Returns the value of the "attributeName" attribute of this LocalParameter. */ int LocalParameter::getAttribute(const std::string& attributeName, @@ -284,7 +284,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this LocalParameter. + * Returns the value of the "attributeName" attribute of this LocalParameter. */ int LocalParameter::getAttribute(const std::string& attributeName, @@ -302,7 +302,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this LocalParameter. + * Returns the value of the "attributeName" attribute of this LocalParameter. */ int LocalParameter::getAttribute(const std::string& attributeName, @@ -331,7 +331,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this LocalParameter. + * Returns the value of the "attributeName" attribute of this LocalParameter. */ int LocalParameter::getAttribute(const std::string& attributeName, @@ -349,7 +349,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this LocalParameter. + * Returns the value of the "attributeName" attribute of this LocalParameter. */ int LocalParameter::getAttribute(const std::string& attributeName, @@ -378,7 +378,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this LocalParameter. + * Returns the value of the "attributeName" attribute of this LocalParameter. */ //int //LocalParameter::getAttribute(const std::string& attributeName, Modified: trunk/libsbml/src/sbml/LocalParameter.h =================================================================== --- trunk/libsbml/src/sbml/LocalParameter.h 2019-07-31 19:20:12 UTC (rev 26099) +++ trunk/libsbml/src/sbml/LocalParameter.h 2019-07-31 21:09:07 UTC (rev 26100) @@ -369,7 +369,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this LocalParameter. + * Returns the value of the "attributeName" attribute of this LocalParameter. * * @param attributeName, the name of the attribute to retrieve. * @@ -389,7 +389,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this LocalParameter. + * Returns the value of the "attributeName" attribute of this LocalParameter. * * @param attributeName, the name of the attribute to retrieve. * @@ -408,7 +408,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this LocalParameter. + * Returns the value of the "attributeName" attribute of this LocalParameter. * * @param attributeName, the name of the attribute to retrieve. * @@ -428,7 +428,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this LocalParameter. + * Returns the value of the "attributeName" attribute of this LocalParameter. * * @param attributeName, the name of the attribute to retrieve. * @@ -448,7 +448,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this LocalParameter. + * Returns the value of the "attributeName" attribute of this LocalParameter. * * @param attributeName, the name of the attribute to retrieve. * @@ -468,7 +468,7 @@ /** @cond doxygenLibsbmlInternal */ /** - * Gets the value of the "attributeName" attribute of this LocalParameter. + * Returns the value of the "attributeName" attribute of this LocalParameter. * * @param attributeName, the name of the attribute to retrieve. * Modified: trunk/libsbml/src/sbml/Model.cpp =================================================================== --- trunk/libsbml/src/sbml/Model.cpp 2019-07-31 19:20:12 UTC (rev 26099) +++ trunk/libsbml/src/sbml/Model.cpp 2019-07-31 21:09:07 UTC (rev 26100) @@ -3793,7 +3793,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this Model. + * Returns the value of the "attributeName" attribute of this Model. */ int Model::getAttribute(const std::string& attributeName, bool& value) const @@ -3810,7 +3810,7 @@ /** @cond doxygenLibsbmlInternal */ /* - * Gets the value of the "attributeName" attribute of this Model. + * Returns the value of the "attributeName" attribute of this Model. */ int Model::getAttribute(const std::string& attributeName, int& value) const @@ -3827,7 +3827,7 @@ /** @cond d... [truncated message content] |
From: <luc...@us...> - 2019-07-31 19:20:16
|
Revision: 26099 http://sourceforge.net/p/sbml/code/26099 Author: luciansmith Date: 2019-07-31 19:20:12 +0000 (Wed, 31 Jul 2019) Log Message: ----------- Wording fixes. Modified Paths: -------------- trunk/specifications/sbml-level-3/version-1/spatial/specification/syntax.tex Modified: trunk/specifications/sbml-level-3/version-1/spatial/specification/syntax.tex =================================================================== --- trunk/specifications/sbml-level-3/version-1/spatial/specification/syntax.tex 2019-07-31 19:15:33 UTC (rev 26098) +++ trunk/specifications/sbml-level-3/version-1/spatial/specification/syntax.tex 2019-07-31 19:20:12 UTC (rev 26099) @@ -1043,7 +1043,7 @@ The \token{pointIndexLength} attribute is of type \primtype{int} and is required. It represents the array length of the \primtype{arrayData} text child of this node. If uncompressed, this will equal the number of referenced indices, but if compressed, this will equal the new compressed length of the array, not including any added whitespace. It is included for convenience and validation purposes. \subsubsection{The \fixttspace\tokenNC{dataType} attribute} -The \token{dataType} attribute is of type \primtype{DataKind} and is optional. It is used to specify the type of the data being stored\changed{, so that the uncompressed data can be stored in an appropriate storage type. Because all the data will be indexes into the \token{ArrayData} of the \SpatialPoints element, \val{uint} is the suggested value for this attribute (indicated unsigned integer values), with \val{uint8}, \val{uint16}, and \val{uint32} (indicating 8-bit, 16-bit, and 32-bit unsigned integer values, respectively) also being allowed. No other value is allowed, including the other types of DataKind (\val{int}, \val{float}, and \val{double}), since the data will never be that type.} +The \token{dataType} attribute is of type \primtype{DataKind} and is optional. It is used to specify the type of the data being stored\changed{, so that the uncompressed data can be stored in an appropriate storage type. Because all the data will be indexes into the \token{ArrayData} of the \SpatialPoints element, \val{uint} is the suggested value for this attribute (indicating unsigned integer values), with \val{uint8}, \val{uint16}, and \val{uint32} (indicating 8-bit, 16-bit, and 32-bit unsigned integer values, respectively) also being allowed. No other value is allowed, including the other types of \primtype{DataKind} (\val{int}, \val{float}, and \val{double}), since the data will never be that type.} \subsubsection{The \fixttspace\tokenNC{PointIndex} text child} |
From: <luc...@us...> - 2019-07-31 19:15:37
|
Revision: 26098 http://sourceforge.net/p/sbml/code/26098 Author: luciansmith Date: 2019-07-31 19:15:33 +0000 (Wed, 31 Jul 2019) Log Message: ----------- Define what 'deflate' means more specifically, and allow 'uint' and 'int' as DataKind types. Modified Paths: -------------- trunk/specifications/sbml-level-3/version-1/spatial/specification/syntax.tex Modified: trunk/specifications/sbml-level-3/version-1/spatial/specification/syntax.tex =================================================================== --- trunk/specifications/sbml-level-3/version-1/spatial/specification/syntax.tex 2019-07-31 19:12:50 UTC (rev 26097) +++ trunk/specifications/sbml-level-3/version-1/spatial/specification/syntax.tex 2019-07-31 19:15:33 UTC (rev 26098) @@ -84,7 +84,7 @@ \subsubsection{Type \fixttspace\primtypeNC{DataKind}} \label{primtype-DataKind} -The \primtype{DataKind} primitive data type is used in the definition of the \SampledField and \ParametricGeometry classes. It is derived from type \primtype{string} and its values are restricted to being one of the following possibilities: \val{double}, \val{float}, \val{uint8}, \val{uint16}, and \val{uint32}. Attributes of type \primtype{DataKind} cannot take on any other values. The meaning of these values is discussed in the context of the classes' definitions in \sec{sampledfield-class} and \sec{parametricgeometry-class}. +The \primtype{DataKind} primitive data type is used in the definition of the \SampledField and \ParametricGeometry classes. It is derived from type \primtype{string} and its values are \changed{suggested to be limited to the following three options: \val{uint}, \val{int}, or \val{double}. For backwards compatibility, and for space reasons, the values \val{float}, \val{uint8}, \val{uint16}, and \val{uint32} are also allowed.} Attributes of type \primtype{DataKind} cannot take on any other values. The meaning of these values is discussed in the context of the classes' definitions in \sec{sampledfield-class} and \sec{parametricgeometry-class}. \subsubsection{Type \fixttspace\primtypeNC{DiffusionKind}} @@ -96,7 +96,7 @@ \subsubsection{Type \fixttspace\primtypeNC{CompressionKind}} \label{primtype-CompressionKind} -The \primtype{CompressionKind} primitive data type is used in the definition of the \SampledField and \ParametricObject classes. It is derived from type \primtype{string} and its values are restricted to being one of the following possibilities: \val{uncompressed}, and \val{deflated}. Attributes of type \primtype{CompressionKind} cannot take on any other values. The meaning of these values is discussed in the context of the classes' definitions in \sec{sampledfield-class} and \sec{parametricobject-class}. +The \primtype{CompressionKind} primitive data type is used in the definition of the \SampledField and \ParametricObject classes. It is derived from type \primtype{string} and its values are restricted to being one of the following possibilities: \val{uncompressed}, and \val{deflated}. Attributes of type \primtype{CompressionKind} cannot take on any other values. The meaning of these values is discussed in the context of the classes' definitions in \sec{spatialpoints-class}, \sec{parametricobject-class}, and \sec{sampledfield-class}. \subsubsection{Type \fixttspace\primtypeNC{FunctionKind}} @@ -1001,7 +1001,7 @@ The \SpatialPoints element represents the set of points to be used as vertices in the \ParametricGeometry. In essence, the \SpatialPoints defines a lattice on which each \ParametricObject is to be drawn. There may be unused points in the list if no \ParametricObject ever uses that index to draw its shape. \subsubsection{The \fixttspace\tokenNC{compression} attribute} -The required \token{compression} attribute is of type \primtype{CompressionKind}. It is used to specify the compression used when encoding the data, and can have the value \val{uncompressed} if no compression was used, or \val{deflated} if the deflation algorithm was used to compress the text version of the data. +The required \token{compression} attribute is of type \primtype{CompressionKind}. It is used to specify the compression used when encoding the data, and can have the value \val{uncompressed} if no compression was used, or \val{deflated} if the deflation algorithm was used to compress the data. \changed{The deflation compression algorithm to be used is gzip, which adds a header to the deflated data. This algorithm is freely available. The version of the data to be compressed is the string version of the values in the array, which may consist of numbers, whitespace, commas, and semicolons.} %{\color{red} Lucian: \notice Based on our discussion on the list about compression, the above is a compromise/temporary position so that existing implementations can continue to work for now, but we are moving towards using base64 in the future. Eventually, if base64 turns out to work great, we should be able to drop 'deflated' as an option entirely, and only use 'uncompressed' and 'base64'.} @@ -1010,7 +1010,7 @@ \subsubsection{The \fixttspace\tokenNC{dataType} attribute} -The \token{dataType} attribute is of type \primtype{DataKind} and is optional. It is used to specify the type of the data being stored. The value \val{double} is used to indicate double-precision (64-bit) floating point values; \val{float} to indicate single-precision (32-bit) floating point values, and \val{uint8}, \val{uint16}, and \val{uint32} to indicate 8-bit, 16-bit, and 32-bit unsigned integer values, respectively. This attribute is required so that the compressed data can be properly uncompressed. +The \token{dataType} attribute is of type \primtype{DataKind} and is optional. It is used to specify the type of the data being stored\changed{, so that the uncompressed data can be stored in an appropriate storage type. The three main value types are \val{uint} for unsigned integers, \val{int} for signed integers, and \val{double} for double-precision floating point values. For backwards compatibility, and for cases where storage space might be an issue, other values may also be used:} \val{float} to indicate single-precision (32-bit) floating point values, and \val{uint8}, \val{uint16}, and \val{uint32} to indicate 8-bit, 16-bit, and 32-bit unsigned integer values, respectively. \subsubsection{The \fixttspace\tokenNC{ArrayData} text child} The \token{ArrayData} text child of the \SpatialPoints is in \token{arrayData} format, and represents an ordered list of sets of coordinates that will be used as the vertices of \ParametricObject elements in this \ParametricGeometry, with \val{0} representing the first such coordinate, \val{1} the second, etc. The list will define vertexes with as many values as there are \CoordinateComponent children of the parent \Geometry: three values for representing the X, Y, and Z coordinates (respectively) of 3-dimensional geometries, or two values for representing the X and Y coordinates (respectively) of 2-dimensional geometries. (\ParametricGeometry elements cannot be created in 1-dimensional geometries.) It is suggested, but not required, that if the data is uncompressed, that the grouped points be separated from each other with the use of a semicolon. If the data is compressed, a semicolon is not to be used. @@ -1035,7 +1035,7 @@ The \token{domainType} attribute is of type \primtype{SpIdRef} and is a required attribute. It is a reference to the \token{id} of the \DomainType that this \ParametricObject represents. \subsubsection{The \fixttspace\tokenNC{compression} attribute} -The required \token{compression} attribute is of type \primtype{CompressionKind}. It is used to specify the compression used when encoding the data, and can have the value \val{uncompressed} if no compression was used, or \val{deflated} if the deflation algorithm was used to compress the text version of the data. +The required \token{compression} attribute is of type \primtype{CompressionKind}. It is used to specify the compression used when encoding the data, and can have the value \val{uncompressed} if no compression was used, or \val{deflated} if the deflation algorithm was used to compress the data. \changed{The deflation compression algorithm to be used is gzip, which adds a header to the deflated data. This algorithm is freely available. The version of the data to be compressed is the string version of the values in the array, which may consist of numbers, whitespace, commas, and semicolons.} %{\color{red} Lucian: \notice Based on our discussion on the list about compression, the above is a compromise/temporary position so that existing implementations can continue to work for now, but we are moving towards using base64 in the future. Eventually, if base64 turns out to work great, we should be able to drop 'deflated' as an option entirely, and only use 'uncompressed' and 'base64'.} @@ -1043,8 +1043,9 @@ The \token{pointIndexLength} attribute is of type \primtype{int} and is required. It represents the array length of the \primtype{arrayData} text child of this node. If uncompressed, this will equal the number of referenced indices, but if compressed, this will equal the new compressed length of the array, not including any added whitespace. It is included for convenience and validation purposes. \subsubsection{The \fixttspace\tokenNC{dataType} attribute} -The \token{dataType} attribute is of type \primtype{DataKind} and is optional. It is used to specify the type of the data being stored. Because all of the data will be indexes into the \token{ArrayData} of the \SpatialPoints element, the allowed formats are \val{uint8}, \val{uint16}, and \val{uint32} to indicate 8-bit, 16-bit, and 32-bit unsigned integer values, respectively. The values \val{double} and \val{float} are not to be used. This attribute is required so that the compressed data can be properly uncompressed. +The \token{dataType} attribute is of type \primtype{DataKind} and is optional. It is used to specify the type of the data being stored\changed{, so that the uncompressed data can be stored in an appropriate storage type. Because all the data will be indexes into the \token{ArrayData} of the \SpatialPoints element, \val{uint} is the suggested value for this attribute (indicated unsigned integer values), with \val{uint8}, \val{uint16}, and \val{uint32} (indicating 8-bit, 16-bit, and 32-bit unsigned integer values, respectively) also being allowed. No other value is allowed, including the other types of DataKind (\val{int}, \val{float}, and \val{double}), since the data will never be that type.} + \subsubsection{The \fixttspace\tokenNC{PointIndex} text child} The \token{PointIndex} text child of the \ParametricObject is in \token{arrayData} format, and represents an ordered list of indices that refer to elements in the \SpatialPoints array and are interpreted by considering the \token{polygonType} attribute of the \ParametricObject with a value of \val{triangle} indicating that the data is to be grouped in sets of three, and a value of \val{quadrilateral} indicating that the data is to be grouped in sets of four. The sequence of indices must follow adjacent edges, with an implied edge between the first and last vertex. Additionally, the order of that sequence should be consistently clockwise or counter-clockwise for any contiguous surface. This can be accomplished by ensuring that when an edge is used for two different faces, the order of that edge is reversed for the second face. It is suggested, but not required, that if the data is uncompressed, that the grouped points be separated from each other with the use of a semicolon. If the data is compressed, a semicolon is not to be used. Each set of indices that define a polygon face should each refer to a different location. This means that one should not re-use index values with a single polygon face, nor should one use two index values in the same face that are mapped to the same location. @@ -1165,7 +1166,7 @@ The \token{numSamples1}, \token{numSamples2}, and \token{numSamples3} attributes represent the number of samples in each of the coordinate components. (e.g. numX, numY, numZ) in an image dataset. These attributes are of type \primtype{positive int} and are required to specify the \SampledField. The samples are assumed to be uniformly sampled. It is required to have as many \token{numSamples} attributes as there are \CoordinateComponent elements in the \Geometry, with \token{numSamples1} defined if there is a \token{cartesianX} element; \token{numSamples2} defined if there is a \token{cartesianY} element, and \token{numSamples3} defined if there is a \token{cartesianZ} element, each attribute corresponding to the \CoordinateComponent with the respective \token{type}. \subsubsection{The \fixttspace\tokenNC{compression} attribute} -The required \token{compression} attribute is of type \primtype{CompressionKind}. It is used to specify the compression used when encoding the data, and can have the value \val{uncompressed} if no compression was used, or \val{deflated} if the deflation algorithm was used to compress the text version of the data. +The required \token{compression} attribute is of type \primtype{CompressionKind}. It is used to specify the compression used when encoding the data, and can have the value \val{uncompressed} if no compression was used, or \val{deflated} if the deflation algorithm was used to compress the data. \changed{The deflation compression algorithm to be used is gzip, which adds a header to the deflated data. This algorithm is freely available. The version of the data to be compressed is the string version of the values in the array, which may consist of numbers, whitespace, commas, and semicolons.} %{\color{red} Lucian: \notice Based on our discussion on the list about compression, the above is a compromise/temporary position so that existing implementations can continue to work for now, but we are moving towards using base64 in the future. Eventually, if base64 turns out to work great, we should be able to drop 'deflated' as an option entirely, and only use 'uncompressed' and 'base64'.} @@ -1173,7 +1174,7 @@ The \token{samplesLength} attribute is of type \primtype{positive int} and is required. It represents the array length of the \primtype{arrayData} text child of this node. If uncompressed, this will equal the product of the \token{numSamples*} attributes, but if compressed, this will equal the new compressed length of the array, not including any added whitespace. It is included for convenience and validation purposes. \subsubsection{The \fixttspace\tokenNC{dataType} attribute} -The \token{dataType} attribute is of type \primtype{DataKind} and is optional. It is used to specify the type of the data being stored. The value \val{double} is used to indicate double-precision (64-bit) floating point values; \val{float} to indicate single-precision (32-bit) floating point values, and \val{uint8}, \val{uint16}, and \val{uint32} to indicate 8-bit, 16-bit, and 32-bit unsigned integer values, respectively. +The \token{dataType} attribute is of type \primtype{DataKind} and is optional. It is used to specify the type of the data being stored\changed{, so that the uncompressed data can be stored in an appropriate storage type. The three main value types are \val{uint} for unsigned integers, \val{int} for signed integers, and \val{double} for double-precision floating point values. For backwards compatibility, and for cases where storage space might be an issue, other values may also be used:} \val{float} to indicate single-precision (32-bit) floating point values, and \val{uint8}, \val{uint16}, and \val{uint32} to indicate 8-bit, 16-bit, and 32-bit unsigned integer values, respectively. \subsubsection{The \fixttspace\tokenNC{Samples} text child} The \token{Samples} text child of the \SampledField is where the data for the \SampledField resides. It is of type \primtype{arrayData}, which is defined as whitespace-delimited, possibly-compressed numerical values. Whether or not the data is compressed (and how, if so) is stated with the \token{compression} attribute, and the type of numerical values included is stated in the \token{dataType} attribute. The total number of entries in the array can be derived from the \token{numSamples} attributes, by multiplying them together (if present). It is suggested, but not required, that if the data is uncompressed, that the grouped points be separated from each other with the use of a semicolon. If the data is compressed, a semicolon is not to be used. |
From: <luc...@us...> - 2019-07-31 19:13:03
|
Revision: 26097 http://sourceforge.net/p/sbml/code/26097 Author: luciansmith Date: 2019-07-31 19:12:50 +0000 (Wed, 31 Jul 2019) Log Message: ----------- Add 'uint' and 'int' to the allowable types of 'DataKind'. Modified Paths: -------------- branches/libsbml-experimental/src/sbml/packages/spatial/extension/SpatialExtension.cpp branches/libsbml-experimental/src/sbml/packages/spatial/extension/SpatialExtension.h branches/libsbml-experimental/src/sbml/packages/spatial/sbml/ParametricObject.h branches/libsbml-experimental/src/sbml/packages/spatial/sbml/SampledField.h branches/libsbml-experimental/src/sbml/packages/spatial/sbml/SpatialPoints.h branches/libsbml-experimental/src/sbml/packages/spatial/validator/SpatialSBMLErrorTable.h Modified: branches/libsbml-experimental/src/sbml/packages/spatial/extension/SpatialExtension.cpp =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/extension/SpatialExtension.cpp 2019-07-31 11:38:54 UTC (rev 26096) +++ branches/libsbml-experimental/src/sbml/packages/spatial/extension/SpatialExtension.cpp 2019-07-31 19:12:50 UTC (rev 26097) @@ -1311,6 +1311,8 @@ , "uint8" , "uint16" , "uint32" +, "uint" +, "int" , "invalid DataKind value" }; Modified: branches/libsbml-experimental/src/sbml/packages/spatial/extension/SpatialExtension.h =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/extension/SpatialExtension.h 2019-07-31 11:38:54 UTC (rev 26096) +++ branches/libsbml-experimental/src/sbml/packages/spatial/extension/SpatialExtension.h 2019-07-31 19:12:50 UTC (rev 26097) @@ -1556,6 +1556,8 @@ , SPATIAL_DATAKIND_UINT8 /*!< The spatial datakind is @c "uint8". */ , SPATIAL_DATAKIND_UINT16 /*!< The spatial datakind is @c "uint16". */ , SPATIAL_DATAKIND_UINT32 /*!< The spatial datakind is @c "uint32". */ +, SPATIAL_DATAKIND_UINT /*!< The spatial datakind is @c "uint". */ +, SPATIAL_DATAKIND_INT /*!< The spatial datakind is @c "int". */ , SPATIAL_DATAKIND_INVALID /*!< Invalid DataKind value. */ } DataKind_t; @@ -1566,6 +1568,8 @@ * @param dk the #DataKind_t enumeration value to convert. * * @return A string corresponding to the given type: + * "uint", + * "int", * "double", * "float", * "uint8", @@ -1615,6 +1619,8 @@ * @param dk the #DataKind_t enumeration to query. * * @return @c 1 (true) if the #DataKind_t is + * @sbmlconstant{SPATIAL_DATAKIND_UINT, DataKind_t} + * @sbmlconstant{SPATIAL_DATAKIND_INT, DataKind_t} * @sbmlconstant{SPATIAL_DATAKIND_DOUBLE, DataKind_t}, * @sbmlconstant{SPATIAL_DATAKIND_FLOAT, DataKind_t}, * @sbmlconstant{SPATIAL_DATAKIND_UINT8, DataKind_t}, @@ -1639,6 +1645,8 @@ * @param code the string to query. * * @return @c 1 (true) if the string is + * "uint", + * "int", * "double", * "float", * "uint8", Modified: branches/libsbml-experimental/src/sbml/packages/spatial/sbml/ParametricObject.h =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/sbml/ParametricObject.h 2019-07-31 11:38:54 UTC (rev 26096) +++ branches/libsbml-experimental/src/sbml/packages/spatial/sbml/ParametricObject.h 2019-07-31 19:12:50 UTC (rev 26097) @@ -331,6 +331,8 @@ * @copydetails doc_parametricobject_dataType * @if clike The value is drawn from the enumeration @ref DataKind_t @endif * The possible values returned by this method are: + * @li @sbmlconstant{SPATIAL_DATAKIND_UINT, DataKind_t} + * @li @sbmlconstant{SPATIAL_DATAKIND_INT, DataKind_t} * @li @sbmlconstant{SPATIAL_DATAKIND_DOUBLE, DataKind_t} * @li @sbmlconstant{SPATIAL_DATAKIND_FLOAT, DataKind_t} * @li @sbmlconstant{SPATIAL_DATAKIND_UINT8, DataKind_t} @@ -349,6 +351,8 @@ * * @copydetails doc_parametricobject_dataType * The possible values returned by this method are: + * @li @c "uint" + * @li @c "int" * @li @c "double" * @li @c "float" * @li @c "uint8" @@ -1345,6 +1349,8 @@ * @copydetails doc_parametricobject_dataType * @if clike The value is drawn from the enumeration @ref DataKind_t @endif * The possible values returned by this method are: + * @li @sbmlconstant{SPATIAL_DATAKIND_UINT, DataKind_t} + * @li @sbmlconstant{SPATIAL_DATAKIND_INT, DataKind_t} * @li @sbmlconstant{SPATIAL_DATAKIND_DOUBLE, DataKind_t} * @li @sbmlconstant{SPATIAL_DATAKIND_FLOAT, DataKind_t} * @li @sbmlconstant{SPATIAL_DATAKIND_UINT8, DataKind_t} @@ -1371,6 +1377,8 @@ * * @copydetails doc_parametricobject_dataType * The possible values returned by this method are: + * @li @c "uint" + * @li @c "int" * @li @c "double" * @li @c "float" * @li @c "uint8" Modified: branches/libsbml-experimental/src/sbml/packages/spatial/sbml/SampledField.h =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/sbml/SampledField.h 2019-07-31 11:38:54 UTC (rev 26096) +++ branches/libsbml-experimental/src/sbml/packages/spatial/sbml/SampledField.h 2019-07-31 19:12:50 UTC (rev 26097) @@ -57,16 +57,20 @@ * Level 3 Version 1 Spatial specification, the following are the * allowable values for "dataType": * <ul> - * <li> @c "double", TODO:add description + * <li> @c "uint", unsigned integer * - * <li> @c "float", TODO:add description + * <li> @c "int", signed integer * - * <li> @c "uint8", TODO:add description + * <li> @c "double", double-precision floating value * - * <li> @c "uint16", TODO:add description + * <li> @c "float", single-precision floating value * - * <li> @c "uint32", TODO:add description + * <li> @c "uint8", 8-bit unsigned integer * + * <li> @c "uint16", 16-bit unsigned integer + * + * <li> @c "uint32", 32-bit unsigned integer + * * </ul> * * @class doc_sampledfield_interpolationType @@ -238,6 +242,8 @@ * @copydetails doc_sampledfield_dataType * @if clike The value is drawn from the enumeration @ref DataKind_t @endif * The possible values returned by this method are: + * @li @sbmlconstant{SPATIAL_DATAKIND_UINT, DataKind_t} + * @li @sbmlconstant{SPATIAL_DATAKIND_INT, DataKind_t} * @li @sbmlconstant{SPATIAL_DATAKIND_DOUBLE, DataKind_t} * @li @sbmlconstant{SPATIAL_DATAKIND_FLOAT, DataKind_t} * @li @sbmlconstant{SPATIAL_DATAKIND_UINT8, DataKind_t} @@ -256,6 +262,8 @@ * * @copydetails doc_sampledfield_dataType * The possible values returned by this method are: + * @li @c "uint" + * @li @c "int" * @li @c "double" * @li @c "float" * @li @c "uint8" @@ -1453,6 +1461,8 @@ * @copydetails doc_sampledfield_dataType * @if clike The value is drawn from the enumeration @ref DataKind_t @endif * The possible values returned by this method are: + * @li @sbmlconstant{SPATIAL_DATAKIND_UINT, DataKind_t} + * @li @sbmlconstant{SPATIAL_DATAKIND_INT, DataKind_t} * @li @sbmlconstant{SPATIAL_DATAKIND_DOUBLE, DataKind_t} * @li @sbmlconstant{SPATIAL_DATAKIND_FLOAT, DataKind_t} * @li @sbmlconstant{SPATIAL_DATAKIND_UINT8, DataKind_t} @@ -1479,6 +1489,8 @@ * * @copydetails doc_sampledfield_dataType * The possible values returned by this method are: + * @li @c "uint" + * @li @c "int" * @li @c "double" * @li @c "float" * @li @c "uint8" Modified: branches/libsbml-experimental/src/sbml/packages/spatial/sbml/SpatialPoints.h =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/sbml/SpatialPoints.h 2019-07-31 11:38:54 UTC (rev 26096) +++ branches/libsbml-experimental/src/sbml/packages/spatial/sbml/SpatialPoints.h 2019-07-31 19:12:50 UTC (rev 26097) @@ -73,16 +73,19 @@ * Level 3 Version 1 Spatial specification, the following are the * allowable values for "dataType": * <ul> - * <li> @c "double", TODO:add description + * <li> @c "uint", unsigned integer * - * <li> @c "float", TODO:add description + * <li> @c "int", signed integer * - * <li> @c "uint8", TODO:add description + * <li> @c "double", double-precision floating value * - * <li> @c "uint16", TODO:add description + * <li> @c "float", single-precision floating value * - * <li> @c "uint32", TODO:add description + * <li> @c "uint8", 8-bit unsigned integer * + * <li> @c "uint16", 16-bit unsigned integer + * + * <li> @c "uint32", 32-bit unsigned integer * </ul> */ @@ -269,6 +272,8 @@ * @copydetails doc_spatialpoints_dataType * @if clike The value is drawn from the enumeration @ref DataKind_t @endif * The possible values returned by this method are: + * @li @sbmlconstant{SPATIAL_DATAKIND_UINT, DataKind_t} + * @li @sbmlconstant{SPATIAL_DATAKIND_INT, DataKind_t} * @li @sbmlconstant{SPATIAL_DATAKIND_DOUBLE, DataKind_t} * @li @sbmlconstant{SPATIAL_DATAKIND_FLOAT, DataKind_t} * @li @sbmlconstant{SPATIAL_DATAKIND_UINT8, DataKind_t} @@ -287,6 +292,8 @@ * * @copydetails doc_spatialpoints_dataType * The possible values returned by this method are: + * @li @c "uint" + * @li @c "int" * @li @c "double" * @li @c "float" * @li @c "uint8" @@ -1118,6 +1125,8 @@ * @copydetails doc_spatialpoints_dataType * @if clike The value is drawn from the enumeration @ref DataKind_t @endif * The possible values returned by this method are: + * @li @sbmlconstant{SPATIAL_DATAKIND_UINT, DataKind_t} + * @li @sbmlconstant{SPATIAL_DATAKIND_INT, DataKind_t} * @li @sbmlconstant{SPATIAL_DATAKIND_DOUBLE, DataKind_t} * @li @sbmlconstant{SPATIAL_DATAKIND_FLOAT, DataKind_t} * @li @sbmlconstant{SPATIAL_DATAKIND_UINT8, DataKind_t} @@ -1144,6 +1153,8 @@ * * @copydetails doc_spatialpoints_dataType * The possible values returned by this method are: + * @li @c "uint" + * @li @c "int" * @li @c "double" * @li @c "float" * @li @c "uint8" Modified: branches/libsbml-experimental/src/sbml/packages/spatial/validator/SpatialSBMLErrorTable.h =================================================================== --- branches/libsbml-experimental/src/sbml/packages/spatial/validator/SpatialSBMLErrorTable.h 2019-07-31 11:38:54 UTC (rev 26096) +++ branches/libsbml-experimental/src/sbml/packages/spatial/validator/SpatialSBMLErrorTable.h 2019-07-31 19:12:50 UTC (rev 26097) @@ -934,7 +934,7 @@ "The value of the attribute 'spatial:dataType' of a <sampledField> object " "must conform to the syntax of SBML data type 'DataKind' and may only take " "on the allowed values of 'DataKind' defined in SBML; that is, the value " - "must be one of the following: 'double', 'float', 'uint8', 'uint16' or " + "must be one of the following: 'uint', 'int', 'double', 'float', 'uint8', 'uint16' or " "'uint32'.", { "L3V1 Spatial V1 Section" } @@ -1466,7 +1466,7 @@ "The value of the attribute 'spatial:dataType' of a <parametricObject> " "object must conform to the syntax of SBML data type 'DataKind' and may " "only take on the allowed values of 'DataKind' defined in SBML; that is, " - "the value must be one of the following: 'double', 'float', 'uint8', " + "the value must be one of the following: 'uint', 'int', 'double', 'float', 'uint8', " "'uint16' or 'uint32'.", { "L3V1 Spatial V1 Section" } @@ -2925,7 +2925,7 @@ "The value of the attribute 'spatial:dataType' of a <spatialPoints> object " "must conform to the syntax of SBML data type 'DataKind' and may only take " "on the allowed values of 'DataKind' defined in SBML; that is, the value " - "must be one of the following: 'double', 'float', 'uint8', 'uint16' or " + "must be one of the following: 'uint', 'int', 'double', 'float', 'uint8', 'uint16' or " "'uint32'.", { "L3V1 Spatial V1 Section" } |
From: <fbe...@us...> - 2019-07-31 11:38:59
|
Revision: 26096 http://sourceforge.net/p/sbml/code/26096 Author: fbergmann Date: 2019-07-31 11:38:54 +0000 (Wed, 31 Jul 2019) Log Message: ----------- - remove declarations of finite and isnan that we never declared (and used) as it now causes warnings Modified Paths: -------------- trunk/libsbml/src/sbml/util/util.h Modified: trunk/libsbml/src/sbml/util/util.h =================================================================== --- trunk/libsbml/src/sbml/util/util.h 2019-07-31 11:37:14 UTC (rev 26095) +++ trunk/libsbml/src/sbml/util/util.h 2019-07-31 11:38:54 UTC (rev 26096) @@ -345,33 +345,6 @@ LIBSBML_EXTERN int util_isEqual(double a, double b); -/** @cond doxygenLibsbmlInternal */ -/* - * Function prototypes to supress gcc compiler warnings about implicit - * declaration of isnan and finite which occur despite the inclusion of - * math.h where they are defined. In fact, even a simple example - * triggers this warning: - * - * #include <math.h> - * - * int main (int argc, char **argv) { return isnan(1.0); } - * - * % gcc -ansi -Wall test.c - * test.c:3: warning: implicit declaration of function `isnan' - */ -#ifndef __cplusplus - -#if !defined(isnan) - int isnan (double d); -#endif - -#if !defined(finite) - int finite (double d); -#endif - -#endif -/** @endcond */ - END_C_DECLS LIBSBML_CPP_NAMESPACE_END |