-
Notifications
You must be signed in to change notification settings - Fork 9
Closed
Description
The top level system type has two flow specs. One has the property in {} the other assigned by applies to within the type.
Only the {} property gets attached.
You have a component type with the same setup but it is used as subcomponent.
In this case both flow instances have the property.
package NoFlowProps
public
abstract Air
features
outp: out data port ;
outp1: out data port ;
flows
fs: flow source outp ; -- property in instance
fs1: flow source outp1 {Latency => 10 ms .. 15 ms;} ; -- property in instance
properties
Latency => 10 ms .. 15 ms applies to fs;
end Air;
system Top
features
outp: out data port ;
outp1: out data port ;
flows
fs: flow source outp ; -- LOOK HERE: no property in instance
fs1: flow source outp1 {Latency => 10 ms .. 15 ms;} ; -- property in instance
properties
Latency => 10 ms .. 15 ms applies to fs;
end Top;
system implementation Top.impl
subcomponents
a1: abstract air;
end Top.impl;
end NoFlowProps;```
See attached example.
[NoFlowProperties.txt](https://github.com/osate/osate2/files/3195902/NoFlowProperties.txt)