-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #591 from kerimoyle/i590_print_model_with_imports
Printer to print local children of imported components. Closes #590.
- Loading branch information
Showing
10 changed files
with
254 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<model xmlns="http://www.cellml.org/cellml/2.0#" name="import_me"> | ||
<component name="importMe"> | ||
<variable name="x" units="dimensionless" interface="public_and_private"/> | ||
</component> | ||
<component name="child1"> | ||
<variable name="x" units="dimensionless" interface="public_and_private"/> | ||
</component> | ||
<component name="child2"> | ||
<variable name="x" units="dimensionless" interface="public_and_private"/> | ||
</component> | ||
<connection component_1="child1" component_2="child2"> | ||
<map_variables variable_1="x" variable_2="x" /> | ||
</connection> | ||
<encapsulation> | ||
<component_ref component="importMe"> | ||
<component_ref component="child1" /> | ||
<component_ref component="child2" /> | ||
</component_ref> | ||
</encapsulation> | ||
</model> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<model xmlns="http://www.cellml.org/cellml/2.0#" name="import_example"> | ||
<import xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="importedModel.cellml"> | ||
<component component_ref="importMe" name="importedComponent"/> | ||
</import> | ||
<component name="localComponent"> | ||
<variable name="x" units="dimensionless" interface="public_and_private"/> | ||
</component> | ||
<connection component_1="importedComponent" component_2="localComponent"> | ||
<map_variables variable_1="x" variable_2="x"/> | ||
</connection> | ||
</model> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<model xmlns="http://www.cellml.org/cellml/2.0#" name="import_example"> | ||
<import xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="importedModel.cellml"> | ||
<component component_ref="importMe" name="importedComponent"/> | ||
</import> | ||
<component name="localComponent"> | ||
<variable name="x" units="dimensionless" interface="public_and_private"/> | ||
</component> | ||
<encapsulation> | ||
<component_ref component="importedComponent"> | ||
<component_ref component="localComponent"/> | ||
</component_ref> | ||
</encapsulation> | ||
</model> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<model xmlns="http://www.cellml.org/cellml/2.0#" name="import_example"> | ||
<import xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="importedModel.cellml"> | ||
<component component_ref="importMe" name="importedComponent"/> | ||
</import> | ||
<component name="localComponent"> | ||
<variable name="x" units="dimensionless" interface="public_and_private"/> | ||
</component> | ||
<encapsulation> | ||
<component_ref component="localComponent"> | ||
<component_ref component="importedComponent"/> | ||
</component_ref> | ||
</encapsulation> | ||
</model> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.