Elevator: Tenant.h
...
@interface Tenant: SwarmObject {
int floor, homeFloor;
int waitingTime, trips;
}
-init: (int) n;
-setFloor: (int) f;
-(BOOL)isAtHome;
-(int)getTime;
-move: (id) e;
@end
Previous slide
Next slide
Back to first slide
View graphic version