Data Dictionary and Model Reference hierarchy

6 visualizaciones (últimos 30 días)
Florian
Florian el 26 de Feb. de 2015
Respondida: Yash el 28 de Oct. de 2024 a las 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

Respuestas (1)

Yash
Yash el 28 de Oct. de 2024 a las 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!

Categorías

Más información sobre Modeling en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by