This document provides information on various UML diagrams including object diagrams, state chart diagrams, and class diagrams. It discusses the key concepts of object state, behavior, and identity. It defines object diagrams as representing instances of classes and states that state chart diagrams are used to model the dynamic nature and lifetime of objects as they change states in response to events. Finally, it provides best practices for constructing state chart diagrams such as identifying important objects, their states, and triggering events.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
66 views21 pages
SLIDE 7 Object and State Chart Diagram
This document provides information on various UML diagrams including object diagrams, state chart diagrams, and class diagrams. It discusses the key concepts of object state, behavior, and identity. It defines object diagrams as representing instances of classes and states that state chart diagrams are used to model the dynamic nature and lifetime of objects as they change states in response to events. Finally, it provides best practices for constructing state chart diagrams such as identifying important objects, their states, and triggering events.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 21
UML Diagrams
OBJECT AND STATE CHART
DIAGRAMS SBI of an object • An object has an identity that characterizes its own existence. • The identity makes it possible to distinguish any object in an unambiguous way, and independently from its state • SBI stands for State, Behavior and Identity. Since every object has the above three. State: •It is just a value to the attribute of an object at a particular time. Behaviour: •It describes the actions and their reactions of that object. Identity: •An object has an identity that characterizes its own existence. •The identity makes it possible to distinguish any object in an unambiguous way, and independently from its state Object Diagram • Object diagrams are derived from class diagrams • Object diagrams represent an instance of a class diagram. • Object diagrams represent the static view of a system but this static view is a snapshot of the system at a particular moment. • Object diagrams are used to render a set of objects and their relationships as an instance. ORDER MANAGEMENT SYSTEM CLASS DIAGRAM State chart diagram • State chart diagram is one of the five UML diagrams used to model dynamic nature of a system. • They define different states of an object during its lifetime. And these states are changed by events. • So State chart diagrams are useful to model reactive systems. •Reactive systems can be defined as a system that responds to external or internal events. •State chart diagram describes the flow of control from one state to another state.. •States are defined as a condition in which an object exists and it changes when some event is triggered. •So the most important purpose of State chart diagram is to model life time of an object from creation to termination Main purposes of using State chart diagrams − •To model the dynamic aspect of a system. •To model the life time of a reactive system. •To describe different states of an object during its life time. •Define a state machine to model the states of an object. Before drawing a State chart diagram we should clarify the following points − •Identify the important objects to be analyzed. •Identify the states. •Identify the events. Following are the main purposes of using State chart diagrams: To model dynamic aspect of a system. To model life time of a reactive system. T To describe different states of an object during its life time. Define a state machine to model states of an object. State chart diagram Notations • Statechart diagram is used to describe the states of different objects in its life cycle. So the emphasis is given on the state changes upon some internal or external events. These states of objects are important to analyze and implement them accurately. Statechart diagrams are very important for describing the states. States can be identified as the condition of objects when a particular event occurs. Before drawing a Statechart diagram we must have clarified the following points: Identify important objects to be analyzed. Identify the states. Identify the events. License Renewal EXERCISE • Draw a state chart diagram of an object BOOK in MMU library system • Draw a state chart diagram of an object STUDENT in MMU university END. WAIRAGU G.R .