Diagrams

Common software and data diagrams, drawn once and restyled by small diagram-style token files. Labels follow the EN / TH switch.

Bike-share class diagramA rider takes zero or more trips; each trip uses one bike and is composed of one or more waypoints. Bike is abstract; EBike extends Bike and implements the Chargeable interface.Rider- id: UUID- name: String+ startTrip(): TripTrip- startedAt: DateTime- distanceKm: Float+ end(): void«abstract»Bike- code: String- dockId: String+ unlock(): voidWaypoint- lat: Float- lng: Float«interface»Chargeable+ charge(): void+ level(): IntEBike- batteryPct: Int+ charge(): void10..*takes0..*1uses1..*
แผนภาพคลาสระบบจักรยานเช่าผู้ใช้หนึ่งคนเดินทางได้ศูนย์ครั้งขึ้นไป แต่ละการเดินทางใช้จักรยานหนึ่งคันและประกอบด้วยจุดผ่านอย่างน้อยหนึ่งจุด Bike เป็นคลาสนามธรรม EBike สืบทอดจาก Bike และอิมพลีเมนต์อินเทอร์เฟซ Chargeableผู้ใช้ (Rider)- id: UUID- name: String+ startTrip(): Tripการเดินทาง (Trip)- startedAt: DateTime- distanceKm: Float+ end(): void«abstract»จักรยาน (Bike)- code: String- dockId: String+ unlock(): voidจุดผ่าน (Waypoint)- lat: Float- lng: Float«interface»ชาร์จได้ (Chargeable)+ charge(): void+ level(): Intจักรยานไฟฟ้า (EBike)- batteryPct: Int+ charge(): void10..*เดินทาง0..*1ใช้1..*
Copied!

↑ ↓ to move · Enter to open · Esc to close