团队项目讨论及计划修订版
項目選題:
電梯調度算法的實現和測試
項目背景:
Imagine we’re building a tall office building,?it has the following configuration about elevators:
Building has 21 floors, 4 elevators, many passengers use these elevators everyday (passenger weight: average 70kg. max 120kg, min 45kg).
Other constant data: Elevator speed, door open/close time, passenger time for going in/out of the elevator.??We can make reasonable assumptions about these.
The building has 21 floors, from floor 0, 1, ... to 20.? Floor 0 is the underground parking level, floor 1 is the lobby level. Most people come in/out the building via these 2 floors.
?
| Elevator name | Service floor list | Passenger limit | Weight limit |
| 1 | 1, 10-20 | 12 | 1000 kg |
| 2 | 0-10 | 10 | 1000 kg |
| 3 | 1, 10-20 | 20 | 1500 kg |
| 4 | 0-20 | 20 | 2000 kg |
需求分析:
功能需求
1、四臺電梯同時工作
2、隨機在各樓層生成乘客信息
3、開始工作后不能有乘客無法抵達目的樓層
4、生成并記錄個乘客抵達目的地的總用時
性能需求
1、具有高可靠性和容錯能力
2、具有安全檢查機制
?
?
?項目目標:
1、程序模塊化設計
2、記錄每個人的總路程時間
3、完成測試
UML圖
將本次實驗對象確定為電梯,乘客,樓層
因為有大量的相關多個對象操作,所以也可以將操作設為一個對象類
這樣分類后,各物體類中只存在類的屬性和檢索類的數據的方法,將修改數據的操作都放在操作類內,這樣分類后產生的UML圖如下:
?
?
時間及任務劃分:
第一周:設計大致模塊。
第二周:每人進行相關知識的學習,并討論細化程序。
第三至五周:分工完成程序。
第六至七周:測試并優化程序,根據情況增加相應功能模塊。
第八周:進行最后微調并檢查。
轉載于:https://www.cnblogs.com/djzu/p/5401848.html
總結
以上是生活随笔為你收集整理的团队项目讨论及计划修订版的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【bzoj2330】 [SCOI2011
- 下一篇: Android使用Application