88 lines
2.4 KiB
Plaintext
88 lines
2.4 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>)
|
|
+_load(manager: AssetManager)
|
|
- loadFleet(fleetData: InputStream)
|
|
- loadPersonnel(personnelData: InputStream)
|
|
}
|
|
|
|
skinparam classAttributeIconSize 0
|
|
class MainActivity {
|
|
#onCreate(savedInstanceState: Bundle)
|
|
- launchStarshipActivity(starship: Starship)
|
|
}
|
|
|
|
|
|
skinparam classAttributeIconSize 0
|
|
class StarshipActivity {
|
|
#onCreate(savedInstanceState: Bundle)
|
|
}
|
|
|
|
set namespaceSeparator none
|
|
entity activity_main.xml
|
|
set namespaceSeparator none
|
|
entity activity_starship.xml
|
|
|
|
Fleet o-- Starship
|
|
Starship o-- CrewMember
|
|
MainActivity ..> StarshipActivity
|
|
MainActivity --> Fleet
|
|
set namespaceSeparator none
|
|
MainActivity ..> activity_main.xml
|
|
StarshipActivity --> Starship
|
|
set namespaceSeparator none
|
|
StarshipActivity ..> activity_starship.xml
|
|
@enduml
|