Location: Metabolic Component Library @ 702b54b45018 / CellML-source / CellMLTools / test.cellml

Author:
Randall Britten <r.britten@auckland.ac.nz>
Date:
2013-04-17 15:30:14+12:00
Desc:
To "clone" an imported component, the top level import element needs to be duplicated, not just the component reference within an existing import. The rationale is that all connections within a top-level import are kept intact, as dictated by the encapsulation in the imported model.
Permanent Source URI:
https://staging.physiomeproject.org/w/matthiaskoenig/MetabolicComponentLibrary/rawfile/702b54b45018b04ef1bc074677379dc20d983234/CellML-source/CellMLTools/test.cellml

<?xml version="1.0"?>
<model xmlns="http://www.cellml.org/cellml/1.1#" name="TestModel"><units name="second"><unit units="second"/></units><component name="component1"><variable initial_value="10" name="variable1" public_interface="out" units="second"/></component><component name="component2"><variable name="variable2" public_interface="in" units="second"/></component><connection><map_components component_1="component1" component_2="component2"/><map_variables variable_1="variable1" variable_2="variable2"/></connection></model>