otn
tokens can express the aggregation kind and the multiplicity range of a Property (see "9.5 Properties" in UML 2.5.1) and can represent a memberEnd of an Association as a data member of a class in C++ code.
UML AggregationKind | otn::ownership |
---|---|
none |
weak |
shared |
shared |
composite |
unique |
See Ownership for details.
UML multiplicity range | otn::multiplicity |
---|---|
[0..1] |
optional |
[1..1] |
single |
See Multiplicity for details.
otn
tokens can represent Parameters (see “9.4.3.4 Parameters”) and Variables (see “15.2.3.5 Variables”) as parameters of a function or variables in C++ code.
See Ownership for details.
See the Car example that demonstrates UML vs C++ relations.