Sept 200592.3913 Ron McFadyen1 Class Diagram Comparing different models Well examine the ternary association from last day, and two other models. Often.

Slides:



Advertisements
Similar presentations
n-ary Relations and Their Applications
Advertisements

The Sports education model
Fantasy Sports Tel: , India: San Francisco Indore.
ER to Relational Mapping. Logical DB Design: ER to Relational Entity sets to tables. CREATE TABLE Employees (ssn CHAR (11), name CHAR (20), lot INTEGER,
Logical DB Design: ER to Relational Entity sets to tables. Employees ssn name lot CREATE TABLE Employees (ssn CHAR (11), name CHAR (20), lot INTEGER, PRIMARY.
Conceptual Design using the Entity-Relationship Model
Database Management Systems, R. Ramakrishnan and J. Gehrke1 The Entity-Relationship Model Chapter 2.
LCAHL 2005/06 Game Plan. Open Skate at JLA Are your 06 and 05 teams registered for the LCAHL this year? If your team has registered for the league.
Example 4 A National Hockey League team receives 2 points for each win (in regulation time or overtime), 1 point for each loss in overtime, and no points.
PAINTBALL Everything you never needed to know…. Common Perceptions A typical Paintballer.
The Entity-Relationship Model
Database Management Systems, R. Ramakrishnan and J. Gehrke1 The Entity-Relationship Model Chapter 2.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 The Entity-Relationship Model Chapter 2.
For the ultimate in entertainment, play with 2 or more people, individually or as a team Players alternate turns Each player picks an “answer” and must.
Binary Decision Diagrams1 BINARY DECISION DIAGRAMS.
Blending the Real and Virtual in Games: The Model of Fantasy Sports Frank Shipman Department of Computer Science & Center for the Study of Digital Libraries.
Modeling Data The Entity Relationship Model (ER) For Database Design.
The Entity-Relationship (ER) Model CS541 Computer Science Department Rutgers University.
Working as a Team. 2 Types of Conflict Cognitive – Positively related to decision quality and commitment Affective – Negatively related to decision quality.
Chapter 4 ENTITY-RELATIONSHIP MODELLING.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 The Entity-Relationship Model Chapter 2.
Modeling Your Data Chapter 2. Part II Discussion of the Model: Good Design/ Bad Design?
Chapter 4 Entity-Relationship modeling Transparencies © Pearson Education Limited 1995, 2005.
Instances and Object Diagrams Reporter: 陳雅萍. Abstractions and Instances Abstraction: the ideal essence of a thing Instance: a concrete manifestation of.
Entity Relationship Model Chapter 6. Basic Elements of E-R Model Entity Object of the real world that stores data. Eg. Customer, State, Project, Supplier,
ER to Relational Mapping. Logical DB Design: ER to Relational Entity sets to tables. CREATE TABLE Employees (ssn CHAR (11), name CHAR (20), lot INTEGER,
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 The Entity-Relationship Model Chapter 2.
Investigation #1 (cont.)
ER to Relational Translation COMSATS INSTITUTE OF INFORMATION TECHNOLOGY, VEHARI.
AP Statistics Section 6.3C More Conditional Probability
1919 New York Yankees Official Logo William Brennan Sports Finance February 6, 2014.
Positions for 100 Rules for 100 Teams for 100.
Yearbook Vocabulary!. Table of Contents This will appear in the front of the book and list all sections and which page numbers each section covers. Also.
SCORE TO WIN BIG By Ashley Nissenbaum. About the Authors  David J Berri, PhD  Associate Professor in the Department of Economics  Economics of Sports.
Christoph F. Eick: Designing E/R Diagrams 1 The Entity-Relationship Model Chapter 3+4.
© Pearson Education Limited, Chapter 7 Entity-Relationship modeling Transparencies.
1 Entity-Relationship Model © Pearson Education Limited 1995, 2005.
1 Conceptual Design using the Entity- Relationship Model.
Databases Illuminated Chapter 3 The Entity Relationship Model.
SOUTH JERSEY SOCCER LEAGUE OCTOBER 2015 GM MEETING.
Multiplication Facts. 9 6 x 4 = 24 5 x 9 = 45 9 x 6 = 54.
TODAY WE ARE GOING TO PLAY….. “NAME THAT PROPERTY!”
Portfolio HMRL 1010 Your Name Here. Section A Self Presentation and Job Seeking Skills.
IST 220 – Intro to Databases Database Design I. DB Design – Sports League The league needs to keep track of Teams Players Coaches Sponsors How many tables.
Multiplication Facts. 2x2 4 8x2 16 4x2 8 3x3.
Multiplication Facts Review: x 1 = 1 10 x 8 =
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 The Entity-Relationship Model Chapter 2.
Rhyme Time. Song WordRhymeStudent ChairBearNeil CatGatoMaria BallFallShayl MatBatEthan EatFoodSuki TreeArbolGabi PigSigJohn During music time, children.
Multiplication Facts All Facts. 0 x 1 2 x 1 10 x 5.
Chapter # 3 Data Modeling Using the Entity-Relationship (ER) Model
Multiplication Facts.
Today we are going to play…..
Entity-Relationship Modeling
Multiplication Facts.
National Development League Application
 Real Madrid.  Contents:  About the team.  Facts.
Entity/Relationship Model
Seminar 4 UML Object Diagram.
Electoral College Simulation
Today we are going to play…..
The Entity-Relationship Model
Multiplication Facts.
SQL Tables and Constraints Example
Lesson 3: Entering Data in
Entity-Relationship Diagram (ERD)
Sample Test Questions Please identify the use cases of the system that cover all the behaviors described in the system specification. Please identify.
Class Diagram Begins as a conceptual or analysis class model and evolves to a design class model Used throughout the development process. More detail added.
Investigation on wins Kayla Brownfield DSCI 101 Fall 2018
Portfolio HMRL 1010 Your Name Here.
Relationships—Topics
Presentation transcript:

Sept Ron McFadyen1 Class Diagram Comparing different models Well examine the ternary association from last day, and two other models. Often ternary examples appear in texts without any real context. We will think now of the goalie statistics in a larger framework. To determine which model is best or better means we have to consider the business rules that are reflected in a model. What business rules do we need in a hypothetical system?

Sept Ron McFadyen2 Class Diagram N-ary associations Consider a team, its goalies, and the season. We could record the performance of each goalie for each team and each season. Team Year * Player * * goalie Record goalsFor goalsAgainst Wins Losses ties season team Model A – from last day A ternary association capturing an interaction amongst 3 objects. This model may only be good for capturing goalie statistics by team, by season

Sept Ron McFadyen3 Class Diagram Now, consider binary associations only Consider some other business rules: BR: Each season teams register to participate in the sports league. TeamYear ** Note that we could use an association class for additional attributes to describe the association, or for the association participate in associations Note that this business rule wasnt covered in the Model A seasonteam Model B

Sept Ron McFadyen4 Class Diagram Using binary associations Consider business rules: BR: Each year each registered team has players and some of these will play as goalies. Note that a goalie could play on multiple teams each year. Player * goalie TeamYear ** RegTeam seasonteam *playsAsGoalie registers Model B Now we are also capturing the fact that registered teams have goalies

Sept Ron McFadyen5 Class Diagram Using binary associations Consider business rules: BR: Each registered team keeps statistics for each goalie Player * goalie Record goalsFor goalsAgainst Wins Losses ties TeamYear ** RegTeam * seasonteam Model B

Sept Ron McFadyen6 Class Diagram Using binary associations Its clear with this model that we are recording registered teams separately from the performance statistics of goalies. Model A does not facilitate team-related information. RegTeam is a place to keep information such as president, colours, homeField Player * goalie Record goalsFor goalsAgainst Wins Losses ties team TeamYear ** RegTeam * seasonteam Model B

Sept Ron McFadyen7 Class Diagram Model C, another alternative One binary association between Year and Team, and a 3-ary (ternary) association amongst Year, Team, and Player Player * goalie Record goalsFor goalsAgainst Wins Losses ties team TeamYear ** * seasonteam * season RegTeam Which model is better, model B or model C? Does model C allow some connections that model B does not?