college/Summer-2024/CS-3443/Labs/Lab2/UML.html

67 lines
2.4 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>zfp106 UML Diagram for Lab2</title>
</head>
<body>
<h1 style="color: red; background: yellow">
Made with <u>infinite, undying, <i>hatred</i></u> in PlantUML (Lab2,
zfp106)
</h1>
<p>
Some notes on the decisions made here.
<table border=1>
<tr>
<th>Question</th>
<th>Answer</th>
</tr>
<tr>
<td>Why is <code>Starship</code> associated to <code>CrewMember</code> via
aggregation?</td>
<td>Because a <code>Starship</code> has 0 or more crew members and crew
members aren't dependent on a <code>Starship</code> to exist. It is possible for a
crew member to not be assigned to <i>any</i>
<code>Starship</code>.
</td>
</tr>
<tr>
<td>
Why is <code>Fleet</code> associated to <code>Starship</code> via aggregation?
</td>
<td>
Same reason as the previous. It is possible for a fleet to exist in name
only without any Starships contained within at all. A fleet is quite
literally an aggregation of any <i>n</i> number of ships in the first
place anyhow.
</td>
</tr>
<tr>
<td>Why does <code>Lab2</code> with its <code>main</code> method have a dependency
relationship with <code>Fleet</code>?</td>
<td>Because a near identical example of this relationship was in the slides. <q>We will
primarily use it for classes referenced in <strong><code>main</code></strong>.</q></td>
</tr>
<tr>
<td>Why don't you show associations/other connections to Java standard library classes like
<code>ArrayList</code>?
</td>
<td>Because we can keep going down that rabbit hole until infinity (or by my count in my IDE ~5 - 6 levels of
indirection from any given Java standard lib class to the bottom of the chain). I'm not interested in showing
the full diagram all the way down until we hit the base <code>Object</code> class.</td>
</tr>
</table>
</p>
<p><q>Your answers are wrong and you should feel bad.</q> Them's fighting words, and I have a
whole hill here to defend and die upon, sword gleaming in the midnight sun.</p>
<p><u>The actual UML diagram below:<u></p>
<img src="./Layout.svg" alt="Uml Diagram" />
</body>
</html>