Data Dictionary and Model Reference hierarchy

5 Ansichten (letzte 30 Tage)
Florian
Florian am 26 Feb. 2015
Beantwortet: Yash am 28 Okt. 2024 um 13:24
Hi,
I am currently working with data dictionaries but there is strange to me.
Is it mandatory that every parent model needs a reference in its data dictionary to each of its referenced models?
This would mean that in large hierarchical models I need to link the data dictionary to the corresponding model and I need to refernce this model in the parent models data dictionary. This makes the handling a little bit cumbersome.
Thanks for any help / suggestions.
Florian

Antworten (1)

Yash
Yash am 28 Okt. 2024 um 13:24
Hi Florian,
I am unable to understand the query for referencing a model in the parent model's data dictionary.
Let us assume the following scenario for better understanding
  • "ModelTop" is the parent model and has "ddTop" as attached data dictionary.
  • "ModelBot" is another model which is being used in a "Model Reference" block in "ModelTop". "ModelBot" has "ddBot" as attached data dictionary.
This attaches both the models with each other, and both the data dictionaries with the respective models.
ModelTop -------> ddTop
|
| (via Model Reference)
|
ModelBot -------> ddBot
Now kindly note that "ModelTop" has no access to "ddBot", and "ModelBot" has no access to "ddTop".
This keeps the data separate for the models. If you want to use data from "ddBot" in "ModelTop" you can attach "ddBot" as a referenced dictionary to "ddTop". Note that this is a global operation and will apply to "ddTop" everywhere it is used.
I hope this clarifies the confusion!

Kategorien

Mehr zu Modeling finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by