滴滴打车设计类图
2023-05-16 16:00:17 1 举报
设计类图
作者其他创作
大纲/内容
-driverId
Agree Order
-orderId:Integer-driverId:Integer+agreeTime:Date
+getAgreeTime():Date+setAgreeTime(agreeTime:Date):void
1
-customerId
Call
-customerId:Integer+callTime:Date
+getCallTime():Date+setCallTime(callTime:Date):void
Customer
-customerId:Integer-customerName:String-customerPhone:String-customerLocation:String
+getCustomerId():Integer+setCustomerId(customerId:Integer):void+getCustomerName():String+setCustomerName(customerName:String):void+getCustomerPhone():String+setCustomerPhone(customerPhone:String):void+getCustomerLocation()0:String+setCustomerLocation(customerLocation:String):void
1..*
+distance-locationId
0..*
End Location
-longitudeEnd:Float-latitudeEnd:Float
+getLongitudeEnd():Float+setLongitudeEnd(longitudeEnd:Float):void+getLatitudeEnd():Float+setLatitudeEnd(latitudeEnd:Float):void
Location
-locationId:Integer-longitudeStart:Float-latitudeStart:Float-longitudeEnd:Float-latitudeEnd:Float+distance:Float
+getLocationId():Integer+setLocationId(locationId:Integer):void+getDistance():Float+setDistance(distance:Float):void
2
Car
-carId:Integer-carNumber:String-driverId:Integer+carType:String
+getCarId():Integer+setCarId(carId:Integer):void+getCarNumber():String+setCarNumber(carNumber:String):void+getCarType():String+setCarType(carType:String):void
Order
-orderId:Integer-customerId:Integer-driverId:Integer-locationId:Integer+distance:Float+goingTime:Date
+getOrderId():Integer+setOrderId(orderId:Integer):void+getGoingTime():Date+setGoingTime(goingTime:Date):void
Account Order
-orderId:Integer-driverId:Integer+money:Float+accountTime:Date
+getAccountTime():Date+setAccountTime(accountTime:Date):void
Pay
-orderId:Integer-customerId:Integer+money:Float+paymentWay:String
+getMoney():Float+setMoney(money:Float):void+getPaymentWay():String+setPaymentWay(paymentWay:String):void
Driver
-driverId:Integer-driverName:String-driverPhone:String-carId:In'te'ge'r'-carNumber:String-driverLocation:String
+getDriverId():Integer+setDriverId(driverId:Integer):void+getDriverName():String+setDriverName(driverName:String):void+getDriverPhone():String+setDriverPhone(driverPhone:String):void+getDriverLocation():String+setDriverLocation(driverLocation:String):void
Route
-customerLocation:String-driverLocation:String
-longtitudeStart-latitudeStart
Cancel Order
-customerId:Integer-orderId:Integer+cancelReason:String+cancelTime:Date
+getCancelReason():String+setCancelReason(cancelReason:String):void+getCancelTime():Date+setCancelTime(cancelTime:Date):void
Evaluate
-customerId:Integer-driverId:Integer+content:String+evaluateTime:Date
+getContent():String+setContent(content:String):void+getEvaluateTime():Date+setEvaluateTime(evaluateTime:Date):void
Start Location
-longitudeStart:Float-latitudeStart:Float
+getLongitudeStart():Float+setLongitudeStart(longitudeStart:Float):void+getLatitudeStart():Float+setLatitudeStart(latitudeStart:Float):void
-longtitudeEnd-latitudeEnd
滴滴打车设计类图
0 条评论
下一页
为你推荐
查看更多