Kiến trúc máy tính và hợp ngữ - Chapter 7: Behavioral modeling
A dynamic model that shows the different states through which a single object passes during its life in response to events, along with its responses and actions
Typically not used for all objects
Just for complex ones
22 trang |
Chia sẻ: huyhoang44 | Lượt xem: 919 | Lượt tải: 0
Bạn đang xem trước 20 trang tài liệu Kiến trúc máy tính và hợp ngữ - Chapter 7: Behavioral modeling, để xem tài liệu hoàn chỉnh bạn click vào nút DOWNLOAD ở trên
Chapter 7:Behavioral ModelingObjectivesUnderstand the rules and style guidelines for sequence and communication diagrams and behavioral state machines.Understand the processes used to create sequence and communication diagrams and behavioral state machines.Be able to create sequence and communication diagrams and behavioral state machines.Understand the relationship between the behavioral models and the structural and functional models.Key IdeasBehavioral models describe the internal dynamic aspects of an information system that supports business processes in an organizationKey UML behavioral models are: sequence diagrams, collaboration diagrams, and statechart diagramsBEHAVIORAL MODELSBehavioral ModelsSystems have static &dynamic characteristicsStructural models describe the static aspects of the systemBehavioral models describe the dynamics and interactions of the system and its componentsBehavioral models describe how the classes described in the structural models interact in support of the use cases.INTERACTION DIAGRAMSInteraction Diagram ComponentsObjectsan instantiation of a classOperationsthe behaviors of an instance of a classMessagesinformation sent to objects to tell them to execute one of their behaviorsSequence DiagramsIllustrate the objects that participate in a use-caseShow the messages that pass between objects for a particular use-caseSequence Diagram SyntaxMore Sequence Diagram SyntaxSample Sequence DiagramSteps to Build Sequence DiagramsSet the contextIdentify which objects will participateSet the lifeline for each objectLay out the messages from top to bottom of the diagram based on the order in which they are sentAdd execution occurrence to each object‘s lifelineValidate the sequence diagramBEHAVIORAL STATE MACHINESBehavioral State MachinesA dynamic model that shows the different states through which a single object passes during its life in response to events, along with its responses and actionsTypically not used for all objectsJust for complex onesComponents of State MachinesStatesvalues of an object’s attributes at a point in timeEventschange the values of the object’s attributesTransitionsmovement of an object from one state to anotherActionsatomic, non-decomposable processesActivitiesnon-atomic, decomposable processesState Machine SyntaxSample State MachineSteps to Build a State MachineSet the contextIdentify the initial, final, and stable states of the objectDetermine the order in which the object will pass through the stable statesIdentify the events, actions, and guard conditions associated with the transitionsValidate the behavioral state machineCRUD ANALYSISCRUD AnalysisLabels object interaction in 4 possible waysCreateReadUpdateDeleteMatrix representation of objects and interactionsMost useful as a system-wide representationSample CRUD MatrixSummaryBehavioral ModelsInteraction DiagramsBehavioral State MachinesCRUD Analysis
Các file đính kèm theo tài liệu này:
- ch07_8314.ppt