Reputation: 1412
I'm trying to understand the rules defined by the UML2 metamodel for associations between actors and usecases in usecase diagrams. I understand that actors and usecases can take part in generalizations (because they are derived from Classifier which adds the possibility for generalization), and I understand that an usecase can have extend/include-relationships to other usecases (because it is directly defined in the specification for usecase diagrams). Here is a part of the metamodel diagram for usecases:
As you can see, there are no associations between actors and usecases at all in this diagram. This can only mean that associations are allowed due to a common supertype of actor and usecase, perhaps BehavioredClassifier or Classifier. So my question is:
Another thing which is confusing: there is a constraint that says:
An actor can only have associations to use cases, components, and classes. Furthermore these associations must be binary.
But there is no equivalent constraint defined for usecases (except the binary thing). Does that mean associations always belong to actors and usecases are not aware of their associations towards actors? The specification can be found here, thanks.
Upvotes: 4
Views: 517
Reputation: 3506
The metaclasses responsible for associations between Actors, Usecases, CLasses, Component, etc. are Association and Property. When you associated a Actor to an Usecase, three elements are involved: an association and two properties. An association is a none directed relation between elements (classes, components, etc.) The properties represent the "ends" of your association and an association is binary if it has exactly two ends.
Hoping it helps
Upvotes: 3