section: < previous | next > | | | |
chapter: << previous | next >> |
2.3 Navigation along a association class
Constraints with association classes are a consequent extension of standard constraints with simple associations. In case of unlabelled association ends in the class diagram you can use the lower case class name to navigate the required direction.
The example in figure 2.3 describes, that the date of marriage has to be after the date of birth. |
|
||
The corresponding OCL text is: |
|||
2.4 Navigation starting at a association class Navigations may also start at association classes. The start-role self will then be an instance of an association class.
The example in figure 2.4 describes, that each job has to be assigned to a person, who is working on it. |
|
||
The corresponding OCL text is: |
section: < previous | next > | | | |
chapter: << previous | next >> |