model1
Class Operation

An Operation defines a dynamic feature which offers a service. The behavior of an operation is activated through the invocation of the operation.

Attributes
Primitive Type boolean isQuery isQuery

Defining an Operation with an isQuery value of true denotes that the behavior of the operation will not alter the state of the object. The state of a Classifier, for this definition, is the set of values of all of the Classifier's class-scope and instance-scope StructuralFeatures.


For instance, an Operation of a Class, defined with a scope of instance, will not change the values or instances of any instance-scope StructuralFeature of the Class instance, as a result of invoking this Operation. An Operation of a Class with a
scope of classifier will not change the values or instances of any of the classifier-scope StructuralFeatures or instance-scope StructuralFeatures.


This attribute does not define a constraint enforced by the model, but rather a promise that the operation's implementation is expected to uphold. An operation which is not defined as isQuery equals false is not guaranteed to change the state of its object. The isQuery constraint does not proscribe any specific implementation, so long as the definition of isQuery above is observed.

Primitive Type string semantics semantics

Properties:

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

Attribute Details

 isQuery
public Primitive Type boolean isQuery

Defining an Operation with an isQuery value of true denotes that the behavior of the operation will not alter the state of the object. The state of a Classifier, for this definition, is the set of values of all of the Classifier's class-scope and instance-scope StructuralFeatures.


For instance, an Operation of a Class, defined with a scope of instance, will not change the values or instances of any instance-scope StructuralFeature of the Class instance, as a result of invoking this Operation. An Operation of a Class with a
scope of classifier will not change the values or instances of any of the classifier-scope StructuralFeatures or instance-scope StructuralFeatures.


This attribute does not define a constraint enforced by the model, but rather a promise that the operation's implementation is expected to uphold. An operation which is not defined as isQuery equals false is not guaranteed to change the state of its object. The isQuery constraint does not proscribe any specific implementation, so long as the definition of isQuery above is observed.

Properties:

Aggregationnone
Alias
Association
Association End
Class Class Operation
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
NameisQuery
Name Expression
Opposite
Owned Template Signature
OwnerClass Operation
Owning Association
Owning Parameter
Qualified Namemodel1::model1::Operation::isQuery
Stereotype
Template Parameter
TypePrimitive Type boolean
Upper1
Upper Value
Visibilitypublic


 semantics
public Primitive Type string semantics
Properties:

Aggregationnone
Alias
Association
Association End
Class Class Operation
Collections
Datatype
Default
Default Value
Is Compositefalse
Is Derivedfalse
Is Derived Unionfalse
Is Leaffalse
Is Orderedfalse
Is Read Onlyfalse
Is Staticfalse
Is Uniquetrue
Keywords
Lower0
Lower ValueLiteral Integer
Multiplicity0..1
Namesemantics
Name Expression
Opposite
Owned Template Signature
OwnerClass Operation
Owning Association
Owning Parameter
Qualified Namemodel1::model1::Operation::semantics
Stereotype
Template Parameter
TypePrimitive Type string
Upper1
Upper ValueLiteral Unlimited Natural
Visibilitypublic

Comments