Patent ID: 8150673

Claim:
In an electronic device that provides object-oriented environments, a method for executing a model having an interface and content and including components, wherein one of the components references a second model, the method comprising: generating code for the model, the model associated with information relating to the interface and information relating to content; selecting a first set of the components of the model executed in a first execution mode; identifying a second set of the components of the model executed in a second execution mode; determining whether code for the first set of components is up to date, where the determining: is based on the first set of components, determines that the code for the first set of components is not up to date when the information relating to the interface of the model has been changed, and determines that the code for the first set of components is up to date when the information relating to the content of the model is changed without changing the information relating to the interface of the model; regenerating code for only the first set of components when the code for the first set of components is not up to date; and executing the model in a mixed execution mode, the mixed execution mode including: executing the first set of the components in the first execution mode, and executing the second set of the components in the second execution mode.