Defining classes
Class properties
A class has the following general properties:
Property | Description |
Name | Name of the class |
|
|
Code | Reference name for the class |
|
|
Comment | Descriptive comment for the class |
|
|
Stereotype | Subclassification of a class derived from an existing |
| one. Extends the semantics of a class without |
| changing it's structure |
|
|
Type | Set of instances that share the same operations, |
| abstract attributes, and relationships, and semantics |
|
|
Visibility | Visibility of the class, whose value denotes how it |
| may be seen and used by other objects |
|
|
Cardinality | Specific number of instances that the class can have |
|
|
Persistence | Lifetime of the instances of a class. An object can be |
| persistent or transient. If it is persistent, it continues |
| to exist after the process that created it has ceased to |
| exist. If it is transient, then it ceases to exist when |
| the process that created it ceases to exist |
|
|
Abstract | Indicates that the class cannot be instantiated and |
| therefore has no direct instances |
|
|
Final | Specifies that the class cannot have any inherited |
| objects |
|
|
Generate | Indicates that the class will be automatically |
| included among the objects generated from the |
| model when you launch the generation process |
|
|
Maximum length
254
254
—
—
—
—
—
—
—
—
—
A class definition also includes the following properties, which are defined on associated property sheets:
Property
Attribute
Operation
Rule
Description
Defines the characteristics of a class
Carries out a service that effects behavior
A business rule that your business follows. Business rules guide and document the creation of a model
18