a
vi
d
re
sha
Class Diagram Examples
as
w
m e
co rc
o. ou
er res
eH y
rs ud
ou st
is
Th
https://www.coursehero.com/file/50001899/05-ModelingExamplespdf/
a
vi
Elections Management System
d
The Ootumlia Elections Commission is designing a system to manage elections. The system
re
will manage elections for a variety of different elected bodies (e.g. school boards, city
ha
councils, etc.). Each elected body can have various positions (also called seats, e.g. mayor,
councillor, etc.). Elections are scheduled for a specific date, and usually several (or all)
s
positions are voted on together; however, sometimes there may be the need for a by-election
as
(e.g. to elect a particular councillor because the incumbent – the previous person who held
w
the position – has resigned). The system will keep track of candidates for each seat. The
m e
system will also record who is the incumbent for a seat, since newspaper reporters are
co rc
interested in reporting whether incumbents have won again or lost. The system records the
o. ou
name and address of each candidate and incumbent. The system will also keep track of the list
of eligible voters. Each voter can only vote for certain positions (e.g. a particular council seat
er res
that represents their area). Each voter is also assigned to vote at a specific poll – each poll has
a number and is located in a polling station. The system records the name and address of each
eH y
voter. Finally, the system will keep track of the number of votes for each candidate at each
rs ud
poll. However, under no circumstance will it record which voter voted for which candidate, nor
ou st
whether a voter voted at all.
is
Th
https://www.coursehero.com/file/50001899/05-ModelingExamplespdf/
a
ByElection
vi
A person has one or two
roles
d
Election commision
re
Person 1 1..2
Person Role
Name Election
ha
Address date
Nomination
s
as
* * Seat
Voter Candidate Elected Body
Incumbent * 1
w
* *
m e
Voter
Registration
co rc
o. ou
*
Poll
er res
NumVotes
NumVotesXSeat
Seat Zoning
*
eH y
1
rs ud
Polling Station *
ou st
is
Th
https://www.coursehero.com/file/50001899/05-ModelingExamplespdf/
a
vi
Nick is incumbent for Mayer and is nominated for Mayer seat, he is also voting in Poll1, part of PollingStation2.
d
Sou is a voter, voting in Poll2, part of PollingStation2. Nick’s Seat is voted for in polling station 2. XX1 & XX2 are
re
also candidates for Mayor, not shown in the object diagram for space reason.
s ha
as
w
m e
co rc
o. ou
er res
eH y
rs ud
ou st
is
Th
https://www.coursehero.com/file/50001899/05-ModelingExamplespdf/
a
vi
Investments System for OOBank
d
OOBank has a separate investment division. This division manages various mutual
re
funds in which investors may invest and also looks after the investment portfolios of
ha
investors. An investor may at any point in time have several investment advisors. These
help the investor decide in what to invest. Different investment advisors specialize in
s
as
different types of investments. Investors make a series of transactions and may have to
pay a commission on each transaction. The commission is paid to the investment
w
advisor that arranged the transaction. For each investment the system must keep track
m e
of the number of shares (also called units) in addition to the amount the investment is
co rc
worth today and the amount originally invested. Each mutual fund invests its money in
o. ou
various securities. The securities can be stocks, bonds or other mutual funds. We must
be able to calculate the original amount invested in each security as well as how much
er res
that investment is worth today. Each mutual fund may have several investment
advisors that help the fund decide what securities in which to invest. The mutual funds
eH y
in which investors invest may be managed by OOBank or by some other company. Each
rs ud
mutual fund company may manage several mutual funds.
ou st
is
Th
https://www.coursehero.com/file/50001899/05-ModelingExamplespdf/
a
vi
Advisor
Speciality[3]
d
re
*
ha
* Shares
s
* <<interface>> 1 * #Unitd * 1 <<interface>>
Investment Portfolio $cost Security
as
w
1
m e
Investment /division Investor Portfolio Mutual Fund Stock Bond
1 co rc Unit Price Unit Price Unit Price
o. ou
er res
* Investor
eH y
rs ud
ou st
is
Th
https://www.coursehero.com/file/50001899/05-ModelingExamplespdf/
a
OO Investor, has OO Investor Portfolio, which has OO Advisor. The OO Investor Portfolio has shares in OOMF
vi
mutual fund, which has shares in MF1, MF2, OOBOnd, OOStock. MF2 has shares in Bond2, and MF1 has
shares in Stock2
d
re
ha
OO Advisor MF2 Bond2
s
OO MF MF1 Stock2
as
OO BOND
w
OO Investor Portfolio
OO Stock
m e
co rc
o. ou
er res
OO Investor
eH y
rs ud
ou st
is
Th
https://www.coursehero.com/file/50001899/05-ModelingExamplespdf/
a
vi
d
Manufacturing Plant Controller
re
This system will be used to manage and control the production processes at Use Case
ha
Industries’ manufacturing plant. The plant makes several types of mechanical devices. It has
10 assembly lines, each of which can be used in the manufacturing of any of its products. An
s
assembly line is allocated to a product for a fixed period of time (anywhere from a few hours
as
to a few days) – this is called a product run. During a product run, the assembly line makes a
w
specified number of units of the product. Each product is assembled in several steps. As the
product-under-construction moves down the assembly line, it will be worked on in turn by a
m e
series of robots. Each robot completes one step before the product moves on to the next step
co rc
(and a different robot). Each robot is dedicated to just one manufacturing step. Each product
o. ou
is composed of parts. Parts may be bought from suppliers, or they may in fact be smaller
products that are built by this company (in earlier product runs). In each manufacturing step,
er res
a given subset of these parts is put together. Parts waiting for assembly are kept in numbered
bins; the robots know which bins to go to in order to get the required parts. Each completed
eH y
assembly is given a serial number. When orders for products are filled, the serial numbers of
rs ud
the products sold are recorded with the order.
ou st
is
Th
https://www.coursehero.com/file/50001899/05-ModelingExamplespdf/
a
vi
d
re
Woodworking design system
This program is designed to let carpenters, cabinet makers and other wood craftspeople perform
ha
computer aided design. The system allows you to make and store any number of designs. Designs
s
can also have design variants (most of the design is the same) but some parts have substitutions. A
as
design comprises a series of atomic components (pieces of wood, metal hardware attached to the
w
wood, and a few other types of things). Designs are also broken down into a hierarchy of
assemblies. Assemblies and components can also be reused in different assemblies. Each piece of
m e
co rc
wood is described in terms of its 3-D geometry, the recommended type of wood, and the
sequence of cuts and other operations required in order to make it. The 3-D geometry is described
o. ou
in terms of arcs and line-segments that connect to each other at vertices. A group of arcs or line
er res
segments outline a face. Junctions between pieces of wood are described in terms of the faces
that touch each together. The system allows its users to do a wide variety of operations to create
eH y
and edit designs. Also, the system can visually display a design (or assembly, or component) in
rs ud
three dimensions (allowing the user to rotate it in space), and as various two-dimensional
projections.
ou st
is
Th
https://www.coursehero.com/file/50001899/05-ModelingExamplespdf/
Powered by TCPDF (www.tcpdf.org)