Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Ocarina
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
TASTE
Ocarina
Commits
2b66204e
Commit
2b66204e
authored
Feb 13, 2016
by
Jerome Hugues
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Handle the case of subcomponents being one connection ends
parent
738c75c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
+19
-6
src/core/instance/ocarina-instances-components-connections.adb
...ore/instance/ocarina-instances-components-connections.adb
+19
-6
No files found.
src/core/instance/ocarina-instances-components-connections.adb
View file @
2b66204e
...
...
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
-- Copyright (C) 2005-2009 Telecom ParisTech, 2010-201
5
ESA & ISAE. --
-- Copyright (C) 2005-2009 Telecom ParisTech, 2010-201
6
ESA & ISAE. --
-- --
-- Ocarina is free software; you can redistribute it and/or modify under --
-- terms of the GNU General Public License as published by the Free Soft- --
...
...
@@ -226,11 +226,24 @@ package body Ocarina.Instances.Components.Connections is
New_Instance
),
Destinations
(
AIN
.
Item
(
AIN
.
Last_Node
(
AIN
.
Path
(
Connection_Src
)))));
Append_Node_To_List
(
Make_Node_Container
(
AIN
.
Item
(
AIN
.
Last_Node
(
AIN
.
Path
(
Connection_Src
))),
New_Instance
),
Sources
(
AIN
.
Item
(
AIN
.
Last_Node
(
AIN
.
Path
(
Connection_Dst
)))));
if
AIN
.
Kind
(
AIN
.
Item
(
AIN
.
Last_Node
(
AIN
.
Path
(
Connection_Dst
))))
=
K_Subcomponent_Instance
then
Append_Node_To_List
(
Make_Node_Container
(
AIN
.
Item
(
AIN
.
Last_Node
(
AIN
.
Path
(
Connection_Src
))),
New_Instance
),
Destinations
(
AIN
.
Item
(
AIN
.
Last_Node
(
AIN
.
Path
(
Connection_Dst
)))));
else
Append_Node_To_List
(
Make_Node_Container
(
AIN
.
Item
(
AIN
.
Last_Node
(
AIN
.
Path
(
Connection_Src
))),
New_Instance
),
Sources
(
AIN
.
Item
(
AIN
.
Last_Node
(
AIN
.
Path
(
Connection_Dst
)))));
end
if
;
-- Set the connection type
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment