Repair the flaws in the following bad models.
Using text analysis, analysis patterns, and common sense, translate the following domain descriptions from English into UML class and object diagrams.
Recall that a class diagram models general concepts (T-Box), while an object diagram models assertions about specific objects in a specific domain (A-Box).
Banks manage accounts and account holders. Every account is held by an account holder. Every account holder holds one or more accounts. An account has a balance of type Money, an identification number, and a statement. A statement is a list of transactions. A transaction represents a transfer of funds to or from some other account at a particular time.
Using your class diagram as a template, translate the following assertions into an object diagram:
Smith and Jones are account holders at Central Bank. Each has one account. Smith's accoount has a balance of $1000. Jones' account has a balance of $500. On June 1, 2007 $500 was transferred from Smith's account to Jones' account.
An outlet sells tickets to events. An event takes place in a venue at a certain time. A venue has zero or more seats. A ticket has a price and a seat. A competition is an event. A performance is an event.
A performance has a description. Plays, concerts, and dances are performance descriptions. A play has a playwright and a cast of characters. Each character is played by an actor. Playwrights and actors are persons.
A league has many conferences. A conference has many divisions. A division has many teams. A team has many positions. A position is played by a player. A player has a name and a number.
Using your class diagram as a template, translate the following assertions into an object diagram:
The National Football Leagues (NFL) is organized into the American Football Conference (AFC) and the National Football Conference (NFC). Both leagues have Eastern, Central, and Western divisions. The Oakland Raiders and the Kansas City Chiefs are teams in the Western Division of the AFC. Ken Stabler, #12, is the quarterback for the Raiders.
A computer hosts a web server that manages many resources. These resources include documents, applications, and services. Each resource has a method called exec that returns a document as an output. (For a document this method returns the document itself.) The web server associates a unique URL with each resource it manages and provides a method called getResource, which takes a URL as input and produces a document as an output.
Using your class diagram as a template, translate the following assertions into an object diagram:
The computer mojo.aua.am runs an Apache web server that manages two web pages (docs/index.html and docs/info.html) and a web application (app/sql).
Patient, Doctor, and Nurse are some of the roles people play in a hospital. Doctors prescribe tests, nurses administer tests, and patients take tests. A test is administered on a specific date. There are two types of tests: measurements (temperature, for example) and categorizations (blood type, for example). The result of a measurement is a quantity. A quantity is a number together with a unit (degrees centigrade, for example). The result of a categorization is a category (A, B, AB, O, for example.)
Using your class diagram as a template, translate the following assertions into an object diagram:
Joe Smith is a patient at