Main Content
systemcomposer.arch.Function
Description
A Function
object represents a function in a software
architecture model.
Use the Functions Editor from the toolstrip on a software architecture model, to edit the
simulation execution order and sample time of functions with inherited sample time
(-1
) in your software architecture.
Creation
Get functions in a software architecture model with the Functions
property on the systemcomposer.arch.Architecture
object.
model = systemcomposer.openModel('ThrottleControlComposition'); sim('ThrottleControlComposition'); functions = model.Architecture.Functions
Properties
Object Functions
increaseExecutionOrder | Change function execution order to later |
decreaseExecutionOrder | Change function execution order to earlier |
applyStereotype | Apply stereotype to architecture model element |
getStereotypes | Get stereotypes applied on element of architecture model |
removeStereotype | Remove stereotype from model element |
setProperty | Set property value corresponding to stereotype applied to element |
getProperty | Get property value corresponding to stereotype applied to element |
getPropertyValue | Get value of architecture property |
getEvaluatedPropertyValue | Get evaluated value of property from element |
getStereotypeProperties | Get stereotype property names on element |
hasStereotype | Find if element has stereotype applied |
hasProperty | Find if element has property |
destroy | Remove model element |
Examples
More About
Version History
Introduced in R2021b