SlideShare a Scribd company logo
1 of 18
TOPIC:
RELATION OF CLASS MODELAND STATE MODEL
PRESENTED BY:
Chetan Malviya
TABLE OF
CONTENT
 MODEL
 TYPES OF MODEL
 CLASS MODEL
 EXAMPLE OF CLASS
MODEL
 STATE MODEL
 EXAMPLE OF STATE
MODEL
 RELATION OF CLASS
MODEL AND STATE
MODEL
MODEL
MODEL
Models are forms of description often adopted in software development. They are abstractions used to
represent and communicate what is important, devoid of unnecessary detail, and to help developers
deal with the complexity of the problem being investigated or the solution being developed.
Purpose:
 For better understanding of the system.
Characteristics:
 Simplified
 Consistent
 Abstraction of system
 Understandable
 Less complex
TYPES OF
MODEL
TYPES OF MODEL
MODEL
Class Model State Model
Interaction
Model
 Class Model: The class model shows all the classes present in the system. The class
model shows the attributes and the behavior associated with the objects. The class
diagram is used to show the class model. The class diagram shows the class name
followed by the attributes followed by the functions or the methods that are associated
with the object of the class. Goal in constructing class model is to capture those concepts
from the real world that are important to an application.
 State Model: State model describes those aspects of objects concerned with time and the
sequencing of operations – events that mark changes, states that define the context for
events, and the organization of events and states. Actions and events in a state diagram
become operations on objects in the class model. State diagram describes the state model.
 Interaction Model: Interaction model is used to show the various interactions between
objects, how the objects collaborate to achieve the behavior of the system as a whole.
The following diagrams are used to show the interaction model:
 Use Case Diagram
 Sequence Diagram
 Activity Diagram
CLASS
MODEL
CLASS MODEL
 The class model shows all the classes present in the system. The class model shows the attributes and the
behavior associated with the objects. The class diagram is used to show the class model. The class diagram
shows the class name followed by the attributes followed by the functions or the methods that are associated
with the object of the class. Goal in constructing class model is to capture those concepts from the real world
that are important to an application.
 Class model defines the structure of the entire system by identifying the static structure of objects in that
system. A class model defines attributes and operations for the objects of each class and also the relationship
between the objects in the systems.
 A class model prepares the platform for the other two models i.e. the state model and interaction model.
Class model is considered important as it represents the graphical representation of the entire system and
helps in analysis while communicating with the customers.
 The motive behind constructing the class model is to concentrate on those concepts of real world that are
important from the application point of view. In this section, we will discuss the class model along with its
elements like the objects, classes, links and association between the classes.
EXAMPLE
OF CLASS
MODEL
EXAMPLE OF CLASS MODEL
 We can define a class as a group of objects possessing the same attributes and the same operations. An
object is said to be an instance or an occurrence of the class. To understand this in a better way consider
a class Person. Look at the image below you can observe, two objects of the class person i.e. Joe and
Smith. They share the same attributes such as name, city and same operation such as change-city,
change-job.
STATE
MODEL
STATE MODEL
 State model describes those aspects of objects concerned with time and the sequencing of operations –
events that mark changes, states that define the context for events, and the organization of events and
states. Actions and events in a state diagram become operations on objects in the class model. State
diagram describes the state model.
 A state model describes the timely behaviour of the class objects over a period of time. A state model
has multiple state diagrams where each state diagram describes a class in the model.
 State model shows these changes in the object with the help of states, events,
transitions and conditions. Events are the incidents that occur to the object at a particular time whereas
the state shows the value of the object at a particular time. In this section, we will discuss state model
along with its elements and importance.
EXAMPLE
OF STATE
MODEL
EXAMPLE OF STATE MODEL
 The diagram example represents the state diagram for a chess game.
 The rounded boxes with a name are the states. The arrowed lines are the transitions and arrowhead points to
the target state. The labels over the transition lines are the event that lets the transition and change of states
occur.
 Each state diagram in the state model is presented in the rectangular frame and the name of the corresponding
