// DELETION FIXED public void getISDra2FixedDel() { for (int i = 0; i < records.size(); i++) { Record cur = records.get(i); if (cur.regular) { if (cur.doesFirstMatch(674400, 674850, true, "EDGE:145:213") && cur.doesSecondMatch(676750, 677000, false, "EDGE:216:277")) { System.out.println(cur); records.remove(i); i--; } else if (cur.doesFirstMatch(1387250, 1387550, true, "EDGE:149:325") && cur.doesSecondMatch(1389450, 1389700, false, "EDGE:168:281")) { System.out.println(cur); records.remove(i); i--; } else if (cur.doesFirstMatch(1611150, 1611550, true, "EDGE:192:280") && cur.doesSecondMatch(1613400, 1613750, false, "EDGE:147:324")) { System.out.println(cur); records.remove(i); i--; } else if (cur.doesFirstMatch(1952800, 1953125, true, "EDGE:271:283") && cur.doesSecondMatch(1955000, 1955300, false, "EDGE:146:313")) { System.out.println(cur); records.remove(i); i--; } else if (cur.doesFirstMatch(2321000, 2321350, true, "EDGE:190:282") && cur.doesSecondMatch(2323250, 2323600, false, "EDGE:150:242")) { System.out.println(cur); records.remove(i); i--; } } } System.out.println(); }
public String getIS2621FixedDel() { StringBuffer bf = new StringBuffer(); Record pair1 = null; int pair1Index = -1; Record pair2 = null; int pair2Index = -1; for (int i = 0; i < records.size(); i++) { Record cur = records.get(i); if (cur.regular) { if (cur.doesFirstMatch(1637700, 1638000, true, "EDGE:147:324") && cur.doesSecondMatch(1639600, 1639900, false, "EDGE:107:349")) { bf.append(cur + "\n\n"); records.remove(i); i--; } else if (cur.doesFirstMatch(1337450, 1337750, true, "EDGE:28:109") && cur.doesSecondMatch(1339350, 1339600, false, "EDGE:149:325")) { bf.append(cur + "\n\n"); records.remove(i); i--; } else if (cur.doesFirstMatch(231925, 231975, false, "EDGE:194:330") && cur.doesSecondMatch(881050, 881300, true, "EDGE:111:239")) { pair1 = cur; records.remove(i); i--; pair1Index = i; } else if (cur.doesFirstMatch(881200, 881350, true, "EDGE:111:239") && cur.doesSecondMatch(883000, 883200, false, "EDGE:185:335")) { pair2 = cur; records.remove(i); i--; pair2Index = i; } } } if (pair1Index > -1 && pair2Index > -1) { bf.append(pair1 + "\n" + pair2 + "\n\n"); // records.remove(pair1Index); // records.remove(pair2Index); } else if (pair1Index == -1 && pair2Index > -1) { bf.append("**MISSING**\n" + pair2 + "\n\n"); // records.remove(pair2Index); } else if (pair1Index > -1 && pair2Index == -1) { bf.append(pair1 + "\n**MISSING**\n\n"); // records.remove(pair1Index); } else { bf.append("**MISSING**\n**MISSING**\n\n"); } return bf.toString(); }
// ArrayList<Record> pair1sLeft = getCandidates(true, 881550, 881850, false, "EDGE:112:322"); // ArrayList<Record> pair2sLeft = getCandidates(true, 882350, 882650, true, "EDGE:112:322"); public String getIS2621FixedIns() { StringBuffer bf = new StringBuffer(); Record pair1 = null; int pair1Index = -1; Record pair2 = null; int pair2Index = -1; for (int i = 0; i < records.size(); i++) { Record cur = records.get(i); if (cur.regular) { if (cur.doesFirstMatch(881550, 881850, false, "EDGE:112:322") && cur.doesSecondMatch(3024600, 3024900, true, "EDGE:129:290")) { pair1 = cur; pair1Index = i; records.remove(i); i--; } else if (cur.doesFirstMatch(882400, 882650, true, "EDGE:112:322") && cur.doesSecondMatch(3025050, 3025400, false, "EDGE:129:290")) { pair2 = cur; pair2Index = i; records.remove(i); i--; } } } if (pair1Index > -1 && pair2Index > -1) { bf.append("*FIXED\n" + pair1 + "\n" + pair2 + "\n\n"); // records.remove(pair1Index); // records.remove(pair2Index); } else if (pair1Index == -1 && pair2Index > -1) { bf.append("*FIXED\n**MISSING**\n" + pair2 + "\n\n"); // records.remove(pair2Index); } else if (pair1Index > -1 && pair2Index == -1) { bf.append("*FIXED\n" + pair1 + "\n**MISSING**\n\n"); // records.remove(pair1Index); } else { bf.append("*FIXED\n**MISSING**\n**MISSING**\n\n"); } return bf.toString(); }
public void getISDra6FixedIns() { Record pair1 = null; int pair1Index = -1; Record pair2 = null; int pair2Index = -1; for (int i = 0; i < records.size(); i++) { Record cur = records.get(i); if (cur.regular) { if (cur.doesFirstMatch(697275, 697550, true, "EDGE:216:277") && cur.doesSecondMatch(1538150, 1538450, false, "EDGE:217:222")) { pair1 = cur; pair1Index = i; records.remove(i); i--; } else if (cur.doesFirstMatch(697800, 698075, false, "EDGE:216:277") && cur.doesSecondMatch(1538675, 1539000, true, "EDGE:217:222")) { pair2 = cur; pair2Index = i; records.remove(i); i--; } } } if (pair1Index > -1 && pair2Index > -1) { System.out.println("*FIXED\n" + pair1 + "\n" + pair2 + "\n"); // records.remove(pair1Index); // records.remove(pair2Index); } else if (pair1Index == -1 && pair2Index > -1) { System.out.println("*FIXED\n**MISSING**\n" + pair2 + "\n"); // records.remove(pair2Index); } else if (pair1Index > -1 && pair2Index == -1) { System.out.println("*FIXED\n" + pair1 + "\n**MISSING**\n"); // records.remove(pair1Index); } else { System.out.println("*FIXED\n**MISSING**\n**MISSING**\n"); } }
public ArrayList<Record> getCandidates( boolean left, int s, int e, boolean direction, String eName) { ArrayList<Record> candidates = new ArrayList<Record>(); for (int i = 0; i < records.size(); i++) { Record cur = records.get(i); if (cur.regular) { if (left) { if (cur.doesFirstMatch(s, e, direction, eName)) { candidates.add(cur); records.remove(i); i--; } } else { if (cur.doesSecondMatch(s, e, direction, eName)) { candidates.add(cur); records.remove(i); i--; } } } } return candidates; }