Data Dictionary and Model Reference hierarchy

4 次查看(过去 30 天)
Florian
Florian 2015-2-26
回答: Yash 2024-10-28,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

回答(1 个)

Yash
Yash 2024-10-28,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!

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by