Na základě zadání vytvořte v CASE nástroji Astah: A. Diagram případů užití včetně popisu případů B. Konceptuální diagram tříd
Zadání praktického testu z UML
- Hráči se účastní různých her jako konkurenti na trhu.
- Hráč nejprve najde otevřenou hru a přihlásí se do ní.
- Hra je vždy určitého typu, který je dán délkou trvání a počátečním rozpočtem hráčů.
- Hru hraje několik hráčů a probíhá od určitého data.
- Hráč má daný rozpočet pro každou novou hru.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:y="http://www.yworks.com/xml/graphml" | |
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd"> | |
<key for="node" id="d0" yfiles.type="nodegraphics"/> | |
<key for="edge" id="d1" yfiles.type="edgegraphics"/> | |
<graph id="dependencies" edgedefault="directed"> | |
<node id="1364058917"> | |
<data key="d0"> | |
<y:ShapeNode> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PersonBuilder builder = new PersonBuilder(); | |
Person bob = builder.firstName("Bob") | |
.lastName("Builder") | |
.age(33) | |
.description("Man, I love building stuff!") | |
.build(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Person { | |
private final String firstName; | |
private final String lastName; | |
private final String description; | |
private final int age; | |
private Person(Builder builder) { | |
firstName = builder.firstName; | |
lastName = builder.lastName; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Person { | |
private final String firstName; | |
private final String lastName; | |
private final String description; | |
private final int age; | |
public Person(String firstName, String lastName) { | |
this(firstName, lastName, "No description available"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private Person john = new Person(); | |
john.setFirstName("John"); | |
john.setLastName("Smith"); | |
john.setAge(33); | |
john.setDescription("I am a huge fan on JavaBeans convention!"); |