Object model#
- class besser.BUML.metamodel.object.object.AttributeLink(value: DataValue, attribute: Property)[source]#
Bases:
object
An attribute link is a named slot in an instance, which holds the value of an attribute
- Parameters:
- class besser.BUML.metamodel.object.object.DataValue(classifier: Type, value, name='')[source]#
Bases:
Instance
An DataValue represent the value of a property or attribute of an Object.
- Parameters:
classifier (Type) – the classifier of the DataValue. It could be for example a Class or a PrimitiveDataType of the structural metamodel.
value – value of the property Instance.
- classifier#
Inherited from Instance, represents the classifier of the DataValue instance.
- Type:
- value#
value of the property Instance.
- _abc_impl = <_abc._abc_data object>#
- property value#
Method to retrieve Value
- class besser.BUML.metamodel.object.object.Instance(name: str, classifier: Type)[source]#
Bases:
NamedElement
The instance defines an entity to which a set of operations can be applied and which has a state that stores the effects of the operations.
- Parameters:
- classifier#
the classifier of the instance. It could be for example a Class or a PrimitiveDataType of the structural metamodel.
- Type:
- _abc_impl = <_abc._abc_data object>#
- class besser.BUML.metamodel.object.object.Link(name: str, association: Association, connections: list[LinkEnd])[source]#
Bases:
NamedElement
A link represent a relationship between objects.
- Parameters:
name (str) – the name of the Link
association (Association) – the Association that represents the Link
connections – list of link ends.
- association#
the Association that represents the Link
- Type:
- connections#
list of link ends.
- _abc_impl = <_abc._abc_data object>#
- property association#
Method to retrieve the association
- Type:
- class besser.BUML.metamodel.object.object.LinkEnd(name: str, association_end: Property, object: Object)[source]#
Bases:
NamedElement
A link end is an end point of a link.
- Parameters:
- _abc_impl = <_abc._abc_data object>#
- class besser.BUML.metamodel.object.object.Object(name: str, classifier: Type, slots: list[AttributeLink] = [])[source]#
Bases:
Instance
An object is an instance that originates from a class.
- Parameters:
name (str) – the name of the object instance
classifier (Type) – the classifier of the object instance. It could be for example a Class or a PrimitiveDataType of the structural metamodel.
slots (list[AttributeLink]) – list of properties of the instance
- slots#
list of properties of the instance
- Type:
- _abc_impl = <_abc._abc_data object>#
- add_slot(slot: AttributeLink)[source]#
Method to add attribute link to slots
- property slots: list[AttributeLink]#
Get the slots.
- Type:
- class besser.BUML.metamodel.object.object.ObjectModel(name: str, instances: set[Instance], links: set[Link])[source]#
Bases:
NamedElement
An object model is the root element that comprises a number of instances and links.
- Parameters:
name (str) – the name of the object model
- association#
the Association that represents the Link
- Type:
- connections#
list of link ends.
- _abc_impl = <_abc._abc_data object>#
- property instances#
Method to retrieve the instances
- Type:
- property links#
Method to retrieve the links
- Type: