@Override
	public void update() {
		if (currentGoal != null) {
			currentFloor = getNextFloor();
			if (currentFloor == currentGoal.getDestinationFloor()) {
				System.out.println("Elevator " + elevatorId
						+ " has reached the floor " + currentFloor);
				currentGoal = null;
				if (goals.size() > 0) {
					currentGoal = goals.get(0);
					goals.remove(0);
				}
			}
		}
	}