public void removeTaxiwayParkingModel(TaxiwayParkingModel taxiwayParkingModel) { taxiwayParkingModel.removePropertyChangeListener(this); taxiwayParkingHM.remove(new Integer(taxiwayParkingModel.getIndex())); for (int i = taxiwayPathAL.size() - 1; i >= 0; i--) if (((TaxiwayPathModel) taxiwayPathAL.get(i)).getType().equals("PARKING") && ((TaxiwayPathModel) taxiwayPathAL.get(i)).getEnd() == taxiwayParkingModel.getIndex()) taxiwayPathAL.remove(i); }
public void addTaxiwayParkingModel(TaxiwayParkingModel taxiwayParkingModel) { taxiwayParkingModel.addPropertyChangeListener(this); taxiwayParkingHM.put(new Integer(taxiwayParkingModel.getIndex()), taxiwayParkingModel); }