Skip to content

Connection_Pattern ignored when instantiating data access connection #2057

@philip-alldredge

Description

@philip-alldredge

Summary

In some case when wrapping a process which contains connections with a connection pattern, the Connection_Pattern is ignored and the appropriate connection instances are not created.

Expected and Current Behavior

In such a case, I expect the connection instances to be similar. Currently when instantiating the top level system, the Connection_Pattern property value does not seem to be handled properly. This results in fewer connection instances and a validation error.

When instantiating the process, the expected connection instances are created. When instantiating the system that contains the process, the connections are not created.

Steps to Reproduce

  1. Instantiate top.impl
  2. Receive error: Too few indices for connection destination for d1 -> threads[1].da1. Instance model does not contain appropriate connection instances.
package connection_pattern_issue
public
	with Base_Types;

	system top
	end top;

	system implementation top.impl
		subcomponents
			p1: process process1.impl;
	end top.impl;

	process process1
	end process1;

	process implementation process1.impl
		subcomponents
			d1: data Base_Types::Boolean;
			threads: thread thread1[8];
		connections
			process1_impl_new_connection: data access d1 -> threads.da1 { Connection_Pattern => ((One_To_All)); };
	end process1.impl;

	thread thread1
		features
			da1: requires data access Base_Types::Boolean;
	end thread1;
end connection_pattern_issue;

Environment

  • OSATE Version: 2.6.0 and 2.4.0
  • Operating System: Windows 10

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions