|
CIM Tutorial
> CIM > Overview
> Meta Schema > Association
 |
CIM Meta Schema - Association
|
 |
Overview | CIM
Schema | Extension Schema | CIM
Certification | CIM Query Language
Object Orientated Overview
| Specification | Meta
Schema | MOF | UML
Schema | Class
| Property | Method | Qualifier | Reference | Association | Indication
An association is a type of class that contains two or more
references. Associations represent relationships between two or
more classes.
Associations are classes that have the association qualifier. Since
associations are classes, they establish a relationship between
classes without affecting any of the related classes. In other words,
the addition of an association has no effect on any of the related
classes. An association cannot be a subclass of a
non-association class.
In CIM, it is very important to note that associations are not
handled as inverses with references attached to each class.
An association is a separate object with references attached to
it.
Example:
[Association,
Aggregation, Version("2.6.0"), Description (
"The
ProductSoftwareFeatures association identifies the "
"SoftwareFeatures
for a particular Product.") ]
class CIM_ProductSoftwareFeatures {
[Key, Min (1), Max (1),
Aggregate, Description (
"The Product that scopes the SoftwareFeatures.") ]
CIM_Product REF Product;
[Key, Weak, Description
(
"The SoftwareFeature in a Product.") ]
CIM_SoftwareFeature REF Component;
};
|