Skip to content

Fan-in for data ports should be forbidden #2356

Description

@lwrage

Summary

OSATE should forbid fan-in for data ports.

Expected and Current Behavior

When multiple connections exist (in a mode) to a data port this should be an error. This should be check on the declarative model as much as possible as well as on the instance model.

Steps to Reproduce

  1. Open the model below in the AADL text editor.
  2. There should be an error on the data port.
package P2
public
	
	system S
	end S;
	
	system implementation S.i
		subcomponents
			a1: abstract A;
			a2: abstract A;
			b: abstract B;
		connections
			c1: port a1.aout -> b.bin;
			c2: feature a2.aout -> b.bin;
	end S.i;
	
	abstract A
		features
			aout: out data port;
	end A;
	
	abstract B
		features
			bin: in data port;
	end B;

end P2;

Environment

  • OSATE Version: 2.7.1
  • Operating System: all

Metadata

Metadata

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions