Patent ID: 8260597

Claim:
A computer-implemented method for sharing data between a first graphical modeling environment and a second graphical modeling environment, the first graphical modeling environment containing a plurality of executable elements, the second graphical modeling environment holding a model, the model being embedded in one of the plurality of executable elements of the first graphical modeling environment, comprising: providing the second graphical modeling environment is in communication with the first graphical modeling environment using a data store memory element that provides access to a shared data, the shared data: shared between the first graphical modeling environment and the second graphical modeling environment, and located in the first graphical modeling environment parsing the model in the second graphical modeling environment to locate references to the shared data, resolving the references from the model in the second graphical modeling environment to the first graphical modeling environment; enforcing a hierarchical restriction on access to the shared data, the enforcing comprising: determining a hierarchical location of the data store memory element in the first graphical modeling environment, determining a level of an attempt to access the data store memory element in the first graphical modeling environment, the attempt to access originating in the second graphical modeling environment, and permitting access to the shared data only by a model entity located at a same hierarchical location as the data store memory element or at a lower hierarchical location than the data store memory element, a hierarchical location of the model entity determined based on the level of the attempt to access the data store memory element in the first graphical modeling environment; and accessing the shared data from the second graphical modeling environment using the data store memory element if permitted by the hierarchical restriction.