generated from leonetienne/LaTeX-Paper-template
feat: add class diagram
This commit is contained in:
parent
ac8d38a5c8
commit
a59bcc6e52
BIN
images/class-diagram.png
Normal file
BIN
images/class-diagram.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 364 KiB |
205
images/class-diagram.puml
Normal file
205
images/class-diagram.puml
Normal file
@ -0,0 +1,205 @@
|
|||||||
|
@startuml
|
||||||
|
|
||||||
|
!define IMPLEMENTED_COLOR cornsilk
|
||||||
|
!define OUT_OF_SCOPE_COLOR lightsteelblue
|
||||||
|
|
||||||
|
skinparam legendBackgroundColor black
|
||||||
|
|
||||||
|
class Category #OUT_OF_SCOPE_COLOR {
|
||||||
|
-uid: Int
|
||||||
|
-name: String
|
||||||
|
-description: String
|
||||||
|
+getUid(): String
|
||||||
|
+setUid(uid: String): void
|
||||||
|
+getName(): String
|
||||||
|
+setName(name: String): void
|
||||||
|
+getDescription(): String
|
||||||
|
+setDescription(description: String): void
|
||||||
|
}
|
||||||
|
|
||||||
|
class MasterRecord #OUT_OF_SCOPE_COLOR {
|
||||||
|
-properties: List<Property>
|
||||||
|
-mitgliedsnummer: Int
|
||||||
|
-fe_user: fe_user
|
||||||
|
+getProperties(): List<Property>
|
||||||
|
+setProperties(properties: List<Property>): void
|
||||||
|
+getMitgliedsnummer(): Int
|
||||||
|
+setMitgliedsnummer(nmr: Int): void
|
||||||
|
+getFeUser(): fe_user
|
||||||
|
+setFeUser(feUser: fe_user): void
|
||||||
|
}
|
||||||
|
|
||||||
|
class Address #OUT_OF_SCOPE_COLOR {
|
||||||
|
-street: String
|
||||||
|
-zip: String
|
||||||
|
-name: String
|
||||||
|
-city: String
|
||||||
|
+getStreet(): String
|
||||||
|
+setStreet(street: String): void
|
||||||
|
+getZip(): String
|
||||||
|
+setZip(zip: String): void
|
||||||
|
+getName(): String
|
||||||
|
+setName(name: String): void
|
||||||
|
+getCity(): String
|
||||||
|
+setCity(city: String): void
|
||||||
|
}
|
||||||
|
|
||||||
|
class Property #OUT_OF_SCOPE_COLOR {
|
||||||
|
-addresses: List<Address>
|
||||||
|
+getAddresses(): List<Address>
|
||||||
|
+setAddresses(addresses: List<Address>): void
|
||||||
|
}
|
||||||
|
|
||||||
|
class Winery #OUT_OF_SCOPE_COLOR {
|
||||||
|
-name: String
|
||||||
|
+getName(): String
|
||||||
|
+setName(name: String): void
|
||||||
|
}
|
||||||
|
|
||||||
|
class Grape #IMPLEMENTED_COLOR {
|
||||||
|
-uid: Int
|
||||||
|
-name: String
|
||||||
|
-description: String
|
||||||
|
+getUid(): Int
|
||||||
|
+setUid(uid: Int): void
|
||||||
|
+getName(): String
|
||||||
|
+setName(name: String): void
|
||||||
|
+getDescription(): String
|
||||||
|
+setDescription(description: String): void
|
||||||
|
}
|
||||||
|
|
||||||
|
class Vinesite #IMPLEMENTED_COLOR {
|
||||||
|
-uid: Int
|
||||||
|
-name: String
|
||||||
|
-description: String
|
||||||
|
+getUid(): Int
|
||||||
|
+setUid(uid: Int): void
|
||||||
|
+getName(): String
|
||||||
|
+setName(name: String): void
|
||||||
|
+getDescription(): String
|
||||||
|
+setDescription(description: String): void
|
||||||
|
}
|
||||||
|
|
||||||
|
class Participant #IMPLEMENTED_COLOR {
|
||||||
|
-uid: Int
|
||||||
|
-masterRecord: MasterRecord
|
||||||
|
+getUid(): Int
|
||||||
|
+setUid(uid: Int): void
|
||||||
|
+getMasterRecord(): MasterRecord
|
||||||
|
+setMasterRecord(masterRecord: MasterRecord): void
|
||||||
|
}
|
||||||
|
|
||||||
|
class WineProperty #IMPLEMENTED_COLOR {
|
||||||
|
-uid: Int
|
||||||
|
-name: String
|
||||||
|
-description: String
|
||||||
|
+getUid(): Int
|
||||||
|
+setUid(uid: Int): void
|
||||||
|
+getName(): String
|
||||||
|
+setName(name: String): void
|
||||||
|
+getDescription(): String
|
||||||
|
+setDescription(description: String): void
|
||||||
|
}
|
||||||
|
|
||||||
|
class Wine #IMPLEMENTED_COLOR {
|
||||||
|
-uid: Int
|
||||||
|
-name: String
|
||||||
|
-participant: Participant
|
||||||
|
-grapeVariety: Grape
|
||||||
|
-vinesite: Vinesite
|
||||||
|
-category: Category
|
||||||
|
-vintage: int
|
||||||
|
-quality: int
|
||||||
|
-taste: String
|
||||||
|
-properties: List<WineProperty>
|
||||||
|
-ap_nr: String
|
||||||
|
-acidity: float
|
||||||
|
-sugar: float
|
||||||
|
-alc: float
|
||||||
|
-price: float
|
||||||
|
-status: String
|
||||||
|
+getUid(): Int
|
||||||
|
+setUid(uid: Int): void
|
||||||
|
+getName(): String
|
||||||
|
+setName(name: String): void
|
||||||
|
+getParticipant(): Participant
|
||||||
|
+setParticipant(participant: Participant): void
|
||||||
|
+getGrapeVariety(): Grape
|
||||||
|
+setGrapeVariety(grapeVariety: Grape): void
|
||||||
|
+getVinesite(): Vinesite
|
||||||
|
+setVinesite(vinesite: Vinesite): void
|
||||||
|
+getCategory(): Category
|
||||||
|
+setCategory(category: Category): void
|
||||||
|
+getVintage(): int
|
||||||
|
+setVintage(vintage: int): void
|
||||||
|
+getQuality(): int
|
||||||
|
+setQuality(quality: int): void
|
||||||
|
+getTaste(): String
|
||||||
|
+setTaste(taste: String): void
|
||||||
|
+getProperties(): List<WineProperty>
|
||||||
|
+setProperties(properties: List<WineProperty>): void
|
||||||
|
+getApNr(): String
|
||||||
|
+setApNr(ap_nr: String): void
|
||||||
|
+getAcidity(): float
|
||||||
|
+setAcidity(acidity: float): void
|
||||||
|
+getSugar(): float
|
||||||
|
+setSugar(sugar: float): void
|
||||||
|
+getAlc(): float
|
||||||
|
+setAlc(alc: float): void
|
||||||
|
+getPrice(): float
|
||||||
|
+setPrice(price: float): void
|
||||||
|
+getStatus(): String
|
||||||
|
+setStatus(status: String): void
|
||||||
|
}
|
||||||
|
|
||||||
|
class Jahresauswahlprobe #IMPLEMENTED_COLOR {
|
||||||
|
-allowedVinesites: List<Vinesite>
|
||||||
|
-allowedCategories: List<Category>
|
||||||
|
-allowedGrapes: List<Grape>
|
||||||
|
-participatingWines: List<Wine>
|
||||||
|
-name: String
|
||||||
|
-description: String
|
||||||
|
-dateAllowRegistration_start: Date
|
||||||
|
-dateAllowRegistration_end: Date
|
||||||
|
-dateAllowShow_start: Date
|
||||||
|
-dateAllowShow_end: Date
|
||||||
|
+getAllowedVinesites(): List<Vinesite>
|
||||||
|
+setAllowedVinesites(allowedVinesites: List<Vinesite>): void
|
||||||
|
+getAllowedCategories(): List<Category>
|
||||||
|
+setAllowedCategories(allowedCategories: List<Category>): void
|
||||||
|
+getAllowedGrapes(): List<Grape>
|
||||||
|
+setAllowedGrapes(allowedGrapes: List<Grape>): void
|
||||||
|
+getParticipatingWines(): List<Wine>
|
||||||
|
+setParticipatingWines(participatingWines: List<Wine>): void
|
||||||
|
+getName(): String
|
||||||
|
+setName(name: String): void
|
||||||
|
+getDescription(): String
|
||||||
|
+setDescription(description: String): void
|
||||||
|
+getDateAllowRegistrationStart(): Date
|
||||||
|
+setDateAllowRegistrationStart(dateAllowRegistrationStart: Date): void
|
||||||
|
+getDateAllowRegistrationEnd(): Date
|
||||||
|
+setDateAllowRegistrationEnd(dateAllowRegistrationEnd: Date): void
|
||||||
|
+getDateAllowShowStart(): Date
|
||||||
|
+setDateAllowShowStart(dateAllowShowStart: Date): void
|
||||||
|
+getDateAllowShowEnd(): Date
|
||||||
|
+setDateAllowShowEnd(dateAllowShowEnd: Date): void
|
||||||
|
}
|
||||||
|
|
||||||
|
MasterRecord "1" --> "1" Participant
|
||||||
|
MasterRecord "1" --> "*" Property
|
||||||
|
Property "1" --> "*" Address
|
||||||
|
Property <|-- Winery
|
||||||
|
Category "1" --> "*" Wine
|
||||||
|
Grape "1" --> "*" Wine
|
||||||
|
Vinesite "1" --> "*" Wine
|
||||||
|
Participant "1" --> "*" Wine
|
||||||
|
WineProperty "1" --> "*" Wine
|
||||||
|
Jahresauswahlprobe "*" --> "*" Wine
|
||||||
|
|
||||||
|
legend right
|
||||||
|
<font color=white>Legend:</font>
|
||||||
|
<font color=IMPLEMENTED_COLOR>To implement</font>
|
||||||
|
<font color=OUT_OF_SCOPE_COLOR>Part of existing system</font>
|
||||||
|
end legend
|
||||||
|
|
||||||
|
@enduml
|
Loading…
x
Reference in New Issue
Block a user