
- •What is the uml?
- •2. What are ways of using uml
- •Describe uml diagrams.
- •4. How to fit the uml into development process?
- •Notes and comments, constraint rules, keywords on uml diagrams: definitions, description, examples.
- •6. Main elements of class diagram: definitions, description, examples.
- •7. Attributes and operations on class diagram: definitions,
- •Visibility name (parameter-list) : return-type {property-string}
- •8. Relationships between classes: definitions, description, examples.
- •9. Interfaces and abstract classes on class diagram:
- •10. Main elements of sequence diagram: definitions, description, examples.
- •11. Creating and deleting participants, synchronous and asynchronous calls on sequence diagram: definitions, description, examples.
- •12. Loops and conditionals on sequence diagram: definitions, description, examples.
- •13. Main elements of object diagram: definitions, description, examples.
- •14. Main elements of package diagram: definitions, description, examples.
- •15. How to show aspects on package diagram: definition, description, example.
- •16. Main elements of deployment diagram: definitions, description, examples.
- •17. Main elements of use case diagram: definitions, description, examples.
- •18. Levels of use cases on use case diagram: definitions, description, examples.
- •19. Relationships between use cases: definitions, description, examples.
- •20. Main elements of state machine diagram: definitions, description, examples.
- •21. Internal activities, activity states, superstates, concurrent states: definitions, description, examples.
- •22. Main elements of activity diagram: definitions, des, examples.
- •23. Decomposing an action on activity diagram: definition, description, example.
- •24. Partitions, expansion regions, flow final, join specifications: definitions, description, examples
- •25. Main elements of communication diagram: definitions, description, examples.
- •26. Composite structures: definition, description, example.
- •27. Main elements of component diagram: definitions, description, examples.
- •28. Collaborations: definition, description, example.
- •29. Main elements of interaction overview diagram: definitions, description, examples.
- •30. Main elements of timing diagram: definitions, description, examples.
- •Uml: Exam questions
- •What is the uml?
9. Interfaces and abstract classes on class diagram:
An interface is a classifier that declares of a set of coherent public features and obligations. An interface specifies a contract.
Interface SiteSearch.
An interface is a classifier that declares of a set of coherent public features and obligations. An interface specifies a contract. In UML 1.4 interface was formally equivalent to an abstract class with no attributes and no methods and only abstract operations. An interface may be shown using a rectangle symbol with the keyword «interface» preceding the name.
Interface participating in the interface realization dependency is shown as a circle or ball, labeled with the name of the interface and attached by a solid line to the classifier that realizes this interface.
Interface SiteSearch is realized (implemented) by SearchService.
The usage dependency from a classifier to an interface is shown by representing the interface by a half-circle or socket, labeled with the name of the interface, attached by a solid line to the classifier that requires this interface.
Interface SiteSearch is used (required) by SearchController.
Class SearchRequest is abstract class.
The name of an abstract class is shown in italics or using the stereotype <<abstract>>. An abstract class only defines the method signatures that derived classes are required to implement, also it may contain state variables.
10. Main elements of sequence diagram: definitions, description, examples.
Sequence diagram captures the behavior of a single scenario. The diagram shows a number of example objects and the messages that are passed between these objects within the use case. Figure is example a sequence diagram that shows one implementation of that scenario. Sequence diagrams show the interaction by showing each participant with a lifeline that runs vertically down the page and the ordering of messages by reading down the page.
Example:
We can see that an instance of order sends getQuantity and getProduct messages to the order line. We can also see how we show the order invoking a method on itself and how that method sends getDiscountInfo to an instance of customer. The diagram, however, doesn't show everything very well. The sequence of messages getQuantity, getProduct, getPricingDetails, and calculateBasePrice needs to be done for each order line on the order, while calculateDiscounts is invoked just once. In these diagrams, I've named the participants using the style anOrder. This works well most of the time. A fuller syntax is name : Class, where both the name and the class are optional, but we must keep the colon if we use the class. Each lifeline has an activation bar that shows when the participant is active in the interaction. This corresponds to one of the participant's methods being on the stack. Activation bars are optional in UML. Naming often is useful to correlate participants on the diagram. The call getProduct is shown returning aProduct, which is the same name, and therefore the same participant, as the aProduct that the getPricingDetails call is sent to. The first message doesn't have a participant that sent it, as it comes from an undetermined source. It's called a found message.