示例#1
0
 public void removeTaxiwayPointModel(TaxiwayPointModel taxiwayPointModel) {
   taxiwayPointHM.remove(new Integer(taxiwayPointModel.getIndex()));
   for (int i = taxiwayPathAL.size() - 1; i >= 0; i--) {
     if (((TaxiwayPathModel) taxiwayPathAL.get(i)).getType().equals("PARKING")
         && ((TaxiwayPathModel) taxiwayPathAL.get(i)).getStart() == taxiwayPointModel.getIndex()) {
       taxiwayPathAL.remove(i);
       continue;
     }
     if (!((TaxiwayPathModel) taxiwayPathAL.get(i)).getType().equals("PARKING")
         && (((TaxiwayPathModel) taxiwayPathAL.get(i)).getStart() == taxiwayPointModel.getIndex()
             || ((TaxiwayPathModel) taxiwayPathAL.get(i)).getEnd()
                 == taxiwayPointModel.getIndex())) taxiwayPathAL.remove(i);
   }
 }
示例#2
0
 public void addTaxiwayPointModel(TaxiwayPointModel taxiwayPointModel) {
   taxiwayPointHM.put(new Integer(taxiwayPointModel.getIndex()), taxiwayPointModel);
 }