Update architecture model
This function is part of the instance API that you can use to analyze the model
iteratively, element by element.
instance refers to the element
instance on which the iteration is being performed.
Update the specification model to mirror the changes in the architecture instance.
Create a profile for latency characteristics.
profile = systemcomposer.profile.Profile.createProfile('LatencyProfile'); latencybase = profile.addStereotype('LatencyBase'); latencybase.addProperty('latency','Type','double'); latencybase.addProperty('dataRate','Type','double','DefaultValue','10');
Create a new model. Apply the profile to the model. Apply the stereotype to the architecture. Instantiate all stereotypes in a profile.
model = systemcomposer.createModel('archModel',true); model.applyProfile('LatencyProfile'); model.Architecture.applyStereotype('LatencyProfile.LatencyBase'); instance = instantiate(model.Architecture,'LatencyProfile','NewInstance');
Set a new value for the
'dataRate' property on the architecture
Update the specification model according to the architecture instance.
Get the new value of the
'dataRate' property on the
value = model.Architecture.getPropertyValue('LatencyProfile.LatencyBase.dataRate')
value = '5'
|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 analysis to calculate overall reliability, mass roll-up, performance, or thermal characteristics of a system, or to perform a SWaP analysis.||Analyze Architecture|
|instance||An instance is an occurrence of an architecture model at a given point of time.||You can update an instance with changes to a model, but the instance will not update with changes in active variants or model references. You can use an instance, saved in an ||Create a Model Instance for Analysis|