Skip to content

Commit

Permalink
deploy: 1daf642
Browse files Browse the repository at this point in the history
  • Loading branch information
pintergreg committed Sep 29, 2024
1 parent e4986db commit f280d0d
Show file tree
Hide file tree
Showing 9 changed files with 98 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lectures/06_uml.html
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,8 @@ <h2 id="relations"><a class="header" href="#relations">relations</a></h2>
</div>
<h2 id="class-diagram---example"><a class="header" href="#class-diagram---example">class diagram - example</a></h2>
<img src="figures/uml/class_example.svg" height="450" />
<h2 id="class-diagram---example-1"><a class="header" href="#class-diagram---example-1">class diagram - example</a></h2>
<img src="figures/uml/class_example_2.svg" height="450" />
<h1 id="object-diagram"><a class="header" href="#object-diagram">object diagram</a></h1>
<ul>
<li>special case of a class diagram</li>
Expand Down
43 changes: 43 additions & 0 deletions lectures/figures/uml/class_example_2.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
@startuml
skin rose

class Car {
string model
}

class Person {
}

class Wheel {
Float diameter
}

package roles {
interface Driver {
void drive()
}
interface CarOwner {
List cars
}
}

abstract Human {
String name
}

class License {
Date validity
}

Car "1" *- "4" Wheel : have
Car -- CarOwner : < owns

Human <|-- Person
Person <|-- Driver
Person <|-- CarOwner
License --o Driver

Driver - Car : drives >
@enduml
1 change: 1 addition & 0 deletions lectures/figures/uml/class_example_2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions print.html
Original file line number Diff line number Diff line change
Expand Up @@ -3453,6 +3453,8 @@ <h2 id="relations"><a class="header" href="#relations">relations</a></h2>
</div>
<h2 id="class-diagram---example"><a class="header" href="#class-diagram---example">class diagram - example</a></h2>
<img src="lectures/figures/uml/class_example.svg" height="450" />
<h2 id="class-diagram---example-1"><a class="header" href="#class-diagram---example-1">class diagram - example</a></h2>
<img src="lectures/figures/uml/class_example_2.svg" height="450" />
<h1 id="object-diagram"><a class="header" href="#object-diagram">object diagram</a></h1>
<ul>
<li>special case of a class diagram</li>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion searchindex.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions slides/06_uml.html
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,10 @@ <h2>relations</h2>
<section id="class-diagram---example" class="slide level2">
<h2>class diagram - example</h2>
<p><img data-src="figures/uml/class_example.svg" height="450" /></p>
</section>
<section id="class-diagram---example-1" class="slide level2">
<h2>class diagram - example</h2>
<p><img data-src="figures/uml/class_example_2.svg" height="450" /></p>
</section></section>
<section id="object-diagram" class="title-slide slide level1">
<h1>object diagram</h1>
Expand Down
43 changes: 43 additions & 0 deletions slides/figures/uml/class_example_2.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
@startuml
skin rose

class Car {
string model
}

class Person {
}

class Wheel {
Float diameter
}

package roles {
interface Driver {
void drive()
}
interface CarOwner {
List cars
}
}

abstract Human {
String name
}

class License {
Date validity
}

Car "1" *- "4" Wheel : have
Car -- CarOwner : < owns

Human <|-- Person
Person <|-- Driver
Person <|-- CarOwner
License --o Driver

Driver - Car : drives >
@enduml
Loading

0 comments on commit f280d0d

Please sign in to comment.