BUAA-Unit2-hw6
2022-04-30 16:03:07 0 举报
BUAA-Unit2-hw6
作者其他创作
大纲/内容
BuildingScheduler
- isEnd: boolean- queue: ArrayList<PersonRequest>- elvList : ArrayList<Sche>
I/O类
MainClass
+ main(String[] args): void
MainOutput
+ println(String str): void
Sche
+ put(ProRequest personRequest) : void+ getStatus() : int+ getInElv() : int+ setEnd() : void+ getRequests() : int
横向/纵向 电梯内部二级调度
LongitudinalScheduler
- FLOOR: static final int[]- up: ArrayList<PersonRequest>[]- down: ArrayList<PersonRequest>[]- status: int- upCall: int- downCall : int- inElv : int- isEnd : boolean- inElvNum : int- nowFloor : int
+ init(): void+ setEnd(): void+ isEnd(): boolean+ isEmpty(): boolean font color=\"#1976d2\
楼层/楼座一级调度
LongitudinalElevator
- id: int- building: char- scheduler: LongitudinalScheduler- nowFloor: int- nowDir: boolean- nowPersonNum: int- personList: ArrayList<PersonRequest>[]
+ run(): void
SchedulerThread
- buildingScheduler : BuildingScheduler
WidewiseElevator
- id: int- floor: int- scheduler: WidewiseScheduler- nowBuilding: int- nowDir: boolean- nowPersonNum: int- personList: ArrayList<PersonRequest>[]
WidewiseScheduler
- FLOOR: static final int[]- up: ArrayList<PersonRequest>[]- down: ArrayList<PersonRequest>[]- status: int- upCall: int- downCall : int- inElv : int- isEnd : boolean- inElvNum : int- nowBuilding : int
InputThread
- buildingHasScheduler : BuildingScheduler[] - floorHasScheduler : BuildingScheduler[]
0 条评论
下一页