Hasil (
Bahasa Indonesia) 1:
[Salinan]Disalin!
Interaction DiagramsUML Specifies a number of interaction diagrams to model dynamic aspects of the systemDynamic aspects of the systemMessages moving among objects/classesFlow of control among objectsSequences of eventsDynamic Diagram TypesInteraction Diagrams - Set of objects or roles and the messages that can be passed among them.Sequence Diagrams - emphasize time orderingCommunication Diagrams - emphasize structural ordering State DiagramsState machine consisting of states, transitions, events and activities of an objectActivity & Swimlane DiagramsEmphasize and show flow of control among objectsSequence DiagramsDescribe the flow of messages, events, actions between objectsShow concurrent processes and activations Show time sequences that are not easily depicted in other diagrams Typically used during analysis and design to document and understand the logical flow of your system Rules of thumbRarely use options,loops,alt/else These constructs complicate a diagram and make them hard to read/interpret. Frequently it is better to create multiple simple diagrams Create sequence diagrams for use cases when it helps clarify and visualizae a complex flow Remember: the goal of UML is communication and understandingSummarySequence diagrams model object interactions with an emphasis on time orderingMethod call linesMust be horizontal! Vertical height matters! “Lower equals Later”Label the linesLifeline – dotted vertical lineExecution bar – bar around lifeline when code is runningArrowsSyncronous call (you’re waiting for a return value) – triangle arrow-headAsyncronous call (not waiting for a return) – open arrow-headReturn call – dashed lineIn class exerciseDraw a sequence diagram for:In Beauty and the Beast kitchen items came to life. Draw a sequence diagram for making a peanut butter and jelly sandwich if the following objects are alive: knife, peanut butter jar (and peanut butter), jelly jar (and jelly), bread, plate. I may or may not want the crusts cut off. Don’t forget to open and close things like the jars, and put yourself away, cleanup, etc…
Sedang diterjemahkan, harap tunggu..
