Systems and methods for creating harness models for model verification
First Claim
1. A method comprising:
- receiving a selection of a component included within an executable source model, the selected component having an execution context as defined within the executable source model, wherein the execution context is associated with a behavior of the selected component in the executable source model;
analyzing the executable source model to determine the execution context of the selected component;
constructing automatically, by a processor, an executable harness model that includes the selected component or a copy of the selected component, the executable harness model separate from the executable source model and constructed according to one or more syntax rules of a modeling environment;
including in the executable harness model a plurality of model elements;
configuring the plurality of model elements to provide the selected component or the copy of the selected component, within the executable harness model, with a harness model execution context that replicates the execution context of the selected component as defined within the executable source model and associated with the behavior of the selected component in the executable source model, wherein the configuring the plurality of model elements includes connecting the selected component or the copy of the selected component to at least one model element of the plurality of model elements according to the one or more syntax rules; and
executing the executable harness model including the selected component or the copy of the selected component.
1 Assignment
0 Petitions
Accused Products
Abstract
Systems and methods automatically construct a harness model having a selected component from source model. The systems and methods determine an execution context of the component in the source model, and construct and configure the harness model to provide the same or an equivalent execution context in the harness model. Model elements may be added to the harness model, and the model elements may be configured to replicate the execution context. The harness model may be executed, and the operation of the component evaluated. Changes to the component are synchronized between the source model and the harness model, as are changes to the component'"'"'s execution context. Assessment operations may be included in the harness model, and these assessment operations may be evaluated when the harness model is executed. A verification report that includes the results of the assessments may be generated.
-
Citations
34 Claims
-
1. A method comprising:
-
receiving a selection of a component included within an executable source model, the selected component having an execution context as defined within the executable source model, wherein the execution context is associated with a behavior of the selected component in the executable source model; analyzing the executable source model to determine the execution context of the selected component; constructing automatically, by a processor, an executable harness model that includes the selected component or a copy of the selected component, the executable harness model separate from the executable source model and constructed according to one or more syntax rules of a modeling environment; including in the executable harness model a plurality of model elements; configuring the plurality of model elements to provide the selected component or the copy of the selected component, within the executable harness model, with a harness model execution context that replicates the execution context of the selected component as defined within the executable source model and associated with the behavior of the selected component in the executable source model, wherein the configuring the plurality of model elements includes connecting the selected component or the copy of the selected component to at least one model element of the plurality of model elements according to the one or more syntax rules; and executing the executable harness model including the selected component or the copy of the selected component. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17)
-
-
18. One or more non-transitory computer-readable media including program instructions executable by a processor, the program instructions comprising program instructions to:
-
receive a selection of a component included within an executable source model, the selected component having an execution context as defined within the executable source model, wherein the execution context is associated with a behavior of the selected component in the executable source model; determine the execution context of the selected component; construct automatically, by the processor, an executable harness model according to one or more syntax rules of a modeling environment and that is separate from the executable source model, includes the selected component or a clone of the selected component, and includes a plurality of model elements; configure the plurality of model elements to define a harness execution context, of the selected component or the clone of the selected component within the executable harness model, that is equivalent to the execution context as defined within the executable source model and associated with the behavior of the selected component in the executable source model, wherein the configure the plurality of model elements includes connecting the selected component or the clone of the selected component to at least one model element of the plurality of model elements according to the one or more syntax rules; and execute the executable harness model including the selected component or the clone of the selected component. - View Dependent Claims (19, 20, 21, 22, 23, 27, 28)
-
-
24. An apparatus comprising:
-
a processor configured to; analyze an executable source model to determine an execution context of a component as defined within the executable source model, wherein the execution context is associated with a behavior of the component in the executable source model; construct automatically an executable harness model, the executable harness model according to one or more syntax rules of a modeling environment, including the component or a copy of the component, being separate from the executable source model, and having a plurality of model elements; configure one or more of the plurality of model elements to create, within the executable harness model, a harness model execution context for the component or the copy of the component that is equivalent to the execution context of the component as defined within the executable source model and associated with the behavior of the component in the executable source model, wherein the configure the one or more of the plurality of model elements includes connecting the component or the copy of the component to at least one model element of the plurality of model elements according to the one or more syntax rules; and execute the executable harness model including the component or the copy of the component. - View Dependent Claims (25, 26, 29, 30, 31, 32, 33, 34)
-
Specification