Closed buzden closed 3 years ago
Agreed. Useful to allow requires subprogram access on processor, device, virtual processor.
Is there a need to offer subprogram access for buses and virtual bus (e.g., to represent API)?
Useful to specify API for buses and virtual buses (Denis has an example).
Memory: again it is useful to allow subprogram access.
Get use cases from Denis and then consider as V2.2. errata.
No info provided. Consider for v3
device
andprocessor
component categories are both allowed to haveprovides subprogram access
but are disallowed to haverequires subprogram access
and evensubprogram
subcomponents. This seems to be strange and inconsistent.Regarding to a particular relation between
processor
s andsubprogram
s, generallyprocessor
still can provide an access to asubprogram
inside aprocess
component which is its subcomponent. But even considering this, a restriction of only providing subprogram accesses doesn't seem very reasonable because of the following.processor
components incapsulate operating systems (besides other functions). Service calls (which are like system calls of OS) are represented withsubprogram
s in the standard.device
components incapsulate devices themselves but also drivers (in some variants of modelling, supported by the standard). Device drivers often provide some known interface and are able to use some particular OS interface.In deep modelling we may want to represent which functionality is bound to which requirements of e.g. device drivers. It seems that
subprograms
and properaccess
es are the best fitting way to model this. But we are allowed neither to definesubprogram
s inprocessor
s anddevice
s nor to declaresubprogram
requirements usingrequires subprogram access
es.So, summing up:
provides subprogram access
fordevice
s) which cannot be correctly fulfilled in a full AADL-model;provides
ofsubprogram access
es fordevice
s andprocessor
s.