osate / osate2

Open Source AADL2 Tool Environment
http://osate.org
Eclipse Public License 2.0
39 stars 8 forks source link

Osate reports incomplete end-to-end flow instance and missing connection instance despite the connections existing. #653

Closed TimeWarDoctor closed 8 years ago

TimeWarDoctor commented 8 years ago

The error states: Incomplete end-to-end flow instance [Flow name]:Missing connection instance to [subcomponent] or Incomplete end-to-end flow instance [Flow name]:Missing connection instance to [connection1 name]

However, the subcomponent model has a complete flow specification, and the connection1 exists in the subcomponent.

Hence I am still able to do a flow latency analysis.

lwrage commented 8 years ago

Flow instantiation bugs are almost impossible to track down without a model. Can you provide the model you're trying to instantiate?

TimeWarDoctor commented 8 years ago

The models are all in this zip archive attached. I think I did the models correctly but if not please tell me exactly what I did wrong.

Unfortunately, it won't let me attach the zip file...I'll put the text in the following comment instead.

TimeWarDoctor commented 8 years ago

OK...here it is...but remove the .txt upon download.

EA.zip.txt

In the contingency this is a problem with my model, please let me know what I did wrong so I may improve.

lwrage commented 8 years ago

It's a problem in the model. You have a flow source specification InformationSystem.HTTPPushFlow_Start you need to add a flow source implementation for that in Type_InformationSystemForPushFlows.InfoSystem. This implementation must include the connection DataPush_FromSystemToNetwork. As is the flow instantiation searches for a connection instance that starts at Type_InformationSystemForPushFlows.Data_Out, which is the port listed in the flow source. However, the connection instance really starts inside at a nested subcomponent.