@Test public void testAge2Bin() throws Exception { defaultIsisLsdbAge.age2Bin(1); assertThat(defaultIsisLsdbAge, is(notNullValue())); defaultIsisLsdbAge.age2Bin(-1); assertThat(defaultIsisLsdbAge, is(notNullValue())); }
public int age2Bin(int age) { if (age <= ageCounter) { return (ageCounter - age); } else { return ((IsisConstants.LSPMAXAGE - 1) + (ageCounter - age)); } }
DefaultIsisLsdbAge implements IsisLsdbAge { public int age2Bin(int age) { if (age <= ageCounter) { return (ageCounter - age); } else { return ((IsisConstants.LSPMAXAGE - 1) + (ageCounter - age)); } } }
DefaultIsisLsdbAge implements IsisLsdbAge { public int age2Bin(int age) { if (age <= ageCounter) { return (ageCounter - age); } else { return ((IsisConstants.LSPMAXAGE - 1) + (ageCounter - age)); } } DefaultIsisLsdbAge(); }
DefaultIsisLsdbAge implements IsisLsdbAge { public int age2Bin(int age) { if (age <= ageCounter) { return (ageCounter - age); } else { return ((IsisConstants.LSPMAXAGE - 1) + (ageCounter - age)); } } DefaultIsisLsdbAge(); int ageCounter(); int ageCounterRollOver(); void addLspBin(int binNumber, IsisLspBin lspBin); IsisLspBin getLspBin(int binKey); void removeLspFromBin(LspWrapper lspWrapper); int age2Bin(int age); void startDbAging(); void ageLsp(); void maxAgeLsa(); void refreshLsa(); }
DefaultIsisLsdbAge implements IsisLsdbAge { public int age2Bin(int age) { if (age <= ageCounter) { return (ageCounter - age); } else { return ((IsisConstants.LSPMAXAGE - 1) + (ageCounter - age)); } } DefaultIsisLsdbAge(); int ageCounter(); int ageCounterRollOver(); void addLspBin(int binNumber, IsisLspBin lspBin); IsisLspBin getLspBin(int binKey); void removeLspFromBin(LspWrapper lspWrapper); int age2Bin(int age); void startDbAging(); void ageLsp(); void maxAgeLsa(); void refreshLsa();  }