Main Content
systemcomposer.ValueType
Description
A ValueType
object describes a value type in System Composer™. A value type can be used as a port interface or the type for a data
element.
Creation
Add a value type to a dictionary using the addValueType
function.
model = systemcomposer.createModel("archModel"); systemcomposer.openModel("archModel"); dictionary = model.InterfaceDictionary; airspeedType = dictionary.addValueType("AirSpeed");
Properties
Object Functions
moveInterface | Move interface to another data dictionary |
setName | Set name for value type, function argument, interface, or element |
setDataType | Set data type for value type |
setDimensions | Set dimensions for value type |
setUnits | Set units for value type |
setComplexity | Set complexity for value type |
setMinimum | Set minimum for value type |
setMaximum | Set maximum for value type |
setDescription | Set description for value type or interface |
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
See Also
Functions
addInterface
|moveInterface
|addPhysicalInterface
|removeInterface
|createInterface
|setName
|setInterface
|getInterface
|getInterfaceNames
|addElement
|removeElement
|getElement
|setName
|setType
|createOwnedType
|getSourceElement
|getDestinationElement
|systemcomposer.createDictionary
|systemcomposer.openDictionary
|saveToDictionary
|isOpen
|getFileName
|linkDictionary
|unlinkDictionary
|addReference
|removeReference
|makeOwnedInterfaceShared
|addValueType
|createInterface
|setName
|setDataType
|setDimensions
|setUnits
|setComplexity
|setMinimum
|setMaximum
|setDescription
|addServiceInterface
|setFunctionPrototype
|getFunctionArgument
|setAsynchronous
|systemcomposer.getSelectedInterfaces
Objects
systemcomposer.interface.DataInterface
|systemcomposer.interface.DataElement
|systemcomposer.interface.PhysicalDomain
|systemcomposer.interface.PhysicalInterface
|systemcomposer.interface.PhysicalElement
|systemcomposer.interface.Dictionary
|systemcomposer.interface.ServiceInterface
|systemcomposer.interface.FunctionArgument
|systemcomposer.interface.FunctionElement
|addServiceInterface
|setFunctionPrototype
|getFunctionArgument
|setAsynchronous