Closed philip-alldredge closed 9 years ago
Actually, connections are there Content of set connections_2 (test.aadl:48:26) is a.impl_con1_1: 172 connection instance test.aadl:41:05 a.impl_con1_2: 183 connection instance test.aadl:42:05 a.impl_c1_con1_1: 63 connection instance test.aadl:22:05 a.impl_c1_con1_2: 74 connection instance test.aadl:23:05 a.impl_c1_con1_3: 85 connection instance test.aadl:24:05 a.impl_c2_con1_1: 138 connection instance test.aadl:22:05 a.impl_c2_con1_2: 149 connection instance test.aadl:23:05 a.impl_c2_con1_3: 160 connection instance test.aadl:24:05
But the way Ocarina instances connections is by keeping hierarchy, hence source and destination are the one of the enclosing component. In your case, there are two direct connections to the bus (to respect the provides/requires bus access), and each connection is actually an alias to three connections internal to the system implementation (requires/actual).
hence an interesting question, part of the discussion we should have about standardizing this language: shall we keep this level of indirection, or shall we have resolution, so that instead of 2 + 2 x 3 = 8 connections, we keep only the 6 actual connections you expect.
I guess we need at least an accessor so that you can resolve the connections served by the provided access when you do this con1_2 : bus access b1 -> c2.ba1;
i.e. an accessor to resolve entities connected to ba1
Interesting. I believe this is something that should be standardized so it can be treated consistently between tools. My interpretation of the standard: 9(2) leads me to believe that the intent is to have connection instances only represent the entire semantic connection and point between leaf nodes. However, I'll leave that discussion for you and the other language gurus.
Indeed. I just asked Peter, he was next to me. There should be 6 connexions at the instance level, from the 8 defined in the declarative model.
Closing, this question will be handled in the Constraint sublanguage we defined as part of AS2-C
It appears that REAL's connection instances do not represent semantic connections or Ocarina is instantiating models differently than I expect.
In the below model, I expected the constraint to fail with six connection instances(1 for each ultimate destination/source pair). According to the output there are only 2 connection instances.
Thoughts?
test_case.aadl
Output: