Preview

Class and Entity-Relationship Diagrams

Powerful Essays
Open Document
Open Document
1815 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Class and Entity-Relationship Diagrams
Tutorial Week 7 - Class and Entity-Relationship Diagrams

1 Class Diagrams and Entity Relationship Diagrams (ERD)
Class diagrams and ERDs both model the structure of a system. Class diagrams represent the dynamic aspects of a system: both the structural and behavioural features.
ERDs, depicting only structural features provide a static view of the system.

2 Class Diagrams
2.1 Elements of a class diagram:
2.1.1 class
A class is a general concept (represented as a square box).
A class defines the structural attributes and behavioural characteristics of that concept. Shown as a rectangle labeled with the class name.

Class Name

2.1.2 association
Class 1

Class 2

A (semantic) relationship between classes.
A line that joins two classes.

Food

Simple association between two classes. A solid triangle with the association name indicates the direction in which the association is meant to be read.

Class 2

Association

n-ary Association expresses an association between multiple classes

Member

“has-a” relationship

2.1.2.1 binary
Person

Eats

2.1.2.2 n-ary
Class 1 n-ary Class 3

2.1.2.3 Aggregation
Team

page 1 of 14

Tutorial Week 7 - Class and Entity-Relationship Diagrams

2.1.2.4 Composition
Car

“is-composed-of” relationship

Engine

2.1.2.5 Generalization
Car

“is-a-kind-of” relationship

Volvo

2.1.2.6 Dependency
The source class depends on (uses) the target class. (not used for requirements analysis) Project

Project Manager

Team

2.1.2.7 Realization
Class supports all operations of target class but not all attributes or associations.
(not used for requirements analysis)

«datatype»
Human Resources

«datatype»
Project Manager

Worker

«datatype»
System Administrator

page 2 of 14

Tutorial Week 7 - Class and Entity-Relationship Diagrams

2.1.2.8 Association Classes
Can be applied to binary or n-ary associations. Used to capture the attributes of an

You May Also Find These Documents Helpful

  • Good Essays

    CH 11 12 13 DIAGRAM

    • 351 Words
    • 2 Pages

    The above data represents a MRP applied to an imperfect product market. As more products are sold, the price decreases. Given a MCF of $20 _____________ workers would be hired. 4…

    • 351 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    IST223 Crib sheet

    • 3425 Words
    • 7 Pages

    rectangles, and relationships are shown by lines between the rectangles. Attributes are generally listed within the rectangle. The many side of many relationships is represented by a crows footentity-relationship (E-R) modelA set of constructs and conventions used to create data models. The things in the users world are represented by entities, and the associations among those things are represented by relationships. The results are usually documented in an entity-relationship (E-R) diagramID-dependent entityan entity whose identifier includes the identifier of another entityidentifierwhich are attributes that name, or identify, entity instancesidentifying relationshipIn such relationships, the parent is always required, but the child (the ID-dependent entity) may or may not be required, depending on application requirements. Identifying relationships are shown with solid lines in E-R diagrams.is-aRelationships among supertype/subtype entitiesmandatoryat least one entity instance must participate in the relationshipmaximum cardinalityThe maximum cardinality is the maximum number of entity instances that can participate in a relationship instance.minimum cardinalityThe minimum cardinality is the minimum number of entity instances that must participate in a relationship instance.nonidentifying relationshiprelationship drawn with a dashed line (refer to Figure 5-7) is used between strong entities and is called a nonidentifying relationship because there are no ID-dependent entities in the relationship.null valueare a problem because they are ambiguous. They can mean that a value is inappropriate, unknown, or known, but not yet been entered into the databaseparentAn entity or row on the one side of a one-to-many relationshiprecursive relationshipoccurs when an entity type has a relationship to itself.relationship classAssociations among entity classesrelationship instanceassociations among entity instances.strong entityan entity that represents something that can exist…

    • 3425 Words
    • 7 Pages
    Powerful Essays
  • Powerful Essays

    It is thought that Richard will experience the connection between his early experiences of abandonment and his current difficulties as he allows himself to experience and accept the pain of his lost childhood, and the anger he felt toward his parents for the constant fighting in the house and for not loving and caring for him. During these times it would be important for the therapist to assured Richard that regardless of the parents’ problems, their behavior had been wrong and that as a child he deserved better. This would serve as a corrective emotional experience. It is believed that Richard would eventually be able to understand that his anger was justified and that another person, the therapist, was able to accept him with his anger whereas in the past he interpreted his feelings of anger as further proof of his badness and feared that if the parents knew of this anger they would further reject…

    • 2558 Words
    • 11 Pages
    Powerful Essays
  • Satisfactory Essays

    16) The owner of two pizza parlors located in adjacent towns wants to computerize and integrate sales transactions and inventory management within and between both stores. The point-of-sale component must be easy to use and flexible enough to accommodate a variety of pricing strategies and coupons. The inventory management, which will be linked to the point-of-sale component, must also be easy to use and fast. The systems at each store need to be linked so that sales and inventory levels can be determined instantly for each store and for both stores combined. The owner can allocate $40,000 for hardware and $20,000 for software and must have the new system operational in three months. Training must be short and easy. Briefly describe three alternative systems for this situation and explain how each would meet the requirements and constraints. Are the requirements and constraints realistic? Why or why not?…

    • 334 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Meaningful connections between students, teachers, and families are critical to trust, respect, engagement, respect, and responsibility. “A strong relationship with an educator can be key in a students’ academic success” (Blankstein, 2015, p. 169). Meaningful connections occur when teachers listen as students communicate their personal interest. Attending or participating in activities students enjoy participating in furthers the creation of meaningful connections. Teachers should model perseverance and hard work as well as establishing these traits as expectations for student work. “In addition to care, it is important to build upon students’ experiences and interests” (Blankstein, 2015, p. 168). The student needs to feel connected to the…

    • 307 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Object Relation Theory

    • 68 Words
    • 1 Page

    Another theory that equates childhood experiences to adulthood domestic abuse is Object Relations Theory. This theory asserts that the relationships we form with others during childhood are the psychological blueprints for our future relationships. These theorists argue that relationships with primary care givers in the earliest stages of life are the basis for which individuals learn to see themselves and others, and attach certain emotions to these…

    • 68 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    She experiences considerable anxiety in interpersonal situations. In addition she has feelings of inadequacy, worthlessness and hopelessness. These difficulties lead to academic concerns and relational problems in her current situation. Her self-esteem is extremely low and she expressed that she hates doubting herself constantly.…

    • 5176 Words
    • 21 Pages
    Good Essays
  • Powerful Essays

    Object Relations Theory

    • 14765 Words
    • 60 Pages

    Copyright © 1996 by the Institute of Advanced Psychological Studies. All rights reserved. Except as permitted under the United States Copyright Act of 1976, no part of this publication may be reproduced or distributed in any form or by any means, or stored in a data base or retrieval system, without the prior written permission of the publisher.…

    • 14765 Words
    • 60 Pages
    Powerful Essays
  • Good Essays

    As we have seen, “the concept of object relations stems from psychoanalytic instinct theory. The “object” of an instinct is the agent through which the instinctual aim is achieved, and the agent is usually conceived as being another person. It is generally agreed that the infant’s first object is his mother. The origin of object relations lies in the first year of life, and most, although not all, psychoanalysts have viewed the infant’s initial relationship with his mother as being essentially oral in nature. The major theoretical division, however, is between those who hold that there are at least prototypical object relations from the beginning and those who hold that “true” object relations grow out of and supplant the infant's earlier dependency relationship with his mother” Salter Ainsworth, M. D. (1969, p. 1)…

    • 591 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Relationship Analysis

    • 1053 Words
    • 5 Pages

    The type of relationship I will be analyzing is my friendship with Jeremy Orner. The relationship model that best describes this relationship would be the one developed by Mark Knapp (Knapp & Vangelisti, 2006) who broke down relationship development into ten steps. This model explains friendship throughout our ten years as friends, so far we have been through 9 of the ten steps; Initiating, Experimenting, Intensifying, Integrating, Bonding, Differentiating, Circumscribing, Stagnating, and Avoiding, Terminating would be the last step we have not gone through yet. I will describe all the stages that we have been through individually in each of the following paragraphs.…

    • 1053 Words
    • 5 Pages
    Good Essays
  • Good Essays

    Context Data Flow Diagram

    • 290 Words
    • 2 Pages

    Master files, transaction files. Any process that operates at two different times must be connected by a data source.…

    • 290 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Entity Relation Diagram structures and notations are different at least five features. Some allow attributes in a relationship, how they represent cardinality and participation constraints, the place where they specify constraints, or they portray overlapping and split subclass entity-types, or they show total or partial narrowing down, and whether they model the foreign key at the ERD level.…

    • 336 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    The figure 5.6 represents the class diagram of the project. Various classes are User, Event, Administrator, Animal, Disease, etc. The user can be a guest user, registered user, a member user or an administrator. The Animal class is associated with the Disease class.…

    • 1000 Words
    • 4 Pages
    Powerful Essays
  • Good Essays

    Melanie Klein is an Austrian-British psychologist, and is one of the many physiologists responsible for developing theories still followed today by current practising psychologists, and is best known for her research in Play Therapy andObject Relations.…

    • 548 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Class Diagram

    • 1615 Words
    • 7 Pages

    There are many different methodologies that can be used by a CDSS in order to provide support to the health care professional.[8]…

    • 1615 Words
    • 7 Pages
    Good Essays

Related Topics