Attribute (automation interface)
A named property describing a data value that is held.
ATTRIBUTES:
In addition to the common attributes
Access
This indicates the visibility of the Attribute. Possible values are Public, Protected, Private or Package.
By default the Access will be Private.
Access is read/write.
Data Type <language> Name
Where <language> can be Ada, C, C++, IDL or Java.
A string returning the mangled name of the Attribute's data type.
Access is read-only.
Default Value
A string indicating the default value for this Attribute.
Access is read/write.
Description
A textual property that gives an overview of the dictionary item.
Access is read/write.
Is Behavior
Indicates that an Attribute modeled Port is a behavior Port. Possible values are TRUE and FALSE.
Access is read/write.
Is Composite
Indicates that the Attribute is composite. Possible values are TRUE and FALSE.
Access is read/write.
Is Conjugated
Indicates that an Attribute modeled Port is a conjugated Port. Possible values are TRUE and FALSE.
Access is read/write.
Is Derived
Indicates that an Attribute is derived. Possible values are TRUE and FALSE.
Access is read/write.
Is Port
Indicates that the Attribute represents a port. Possible values are TRUE and FALSE.
Access is read/write.
Is Service
Indicates that an Attribute modeled Port is a service Port. Possible values are TRUE and FALSE.
Access is read/write.
Is Unique
Indicates that this attribute uniquely identifies the Class object (Class, Data Type, Interface or Signal item). Possible values are TRUE or FALSE.
Access is read/write.
Multiplicity Text
A string that specifies the multiplicity of the Attribute. Set as follows for the values available in the drop-down list on the Attribute's Property Pages:
ZERO or ONE
ZERO or MORE
only ONE
ONE or MORE
TBD
Other values represent a User Defined value. For example, 12 to 15 or Thirteen.
Access is read/write.
Multiplicity UML
A string that specifies the multiplicity of the Attribute. Set as follows for the values available in the drop-down list on the Attribute's Property Pages:
0..1
*
1
1..*
For TBD End Multiplicity UML is blank.
Other values represent a User Defined value. For example, 12 to 15 or Thirteen.
Access is read/write.
Read Only
Specifies that the attribute is read only, that is, a constant. Possible values are TRUE or FALSE.
Access is read/write.
Storage
This indicates the C++ storage mechanism used by the Attribute. Possible values are On Instance or On Class.
Access is read/write.
Visibility
Note that for an Attribute object, the Visibility attribute is derived from the Access attribute. When you set the Visibility property of an Attribute in Modeler, Modeler sets the Access attribute.
Access is read-only.
ASSOCIATIONS:
In addition to the common associations
Relationship to Comments that are applied to the Attribute.
Multiplicity is 0+, access is read/write.
Relationship to Constraints that are applied to the Attribute.
Multiplicity is 0+, access is read/write.
Best Part Equivalent
When used with the Item, ItemEx or Items function, returns the Part that is the nearest equivalent part to the item that is specified as the index for the function. Note that virtual redefinitions inherit their properties from real redefinitions.
See also, Part Equivalent.
Multiplicity is 0+, access is read-only.
Relationship to scoping Package.
Multiplicity is 0-1, access is read/write.
A relationship with the owning Dictionary Item of type Class object (Class, Data Type, Interface or Signal item), Project or Package.
Multiplicity is 1, access is read/write.
Container
A relationship to the Class object (Class, Data Type, Interface or Signal item), Part or Port that contains the Attribute (as a Part or Port).
Multiplicity is 0-1, access is read-only.
Relationship with a data type item.
For uninterpreted data types, see the Data Type <language> Name attribute.
Multiplicity is 0-1, access is read/write.
Inherited Association
A collection of Associations that the Attribute (as a Part or Port) inherits.
Note that Associations that are directly linked to the Attribute (as a Part or Port) are not included in this collection. See Local Association.
Multiplicity is 0+, access is read-only.
Local Association
A collection of Associations that are linked to the Attribute (as a Part or Port).
Note that Associations that the Attribute (as a Part or Port) inherits are not included in this collection. See Inherited Association.
Multiplicity is 0+, access is read-only.
New Part Type
This association allows you to retype an Attribute (as a Part or Port) without losing the Part or Port's dependencies or associations.
When using the New Part Type association to retype a Part or Port, the following rules apply:
The Part or Port that is to be retyped must be in the class model.
The Part or Port that is to be retyped must be typed by a Class, Type Definition or Basic Type; or an item that is based on one of the preceding types, such as a SysML Block.
The Part or Port that is to be retyped must not be a redefinition.
The Part or Port can be retyped only by a Class, Type Definition or Basic Type; or an item that is based on one of the preceding types, such as a SysML Block.
In the following example, Part1 is retyped using Class2:
Set objItem = Dictionary.Item("Attribute", "Part1")
Set objNewType = Dictionary.Item("Class", "Class2")
objItem.Add "New Part Type", objNewType
Multiplicity is 0-1, access is write-only.
A relationship to Object Nodes (Input Pins and Output Pins) for which the Attribute is the Linked Item.
Multiplicity is 0+, access is read/write.
Relationship to Comments that are owned by the Attribute.
Multiplicity is 0+, access is read/write.
Relationship to Constraints that are owned by the Attribute.
Multiplicity is 0+, access is read/write.
Part
A collection of Parts (attributes and roles) that are contained by the Attribute (as a Part or Port).
You must use the AddDirected function to add a Part through this association.
Multiplicity is 0+, access is read/write.
Part Equivalent
When used with the Item, ItemEx or Items function, returns the Part redefinition (if there is one) for the Part specified as the index for the function.
When used with the AddDirected function, creates a Part redefinition of the Part specified as the index for the function.
See also, Best Part Equivalent.
Multiplicity is 0+, access is read/write.
Port
A collection of Ports (attributes and roles) that are contained by the Attribute (as a Part or Port).
You must use the AddDirected function to add a Port through this association.
Multiplicity is 0+, access is read/write.
A collection of IO Flows for which the Attribute is the source.
Multiplicity is 0+, access is read/write.
Storage Model
A collection of related items in the Data Model as a result of storage mapping.
Multiplicity is 0+, access is read/write.
A collection of IO Flows for which the Attribute is the target.
Multiplicity is 0+, access is read/write.
Was this helpful?