Download presentation
Presentation is loading. Please wait.
Published byReynard Spencer Modified over 8 years ago
1
Elements Of Modeling
2
1.Data Modeling Data modeling answers a set of specific questions that are relevant to any data processing application. e.g. ◦ What are the primary data objects to be processed by the system? ◦ What is the composition of each data object and what attributes describe the object? ◦ Where do the objects currently reside? ◦ What are the relationships between each object and other objects? ◦ What are the relationships between the objects and the processes that transform them?
3
1.Data Modeling To answer these questions, data modeling methods make use of the entity relationship diagram. The ERD, enables a software engineer to identify data objects and their relationships using a graphical notation. In the context of structured analysis, the ERD defines all data that are entered, stored, transformed, and produced within an application. The entity relationship diagram focuses solely on data, representing a "data network" that exists for a given system. The ERD is especially useful for applications in which data and the relationships that govern data are complex. Unlike the data flow diagram, data modeling considers data independent of the processing that transforms the data
4
1.Data Modeling Data model consists of three interrelated pieces of information: – the data object, – the attributes that describe the data object, – & the relationships that connect data objects to one another.
5
1.a Data Object A data object is a representation of almost any composite information that must be understood by software. Composite information means something that has a number of different properties or attributes. Therefore, width (a single value) would not be a valid data object, but dimensions (incorporating height, width, and depth) could be defined as an object.
6
1.a Data Object A data object can be an external entity (e.g., anything that produces or consumes information), a thing (e.g., a report or a display), an occurrence (e.g., a telephone call) or event (e.g., an alarm), a role (e.g., salesperson), an organizational unit (e.g., accounting department), a place (e.g., a warehouse), or a structure (e.g., a file). The data object description incorporates the data object and all of its attributes. Data objects are related to one another. For e.g. person can own car, where the relationship own connotes a specific "connection‖ between person and car. The relationships are always defined by the context of the problem that is being analyzed.
7
1.b Attributes Attributes define the properties of a data object and take on one of three different characteristics. They can be used to ◦ (1) name an instance of the data object, ◦ (2) describe the instance, or ◦ (3) make reference to another instance in another table. In addition, one or more of the attributes must be defined as an identifier—that is, the identifier attribute becomes a "key" when we want to find an instance of the data object. In some cases, values for the identifier(s) are unique, although this is not a requirement. Referring to the data object car, a reasonable identifier might be the ID number.
8
1.c Relationship Data objects are connected to one another in different ways. Consider two data objects, book and bookstore. A connection is established between book and bookstore because the two objects are related. We can define a set of object/relationship pairs that define the relevant relationships.
9
2.Object Oriented Modeling The elements of an object model comprise of classes and objects, attributes, operations, and messages.
10
2.a Classes and Objects Objects can be ◦ External entities (e.g., other systems, devices, people) that produce or consume information to be used by a computer-based system. ◦ Things (e.g, reports, displays, letters, signals) that are part of the information domain for the problem. ◦ Occurrences or events (e.g., a property transfer or the completion of a series of robot movements) that occur within the context of system operation. ◦ Roles (e.g., manager, engineer, salesperson) played by people who interact with the system. ◦ Organizational units (e.g., division, group, team) that are relevant to an application. ◦ Places (e.g., manufacturing floor or loading dock) that establish the context of the problem and the overall function of the system. ◦ Structures (e.g., sensors, four-wheeled vehicles, or computers) that define a class of objects or in the extreme, related classes of objects.
11
2.b Attributes Attributes describe an object that has been selected for inclusion in the analysis model. In essence, it is the attributes that define the object—that clarify what is meant by the object in the context of the problem space. For example, if we were to build a system that tracks baseball statistics for professional baseball players, the attributes of the object player would be quite different than the attributes of the same object when it is used in the context of the professional baseball pension system. In the former, attributes such as name, position, batting average, fielding percentage, years played, and games played might be relevant. ◦ For the latter, some of these attributes would be meaningful, but others would be replaced (or augmented) by attributes like average salary, credit toward full vesting, pension plan options chosen, mailing address, and the like.
12
2.c Operations Operations define the behavior of an object and change the object‘s attributes in some way. More specifically, an operation changes one or more attribute values that are contained within the object. Therefore, an operation must have "knowledge" of the nature of the object's attributes and must be implemented in a manner that enables it to manipulate the data structures that have been derived from the attributes. Although many different types of operations exist, they can generally be divided into three broad categories: ◦ (1) operations that manipulate data in some way (e.g., adding, deleting, reformatting, selecting), ◦ (2) operations that perform a computation, and ◦ (3) operations that monitor an object for the occurrence of a controlling event.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.