Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
Ocarina
Commits
2b66204e
Commit
2b66204e
authored
Feb 13, 2016
by
Jerome Hugues
Browse files
* Handle the case of subcomponents being one connection ends
parent
738c75c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
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
Supports
Markdown
0%
Try again
or
attach a new 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