Hello Harald,
Thank you very much for the reply, and giving me opportunity to ask my questions. I`ve already installed app4mc and investigated democar and other examples, and I am regularly using the online help documentation for meta-models.
I have currently two questions:
1.) First one is about “Sender Receiver Communication(SRC)” which is an abstract activity graph item, and SR read and write generalize this. (SR_Meta_Model in attachments). This item has a relationship with component ports (App4mc_SRC in attachments). I could not understand the exact relation between SR_Read/Write and Component’s port, and It is not specified in the meta-models. For example: SR_Read reads a label as Label Access (access Type: read) do. My first question is could you please specify the relationship in terms of the Amalthea meta-model language?
I am interested in Sender Receiver Read/Write because I want to be able to show the relationship (in terms of data flow) between a runnable and the component which includes the runnable.
2.) My second question is about “Labels”, “Local (Global) Mode Labels”, and the overall dataflow. Labels are abstract memory elements and later Mapping Model maps them to a physical memory in HW Model. SR_Read/Write and LabelsAccess(Read/Write) reads and writes labels. So, Runnables have a way to access data in memory.
The user is able to define switches and switch entries (decision paths), put conditions(local mode label condition) on each entry. The user is able to assign a value of local mode label to global mode label and vice versa.
However, I could not find a way to use the value of a Label which is read by either SR_Read or LabelAccess (Read). I can use local Mode Labels(like local variables defined in a function) but cannot show a dataflow from Label to Local Mode Label.
I could not find an example where a runnable manipulates the Label which it reads. Only thing I can show is that the runnable reads and writes data.
However, what happens to the data that is read and also what do LabelAccess(Write) SR_Write actually write? They write into a label (abstract memory element) but exactly “what” do they write into that label?
I am sorry for the poor technical explanation since I am new to the most of the things.
Thank you very much.
Best,
Ibrahim