Skip to content

Association class creation

Leon Starr edited this page Sep 5, 2021 · 1 revision

Creating an instance of an association class

Every association class holds at least two references, one on each side of the association it formalizes. Just like any class, an association class may hold references on other associations.

Consider the Engagement class which represents an interaction between a Missile and a Target. To create an instance of Engagement asynchronously you could do this:

Target acquired -> *Engagement(Closing speed: cspeed) &R1 the missle, the target

If it turns out that an Engagement also holds a reference to an instance of Attack Profile on the 0..*:1 R8 association, you will need to supply that instance and association as well:

Target acquired -> *Engagement(Closing speed: cspeed) &R1 the missle, the target &R8 my profile

Introduction

Model semantics

Flows (as Variables)

Constants and literals

Structure of an activity

Accessing the class model

Data flow


Grammar and parsing notes

Components

Clone this wiki locally