model1
Class Class

A Class defines a classification over a set of object instances by defining the behavior they exhibit. This behavior is represented through operations, attributes, references, participation in associations, nested classes, constants, and constraints. Although the same or similar elements are used in other environments for representing Classes and their implementations, in the MOF these elements specify the class characteristics in an implementation-independent manner. For instance, defining a Class as having an attribute does not require the implementation of the Class (the software which provides the conformant behavior) to have an attribute, to hold the attribute value, etc. The implementation simply must insure that the behavior conforms to the definition of the attribute. The use of all the additional elements beyond operations provides a much richer environment for defining Class Behavior. Likewise, this construct is not an interface. Its expressibility goes beyond interface representations. The MOF's IDL translation capabilities map a single Class onto two interfaces. It would be possible to define transformations to alternate interface presentations, such as Java's interfaces.


There are, and probably always will be, divergent views among industry leaders on the definition of the concepts of Class, Type, and Interface. As a domain-specific modeling environment, so long as the MOF is clear about the meaning of Class within the MOF, it should remain immune from such concerns.

Attributes
Primitive Type boolean isSingleton isSingleton

When isSingleton is true, at most one M1 level instance of this Class may exist within the M1-level extent of the Class.


Properties:

Alias
Classifier Behavior
Collections
Is Abstractfalse
Is Activefalse
Is Leaffalse
Keywords
NameClass
Name Expression
Owned Template Signature
OwnerPackage model1
Owning Parameter
PackagePackage model1
Packageable Element visibilitypublic
Qualified Namemodel1::model1::Class
Representation
Stereotype
Template Parameter
Visibilitypublic

Attribute Details

 isSingleton
public Primitive Type boolean isSingleton

When isSingleton is true, at most one M1 level instance of this Class may exist within the M1-level extent of the Class.

Properties:

Aggregationnone
Alias
Association
Association End
Class Class Class
Collections
Datatype
Default
Default Value
Is Compositefalse
Is Derivedfalse
Is Derived Unionfalse
Is Leaffalse
Is Orderedfalse
Is Read Onlyfalse
Is Staticfalse
Is Uniquetrue
Keywords
Lower1
Lower Value
Multiplicity1
NameisSingleton
Name Expression
Opposite
Owned Template Signature
OwnerClass Class
Owning Association
Owning Parameter
Qualified Namemodel1::model1::Class::isSingleton
Stereotype
Template Parameter
TypePrimitive Type boolean
Upper1
Upper Value
Visibilitypublic

Comments