-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathspatial_param.cpp.txt
More file actions
41 lines (40 loc) · 957 Bytes
/
spatial_param.cpp.txt
File metadata and controls
41 lines (40 loc) · 957 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* @return true, if either the spatial symbol reference, diffusion coefficient,
* advection coefficient or boundary is set. Otherwise the return value is false.
*/
bool
SpatialParameterPlugin::isSpatialParameter() const
{
return getType() != -1;
}
/*
* Determines the type of the spatial parameter, that is one of:
*
* SBML_SPATIAL_SPATIALSYMBOLREFERENCE
* SBML_SPATIAL_DIFFUSIONCOEFFICIENT
* SBML_SPATIAL_ADVECTIONCOEFFICIENT
* SBML_SPATIAL_BOUNDARYCONDITION
*
* or -1 in case no other is defined.
*/
int
SpatialParameterPlugin::getType() const
{
if (isSetSpatialSymbolReference())
{
return SBML_SPATIAL_SPATIALSYMBOLREFERENCE;
}
if (isSetDiffusionCoefficient())
{
return SBML_SPATIAL_DIFFUSIONCOEFFICIENT;
}
if (isSetAdvectionCoefficient())
{
return SBML_SPATIAL_ADVECTIONCOEFFICIENT;
}
if (isSetBoundaryCondition())
{
return SBML_SPATIAL_BOUNDARYCONDITION;
}
return -1;
}