spatialCompartment.setCompartmentMapping(compartmentMapping);
return compartmentMapping;
}
} else if (contextObject instanceof Parameter) {
Parameter param = (Parameter) contextObject;
SpatialParameterPlugin spatialParam = null;
if (param.getExtension(SpatialConstants.namespaceURI) != null) {
spatialParam = (SpatialParameterPlugin) param.getExtension(SpatialConstants.namespaceURI);
} else {
spatialParam = new SpatialParameterPlugin(param);
param.addExtension(SpatialConstants.namespaceURI, spatialParam);
}
if (elementName.equals(SpatialConstants.spatialSymbolReference)) {
SpatialSymbolReference ssr = new SpatialSymbolReference();
spatialParam.setParamType(ssr);
return ssr;
} else if (elementName.equals(SpatialConstants.diffusionCoefficient)){
DiffusionCoefficient dc = new DiffusionCoefficient();
spatialParam.setParamType(dc);
return dc;
} else if (elementName.equals(SpatialConstants.advectionCoefficient)){
AdvectionCoefficient ac = new AdvectionCoefficient();
spatialParam.setParamType(ac);
return ac;
} else if (elementName.equals(SpatialConstants.boundaryCondition)){
BoundaryCondition bc = new BoundaryCondition();
spatialParam.setParamType(bc);
return bc;
}
} else if (contextObject instanceof Geometry) {
Geometry geometry = (Geometry) contextObject;
if (elementName.equals(SpatialConstants.listOfCoordinateComponents)) {