31 lines
467 B
Java
31 lines
467 B
Java
package commandSystem;
|
|
|
|
public class TestElevator implements Elevator{
|
|
|
|
public int currentFloor;
|
|
public Direction direction;
|
|
|
|
public TestElevator() {
|
|
this.direction = Direction.UP;
|
|
this.currentFloor = 0;
|
|
}
|
|
|
|
|
|
@Override
|
|
public void sendFloorReachedNotification() {
|
|
// TODO Auto-generated method stub
|
|
}
|
|
|
|
@Override
|
|
public int getCurrentFloor() {
|
|
return currentFloor;
|
|
}
|
|
|
|
@Override
|
|
public Direction getCurrentDirection() {
|
|
return direction;
|
|
}
|
|
|
|
|
|
}
|