systemcomposer.analysis.loadInstance
Description
loads an architecture instance from a instance
= systemcomposer.analysis.loadInstance(fileName
,overwrite
)MAT
-file.
Note
This function is part of the instance programmatic interfaces that you can use to analyze
the model iteratively, element-by-element. The instance
refers to the
element instance on which the iteration is being performed.
Examples
Load Architecture Instance from MAT
-File
Create a profile for latency characteristics and save it.
profile = systemcomposer.profile.Profile.createProfile("LatencyProfile"); latencybase = profile.addStereotype("LatencyBase"); latencybase.addProperty("latency",Type="double"); latencybase.addProperty("dataRate",Type="double",DefaultValue="10"); connLatency = profile.addStereotype("ConnectorLatency",... Parent="LatencyProfile.LatencyBase"); connLatency.addProperty("secure",Type="boolean"); connLatency.addProperty("linkDistance",Type="double"); nodeLatency = profile.addStereotype("NodeLatency",... Parent="LatencyProfile.LatencyBase"); nodeLatency.addProperty("resources",Type="double",DefaultValue="1"); portLatency = profile.addStereotype("PortLatency",... Parent="LatencyProfile.LatencyBase"); portLatency.addProperty("queueDepth",Type="double"); portLatency.addProperty("dummy",Type="int32"); profile.save
Instantiate all stereotypes in the profile.
model = systemcomposer.createModel("archModel",true); instance = instantiate(model.Architecture,"LatencyProfile","NewInstance");
Save the architecture instance.
instance.save("InstanceFile");
Delete the architecture instance.
systemcomposer.analysis.deleteInstance(instance);
Load the architecture instance.
loadedInstance = systemcomposer.analysis.loadInstance("InstanceFile");
Input Arguments
fileName
— MAT
-file that contains architecture instance
character vector | string
MAT
-file that contains architecture instance, specified as a
character vector or string.
Data Types: char
| string
overwrite
— Whether to overwrite instance if it already exists in workspace
true
or 1 | false
or 0
Whether to overwrite instance if it already exists in workspace, specified as a
logical 1 (true
) so the load operation overwrites duplicate instances
in the workspace or 0 (false
) if not.
Output Arguments
instance
— Loaded architecture instance
architecture instance object
Loaded architecture instance, returned as a systemcomposer.analysis.ArchitectureInstance
object.
More About
Definitions
Term | Definition | Application | More Information |
---|---|---|---|
analysis | Analysis is a method for quantitatively evaluating an architecture for certain characteristics. Static analysis analyzes the structure of the system. Static analysis uses an analysis function and parametric values of properties captured in the system model. | Use analyses to calculate overall reliability, mass roll-up, performance, or thermal characteristics of a system, or to perform a SWaP analysis. | |
analysis function | An analysis function is a MATLAB® function that computes values necessary to evaluate the architecture using the properties of each element in the model instance. | Use an analysis function to calculate the result of an analysis. | |
instance model | An instance model is a collection of instances. | You can update an instance model with changes to a model, but
the instance model will not update with changes in active variants or model references. You can
use an instance model, saved in a | Run Analysis Function |
instance | An instance is an occurrence of an architecture model element at a given point in time. | An instance freezes the active variant or model reference of the component in the instance model. | Create a Model Instance for Analysis |
Version History
Introduced in R2019a
See Also
instantiate
| systemcomposer.analysis.Instance
| deleteInstance
| save
| refresh
| update
Topics
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)