List of commits:
Subject Hash Author Date (UTC)
uml folder updated f1a1e6532efb36ac4df1e20ebe6fc7dc21f3d70c Poonam Veeral 2020-04-07 19:55:02
img folder updated 57c7ea4b6eebae552a5ca1667ccdba7c16f18a9d Poonam Veeral 2020-04-07 19:42:45
img folder deleted 79804ff5740d2a8256dd42bfe909e9abd079bd01 Poonam Veeral 2020-04-07 19:41:58
Update lectures_notes.md 764f19778c397d6b592b88945e6c803ea9e33b75 poonamveeral 2020-04-07 19:23:21
Update lectures_notes.md 75ce1301b80c1f8a23dc88b9033c581b7c287de5 poonamveeral 2020-04-07 19:14:57
Update lectures_notes.md c568007f7cecde6171535a30b15f97bc6b561db0 Poonam Veeral 2020-04-07 19:06:47
img Folder Naming Convention Updated 76e82959772152908a87a52a0645783eb6afc0ed Poonam Veeral 2020-04-07 18:54:54
Rename Shiporder.xml to shipOrder.xml 5bc4b056c197102d04eedaac06272a344de7d63b poonamveeral 2020-04-07 18:33:27
Rename Customers.xml to customers.xml 67086df0a0bc3496bb83321a3d0686dadb782519 poonamveeral 2020-04-07 18:33:07
XML Folder Naming Convention Updated 400fae7b0a67422021a95c7759c86fd3a0eb7dc1 Poonam Veeral 2020-04-07 18:27:34
Java Folder Naming Convention Updated bf243536c63090c501bebc93c875ca3c71779afc Poonam Veeral 2020-04-07 18:13:45
Update Naming Convention.md 74ae9c3205601edf825cdcb2eeffca07f1177665 Poonam Veeral 2020-04-03 15:23:42
Naming Convention updated 78515aeb215f3452ddaf0515d91cd1a59a31eaf4 Poonam Veeral 2020-04-03 15:21:15
Update Naming Convention.md 29013aba758ca3d22485a6589a9b195258958673 Poonam Veeral 2020-04-03 14:11:45
Update Naming Convention.md 144fbcada5840e6890f38304cace5cdcbaf52446 poonamveeral 2020-04-03 14:10:21
Update Naming Convention.md 5d19c254522b98e4d980042e164ffb2a6072c01c poonamveeral 2020-04-03 14:10:03
Update Naming Convention.md 977625ed4b10f99748caad78b8fe770540c01302 Poonam Veeral 2020-04-03 14:09:30
Update Naming Convention.md e00585b18d48160e4bc3ded31be5943cc9c7f126 Poonam Veeral 2020-04-03 02:09:23
Update Naming Convention.md 2cd8d9a5d5749ffdf385a9eacd5ba58f36beaa58 Poonam Veeral 2020-04-03 02:03:20
Update Naming Convention.md f3c502f0fa100485bd1f11a8d9ed8623491a3c34 Poonam Veeral 2020-04-03 01:58:55
Commit f1a1e6532efb36ac4df1e20ebe6fc7dc21f3d70c - uml folder updated
Author: Poonam Veeral
Author date (UTC): 2020-04-07 19:55
Committer name: Poonam Veeral
Committer date (UTC): 2020-04-07 19:55
Parent(s): 57c7ea4b6eebae552a5ca1667ccdba7c16f18a9d
Signer:
Signing key:
Signing status: N
Tree: 1363bf614e394b9271869a9fef4e708b06ed4d63
File Lines added Lines deleted
notes/fig/uml/flight_02.tex 17 17
notes/lectures_notes.md 7 7
File notes/fig/uml/flight_02.tex renamed from notes/fig/uml/Flight_2.tex (similarity 96%) (mode: 100644) (index e2aaf71..c4d7815)
1 \documentclass[border=20pt]{standalone}
2 \input{template.def}
3
4 \begin{tikzpicture}
5 \begin{class}[text width=7cm]{Pilot}{0,0}
6 \attribute{Id : Integer}
7 \attribute{Name : String}
8 \attribute{Experience : Level}
9 \end{class}
10 \begin{class}{Plane}{11, 0}
11 \attribute{tailId : Integer}
12 \attribute{MaxSpeed : MPH}
13 \attribute{AirPlaneType: Model}
14 \end{class}
15 \association{Plane}{}{1..*}{Pilot}{0..1}{}
16 \end{tikzpicture}
17
1 \documentclass[border=20pt]{standalone}
2 \input{template.def}
3
4 \begin{tikzpicture}
5 \begin{class}[text width=7cm]{Pilot}{0,0}
6 \attribute{Id : Integer}
7 \attribute{Name : String}
8 \attribute{Experience : Level}
9 \end{class}
10 \begin{class}{Plane}{11, 0}
11 \attribute{tailId : Integer}
12 \attribute{MaxSpeed : MPH}
13 \attribute{AirPlaneType: Model}
14 \end{class}
15 \association{Plane}{}{1..*}{Pilot}{0..1}{}
16 \end{tikzpicture}
17
18 18 \end{document} \end{document}
File notes/lectures_notes.md changed (mode: 100644) (index 275b6d0..0c32f72)
... ... Exercise +.#
5877 5877 ~ ~
5878 5878 Consider the following diagram: Consider the following diagram:
5879 5879
5880 ![](fig/uml/Flight)
5880 ![](fig/uml/flight)
5881 5881
5882 5882 Give the number of attributes for both classes, and suggest two operations for the class that does not have any. Discuss the multiplicities: why did the designer picked those values? Give the number of attributes for both classes, and suggest two operations for the class that does not have any. Discuss the multiplicities: why did the designer picked those values?
5883 5883
 
... ... Solution +.#
6186 6186 As far as we know "hand" could refer to a card game, and "person" could refer to players. As far as we know "hand" could refer to a card game, and "person" could refer to players.
6187 6187 A straightforward representation of the same diagram as a U.M.L. class diagram could be: A straightforward representation of the same diagram as a U.M.L. class diagram could be:
6188 6188
6189 ![](fig/uml/Hand)
6189 ![](fig/uml/hand)
6190 6190
6191 6191 Note that we could convey more information, for instance by using aggregation, or even composition, but, without more information about those entities and this relationship, it may be safer not to make any additional supposition. Note that we could convey more information, for instance by using aggregation, or even composition, but, without more information about those entities and this relationship, it may be safer not to make any additional supposition.
6192 6192
 
... ... Solution +.#
6198 6198 Composition association: class does not exist without the association. Composition association: class does not exist without the association.
6199 6199
6200 6200 Solution +.# Solution +.#
6201 ~ ![](fig/uml/Generalization)
6201 ~ ![](fig/uml/generalization)
6202 6202 Because it avoids redundancy. Because it avoids redundancy.
6203 6203
6204 6204
6205 6205 Solution +.# Solution +.#
6206 ~ ![](fig/uml/Flight_2)
6206 ~ ![](fig/uml/flight_02)
6207 6207
6208 6208
6209 6209 ## Problems {-} ## Problems {-}
 
... ... Problem (From E.R. to relational schema and UML class diagram -- CAR\_INFO) +.#c
6732 6732
6733 6733 Consider the following E.R. schema for the CAR\_INFO database: Consider the following E.R. schema for the CAR\_INFO database:
6734 6734
6735 ![](fig/er/Car_Info)
6735 ![](fig/er/car_Info)
6736 6736
6737 6737 Note that a car can have at most one driver, $N$ passengers, $N$ insurances, and that car insurances exist only if they are "tied up" to a car (i.e., they are weak entities, and their identifying relationship is called "Insured"). Note that a car can have at most one driver, $N$ passengers, $N$ insurances, and that car insurances exist only if they are "tied up" to a car (i.e., they are weak entities, and their identifying relationship is called "Insured").
6738 6738
 
... ... Problem (From UML to relational model -- DRIVER) +.#UMLtoRELDriver
6801 6801 Consider the UML diagram below, and convert it to the relational model. Consider the UML diagram below, and convert it to the relational model.
6802 6802 Do not forget to indicate primary and foreign keys. Do not forget to indicate primary and foreign keys.
6803 6803
6804 ![](fig/uml/Driver)
6804 ![](fig/uml/driver)
6805 6805
6806 6806
6807 6807 ## Solutions to Selected Problems {-} ## Solutions to Selected Problems {-}
 
... ... Solution to [%D %n (%T)](#problem:carinfo)
7128 7128
7129 7129 Note that, during the coversion, we had to make "Insured Car" part of the primary key of CAR INSURANCE. Note that, during the coversion, we had to make "Insured Car" part of the primary key of CAR INSURANCE.
7130 7130
7131 ![](fig/uml/Car_Info)
7131 ![](fig/uml/car_info)
7132 7132
7133 7133 --- ---
7134 7134
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/caubert/CSCI_3410

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/caubert/CSCI_3410

Clone this repository using git:
git clone git://git.rocketgit.com/user/caubert/CSCI_3410

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main