Ejemplo n.º 1
0
  @Override
  public boolean delFlight(Flight flight, int runawayId) {
    boolean result = airportRunaways.removeFlight(flight, runawayId);

    if (result) {
      distributor.addTask(flight.getFlightNumber(), Distributor.ACTION_REMOVE_AIRPLANE);
    }

    if (LOG.isInfoEnabled()) {
      LOG.info("delete flight. Flight : " + flight);
    }

    return result;
  }
Ejemplo n.º 2
0
  @Override
  public void addFlight(Flight flight) {
    airportRunaways.addFlight(flight);
    distributor.addTask(flight, Distributor.ACTION_ADD_AIRPLANE);

    if (flight.getFlightState().equals("Ожидает")) {
      serviceStatistics.incAmountReadyTakenOffPlane();
    } else {
      serviceStatistics.incAmountFlewPlane();
    }

    if (LOG.isInfoEnabled()) {
      LOG.info("add flight. Flight : " + flight);
    }
  }