OCUP2F 03 Object Diagram

From Training Material
Jump to navigation Jump to search

Module 5. Object Diagram⌘

Instance Specification ⌘

  • An Instance Specification is a model element that represents an instance in a modeled system.
  • May be partial or complete representations of the instances that it corresponds to.
  • May represent an instance at a point in time (a snapshot).
  • Instance Specification is a model element and should not be confused with the instance that it is modeling.

Instance Specification Example 1⌘

InstanceSpecification called “streetName,” classified as String, and with a specification that is a LiteralString whose value is “S.Crown Street.”

InstanceSpecification with Slots.

  • A Slot specifies that an instance modeled by an Instance Specification has a value or values for a specific StructuralFeature

Instance Specification Example 2⌘