68 lines
1.9 KiB
Plaintext
68 lines
1.9 KiB
Plaintext
@startuml
|
|
skinparam classAttributeIconSize 0
|
|
class CrewMember {
|
|
- name: String
|
|
- position: String
|
|
- rank: String
|
|
- species: String
|
|
- assignment: String
|
|
+ <<constructor>> CrewMember(name: String, position: String, rank: String, species: String, assignment: String)
|
|
+ <<constructor>> CrewMember(name: String, position: String, rank: String, species: String)
|
|
+ toString(): String
|
|
+ getName(): String
|
|
+ setName(name: String)
|
|
+ getPosition(): String
|
|
+ setPosition(position: String)
|
|
+ getRank(): String
|
|
+ setRank(rank: String)
|
|
+ getSpecies(): String
|
|
+ setSpecies(species: String)
|
|
+ getAssignment(): String
|
|
+ setAssignment(assignment: String)
|
|
}
|
|
|
|
skinparam classAttributeIconSize 0
|
|
class Starship {
|
|
- name: String
|
|
- registry: String
|
|
- starshipClass: String
|
|
- crew: ArrayList<CrewMember>
|
|
+ <<constructor>> Starship(name: String, registry: String, starshipClass: String)
|
|
+ toString(): String
|
|
+ addCrewMember(crewMember: CrewMember)
|
|
+ getNumberOfPersonnel(): Integer
|
|
+ getName(): String
|
|
+ setName(name: String)
|
|
+ getRegistry(): String
|
|
+ setRegistry(registry: String)
|
|
+ getCrew(): ArrayList<CrewMember>
|
|
+ setCrew(crew: ArrayList<CrewMember>)
|
|
+ getStarshipClass(): String
|
|
+ setStarshipClass(starshipClass: String)
|
|
}
|
|
|
|
skinparam classAttributeIconSize 0
|
|
class Fleet {
|
|
- name: String
|
|
- starships: ArrayList<Starship>
|
|
+ <<constructor>> Fleet(name: String)
|
|
+ toString(): String
|
|
+ getSizeOfFleet(): Integer
|
|
+ addStarship(starship: Starship)
|
|
+ getName(): String
|
|
+ setName(name: String)
|
|
+ getStarships(): ArrayList<Starship>
|
|
+ setStarships(starships: ArrayList<Starship>)
|
|
+ loadStarships(starshipsDirectory: String)
|
|
}
|
|
|
|
skinparam classAttributeIconSize 0
|
|
class Lab2 {
|
|
+ _ main(args: String[]): void
|
|
}
|
|
|
|
Fleet o-- Starship
|
|
Starship o-- CrewMember
|
|
Lab2 ..|> Fleet
|
|
@enduml
|