state diagram is written in the pentagonal tag at the left corner of the rectangular frame as you can see in the
figure above. Guard conditions are optional are if required are written in square brackets just beside the
events.
RELATION OF
CLASS MODEL
AND STATE
MODEL
RELATION OF CLASS MODEL
AND STATE MODEL
 A state diagram describes all or part of the behaviour of the objects of a given class.
 States = classes of values & link for an object.
 State model of a class is inherited by its subclasses. Subclass inherits both the state & Transitions.
 It is also possible to refine an inherited state diagram by expanding state into nested state or concurrent
sub diagrams.
 State structure is related to and constrained by class structure.
 A composite state is the aggregation of more than one concurrent substate.
 Try to make the state diagrams of subclasses independent of the state diagrams of their
superclasses.
THANK YOU

More Related Content

Similar to OOAD PRESENTATION.pptx

Introduction to Object orientation , Modeling as a Design Technique Modeling ...
Introduction to Object orientation , Modeling as a Design Technique Modeling ...Introduction to Object orientation , Modeling as a Design Technique Modeling ...
Introduction to Object orientation , Modeling as a Design Technique Modeling ...DhwaniDesai21
 
INTRODUCTION TO UML DIAGRAMS
INTRODUCTION TO UML DIAGRAMSINTRODUCTION TO UML DIAGRAMS
INTRODUCTION TO UML DIAGRAMSAshita Agrawal
 
UML- Unified Modeling Language
UML- Unified Modeling LanguageUML- Unified Modeling Language
UML- Unified Modeling LanguageShahzad
 
Object Oriented Modeling and Design with UML
Object Oriented Modeling and Design with UMLObject Oriented Modeling and Design with UML
Object Oriented Modeling and Design with UMLMalek Sumaiya
 
ASP.NET System design 2
ASP.NET System design 2ASP.NET System design 2
ASP.NET System design 2Sisir Ghosh
 
Different Types Diagrams
Different Types Diagrams  Different Types Diagrams
Different Types Diagrams ShauryaGupta38
 
08 class and sequence diagrams
08   class and sequence diagrams08   class and sequence diagrams
08 class and sequence diagramskebsterz
 
Introduction to Rational Rose
Introduction to Rational RoseIntroduction to Rational Rose
Introduction to Rational RoseMunaam Munawar
 
UML and Software Modeling Tools.pptx
UML and Software Modeling Tools.pptxUML and Software Modeling Tools.pptx
UML and Software Modeling Tools.pptxNwabueze Obioma
 
Lecture 16 requirements modeling - scenario, information and analysis classes
Lecture 16   requirements modeling - scenario, information and analysis classesLecture 16   requirements modeling - scenario, information and analysis classes
Lecture 16 requirements modeling - scenario, information and analysis classesIIUI
 

Similar to OOAD PRESENTATION.pptx (20)

Introduction to Object orientation , Modeling as a Design Technique Modeling ...
Introduction to Object orientation , Modeling as a Design Technique Modeling ...Introduction to Object orientation , Modeling as a Design Technique Modeling ...
Introduction to Object orientation , Modeling as a Design Technique Modeling ...
 
Uml diagrams
Uml diagramsUml diagrams
Uml diagrams
 
SMD Unit ii
SMD Unit iiSMD Unit ii
SMD Unit ii
 
INTRODUCTION TO UML DIAGRAMS
INTRODUCTION TO UML DIAGRAMSINTRODUCTION TO UML DIAGRAMS
INTRODUCTION TO UML DIAGRAMS
 
UML- Unified Modeling Language
UML- Unified Modeling LanguageUML- Unified Modeling Language
UML- Unified Modeling Language
 
Object Oriented Modeling and Design with UML
Object Oriented Modeling and Design with UMLObject Oriented Modeling and Design with UML
Object Oriented Modeling and Design with UML
 
432
432432
432
 
Umldiagram
UmldiagramUmldiagram
Umldiagram
 
Ch07
Ch07Ch07
Ch07
 
ASP.NET System design 2
ASP.NET System design 2ASP.NET System design 2
ASP.NET System design 2
 
Module 2 17CS45
Module 2 17CS45Module 2 17CS45
Module 2 17CS45
 
OOP_Module 2.pptx
OOP_Module 2.pptxOOP_Module 2.pptx
OOP_Module 2.pptx
 
