- OOAD Tutorial
- OOAD - Home
- OOAD - Object Oriented Paradigm
- OOAD - Object Oriented Model
- OOAD - Object Oriented System
- OOAD - Object Oriented Principles
- OOAD - Object Oriented Analysis
- OOAD - Dynamic Modelling
- OOAD - Functional Modelling
- OOAD - UML Analysis Model
- OOAD - UML Basic Notations
- OOAD - UML Structural Diagrams
- OOAD - UML Behavioural Diagrams
- OOAD - Object Oriented Design
- OOAD - Implementation Strategies
- OOAD - Testing & Quality Assurance
OOAD Object Modeling Techniques Q/A #6
Question:Explain the various models available in object oriented languages in brief. Also explain relationship among different models.
There are three types of models in object oriented languages.
The object model identifies the classes in the system and their relationship, as well as their attributes and operations. It represents the static structure of the system. The object model is represented graphically by a class diagram.
Step for object modeling
Following steps are performed in constructing an object model.
Read carefully, the problem statement.
Locate the object classes by underlining nouns.
Remove unnecessary and incorrect classes.
Prepare a data dictionary.
Locate associations between object classes.
Remove unnecessary and incorrect attributes.
Use inheritance to share common structure.
Traverse access paths to identify deficiency.
Remove unnecessary and incorrect associations.
Locate attributes of the object classes.
The dynamic model indicates the dynamics of the objects and their changes in state. The dynamic model captures the functional behavior of the system by exploring the behavior of the objects over time and the flow of control and events among the objects.
Steps for dynamic modeling
Following steps are performed in constructing dynamic model.
Locate use cases and prepare scenarios of typical interaction sequence.
Locate events between objects and prepare an event trace diagram for each scenario.
Develop an event flow diagram for the system.
Develop state diagrams for classes with important dynamic behavior.
Check for consistency and completeness of events shared among the state diagrams.
The functional model is a data flow diagram of the system and describes what the system does, not how it is done. A DFD is a network representation of the system to show the functional relationships of the values that are computed by a system. Data flow diagrams consist of processes , data flows , actors and data stores.
A process transforms input data values in to output data values. A process is presented as an ellipse, with the name of the process inside the ellipse.
A data flow shows the flow of data through a network of processes.
An actor, drawn as a rectangle, is an object.
A data store is a respository for the temporary storing of data . A data store is represented as a pair of parallel lines containing the name of a data store. Data stores may also be objects.
Steps for functional model
Following steps are performed in constructing a functional model.
Identify input and output values.
Use data flow diagrams as needed to show functional dependencies.
Describe what each function does.
Specify optimization criteria.
Relationship among models
The three models – object model , dynamic model and functional model are closely related to one another. To implement a system, all the three models are required to be modeled. After integration of these models , a complete view of the system can be achieved. The working of all three models explains how they are interrelated which is as follows:
Each model describes an aspect of the system but contains references to the other models.
The object model describes the data structure on which the dynamic and functional models operate on.
The operations in the object model correspond to events in the dynamic model and functions in the functional model.
The dynamic model describes the controlling structure of objects. It shows decisions which depend on object values and which cause actions that change object values and invoke functions.
The functional model describes functions invoked by operations in the object model and actions in the dynamic model.
Functions operate on data values specified by the object model. The functional model also shows constraints on object values.
Kickstart Your Career
Get certified by completing the courseGet Started