From use cases to a UML domain model Flashcards
What is a domain model?
-It’s a representation of real-world things, not software components.
-It’s a set of static structure diagrams, no operations are defined.
What is an association?
It’s a relationship between concepts that indicates some meaningful and interesting connection.
What is multiplicity?
It defines how many instances of a type A can be associated with one instance of a type B, at a particular moment in time.
What is the default direction?
Left to right, or top to bottom
What is an attribute?
Logical data value of an object
What is aggregation?
It’s a kind of association used to model whole-part relationships.
What is a whole-part relationship?
The whole is generally called the composite.
Parts have no standard name.
What is composition/composite aggregation?
It means that the multiplicity at the composite end may be at most one. –> FILLED DIAMOND
What is a shared aggregation?
It means that the multiplicity at the composite end may be more than one.–>HOLLOW DIAMOND
What is a role name?
-It identifies an end of an association ad ideally describes the role played by objects in the association.
-It’s not required
-It’s only useful when the role of the object is not clear.
What are the 2 ways a real-world role can be modelled in a conceptual model?
1.A discrete concept
2.As a role in an association
What are the pros and cons of roles in associations?
Pro: fewer classes
Con: cannot differ the concerns well
What are the pros and cons of roles as concepts?
Pro: better separation
Con: more classes
What is a recursive/reflexive association?
A concept that may have an association to itself.