Types of UML diagrams
Types of UML diagramsTypes of UML diagrams
Types of UML diagrams
 
Different Types Diagrams
Different Types Diagrams  Different Types Diagrams
Different Types Diagrams
 
Uml
UmlUml
Uml
 
08 class and sequence diagrams
08   class and sequence diagrams08   class and sequence diagrams
08 class and sequence diagrams
 
Intro Uml
Intro UmlIntro Uml
Intro Uml
 
Introduction to Rational Rose
Introduction to Rational RoseIntroduction to Rational Rose
Introduction to Rational Rose
 
UML and Software Modeling Tools.pptx
UML and Software Modeling Tools.pptxUML and Software Modeling Tools.pptx
UML and Software Modeling Tools.pptx
 
Lecture 16 requirements modeling - scenario, information and analysis classes
Lecture 16   requirements modeling - scenario, information and analysis classesLecture 16   requirements modeling - scenario, information and analysis classes
Lecture 16 requirements modeling - scenario, information and analysis classes
 

More from Chetanmalviya8

More from Chetanmalviya8 (7)

Security and Privacy.PDF
Security and Privacy.PDFSecurity and Privacy.PDF
Security and Privacy.PDF
 
Keyloggers.ppt
Keyloggers.pptKeyloggers.ppt
Keyloggers.ppt
 
Botnet.pptx
Botnet.pptxBotnet.pptx
Botnet.pptx
 
WirelessLANs.pptx
WirelessLANs.pptxWirelessLANs.pptx
WirelessLANs.pptx
 
Graph Coloring
Graph ColoringGraph Coloring
Graph Coloring
 
Ethical Hacking
Ethical HackingEthical Hacking
Ethical Hacking
 
Monitors.ppt
Monitors.pptMonitors.ppt
Monitors.ppt
 

Recently uploaded

一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格q6pzkpark
 
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...gajnagarg
 
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...Elaine Werffeli
 
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...Health
 
Predicting HDB Resale Prices - Conducting Linear Regression Analysis With Orange
Predicting HDB Resale Prices - Conducting Linear Regression Analysis With OrangePredicting HDB Resale Prices - Conducting Linear Regression Analysis With Orange
Predicting HDB Resale Prices - Conducting Linear Regression Analysis With OrangeThinkInnovation
 
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...nirzagarg
 
怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制
怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制
怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制vexqp
 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Klinik kandungan
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Valters Lauzums
 
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...nirzagarg
 
Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1ranjankumarbehera14
 
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...gajnagarg
 
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...nirzagarg
 
Switzerland Constitution 2002.pdf.........
Switzerland Constitution 2002.pdf.........Switzerland Constitution 2002.pdf.........
Switzerland Constitution 2002.pdf.........EfruzAsilolu
 
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi ArabiaIn Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabiaahmedjiabur940
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样
一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样
一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样wsppdmt
 
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样wsppdmt
 

Recently uploaded (20)

一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格
 
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
 
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
 
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
 
Predicting HDB Resale Prices - Conducting Linear Regression Analysis With Orange
Predicting HDB Resale Prices - Conducting Linear Regression Analysis With OrangePredicting HDB Resale Prices - Conducting Linear Regression Analysis With Orange
Predicting HDB Resale Prices - Conducting Linear Regression Analysis With Orange
 
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
 
怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制
怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制
怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制
 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
 
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
 
Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1
 
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get CytotecAbortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get Cytotec
 
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
 
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
 
Switzerland Constitution 2002.pdf.........
Switzerland Constitution 2002.pdf.........Switzerland Constitution 2002.pdf.........
Switzerland Constitution 2002.pdf.........
 
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi ArabiaIn Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
 
Sequential and reinforcement learning for demand side management by Margaux B...
Sequential and reinforcement learning for demand side management by Margaux B...Sequential and reinforcement learning for demand side management by Margaux B...
Sequential and reinforcement learning for demand side management by Margaux B...
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样
一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样
一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样
 
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
 

