标签:des style io os 使用 ar for strong sp
1.Advantages and disanvantages of Peer Programming
advantages
The code are constantly validated by two people, reducing the possibility of indivudual making stupid mistakes.
2.Hiding Information,interface design,loose coupling
3.Design By Contract
调用者必须提供正确的参数,被调用者必须保证正确的结果和调用者要求的不变性。
5.unit test
5.UML
6.算法实现:
Scheduler:修改scheduler,放弃了StopatEachFloor,使用了新的方法Allocate。
Passenger:增加了接口中的属性
Elevator:增加了接口中的属性
Peer Programming Project: 4 Elevators Scheduler
标签:des style io os 使用 ar for strong sp
原文地址:http://www.cnblogs.com/dahuang/p/4027771.html