OOAD PRESENTATION.pptx

  • 1. TOPIC: RELATION OF CLASS MODELAND STATE MODEL PRESENTED BY: Chetan Malviya
  • 2. TABLE OF CONTENT  MODEL  TYPES OF MODEL  CLASS MODEL  EXAMPLE OF CLASS MODEL  STATE MODEL  EXAMPLE OF STATE MODEL  RELATION OF CLASS MODEL AND STATE MODEL
  • 4. MODEL Models are forms of description often adopted in software development. They are abstractions used to represent and communicate what is important, devoid of unnecessary detail, and to help developers deal with the complexity of the problem being investigated or the solution being developed. Purpose:  For better understanding of the system. Characteristics:  Simplified  Consistent  Abstraction of system  Understandable  Less complex
  • 6. TYPES OF MODEL MODEL Class Model State Model Interaction Model
  • 7.  Class Model: The class model shows all the classes present in the system. The class model shows the attributes and the behavior associated with the objects. The class diagram is used to show the class model. The class diagram shows the class name followed by the attributes followed by the functions or the methods that are associated with the object of the class. Goal in constructing class model is to capture those concepts from the real world that are important to an application.  State Model: State model describes those aspects of objects concerned with time and the sequencing of operations – events that mark changes, states that define the context for events, and the organization of events and states. Actions and events in a state diagram become operations on objects in the class model. State diagram describes the state model.  Interaction Model: Interaction model is used to show the various interactions between objects, how the objects collaborate to achieve the behavior of the system as a whole. The following diagrams are used to show the interaction model:  Use Case Diagram  Sequence Diagram  Activity Diagram
  • 9. CLASS MODEL  The class model shows all the classes present in the system. The class model shows the attributes and the behavior associated with the objects. The class diagram is used to show the class model. The class diagram shows the class name followed by the attributes followed by the functions or the methods that are associated with the object of the class. Goal in constructing class model is to capture those concepts from the real world that are important to an application.  Class model defines the structure of the entire system by identifying the static structure of objects in that system. A class model defines attributes and operations for the objects of each class and also the relationship between the objects in the systems.  A class model prepares the platform for the other two models i.e. the state model and interaction model. Class model is considered important as it represents the graphical representation of the entire system and helps in analysis while communicating with the customers.  The motive behind constructing the class model is to concentrate on those concepts of real world that are important from the application point of view. In this section, we will discuss the class model along with its elements like the objects, classes, links and association between the classes.
  • 11. EXAMPLE OF CLASS MODEL  We can define a class as a group of objects possessing the same attributes and the same operations. An object is said to be an instance or an occurrence of the class. To understand this in a better way consider a class Person. Look at the image below you can observe, two objects of the class person i.e. Joe and Smith. They share the same attributes such as name, city and same operation such as change-city, change-job.
  • 13. STATE MODEL  State model describes those aspects of objects concerned with time and the sequencing of operations – events that mark changes, states that define the context for events, and the organization of events and states. Actions and events in a state diagram become operations on objects in the class model. State diagram describes the state model.  A state model describes the timely behaviour of the class objects over a period of time. A state model has multiple state diagrams where each state diagram describes a class in the model.  State model shows these changes in the object with the help of states, events, transitions and conditions. Events are the incidents that occur to the object at a particular time whereas the state shows the value of the object at a particular time. In this section, we will discuss state model along with its elements and importance.
  • 15. EXAMPLE OF STATE MODEL  The diagram example represents the state diagram for a chess game.  The rounded boxes with a name are the states. The arrowed lines are the transitions and arrowhead points to the target state. The labels over the transition lines are the event that lets the transition and change of states occur.  Each state diagram in the state model is presented in the rectangular frame and the name of the corresponding state diagram is written in the pentagonal tag at the left corner of the rectangular frame as you can see in the figure above. Guard conditions are optional are if required are written in square brackets just beside the events.
  • 17. RELATION OF CLASS MODEL AND STATE MODEL  A state diagram describes all or part of the behaviour of the objects of a given class.  States = classes of values & link for an object.  State model of a class is inherited by its subclasses. Subclass inherits both the state & Transitions.  It is also possible to refine an inherited state diagram by expanding state into nested state or concurrent sub diagrams.  State structure is related to and constrained by class structure.  A composite state is the aggregation of more than one concurrent substate.  Try to make the state diagrams of subclasses independent of the state diagrams of their superclasses.