@Test public void testAge2Bin() throws Exception { int age = lsdbAge.age2Bin(0); assertThat(age, is(notNullValue())); }
public int age2Bin(int x) { if (x <= ageCounter) { return (ageCounter - x); } else { return ((OspfParameters.MAXAGE - 1) + (ageCounter - x)); } }
LsdbAgeImpl implements LsdbAge { public int age2Bin(int x) { if (x <= ageCounter) { return (ageCounter - x); } else { return ((OspfParameters.MAXAGE - 1) + (ageCounter - x)); } } }
LsdbAgeImpl implements LsdbAge { public int age2Bin(int x) { if (x <= ageCounter) { return (ageCounter - x); } else { return ((OspfParameters.MAXAGE - 1) + (ageCounter - x)); } } LsdbAgeImpl(OspfArea ospfArea); }
LsdbAgeImpl implements LsdbAge { public int age2Bin(int x) { if (x <= ageCounter) { return (ageCounter - x); } else { return ((OspfParameters.MAXAGE - 1) + (ageCounter - x)); } } LsdbAgeImpl(OspfArea ospfArea); @Override boolean equals(Object o); @Override int hashCode(); void addLsaBin(Integer binKey, LsaBin lsaBin); LsaBin getLsaBin(Integer binKey); void addLsaToMaxAgeBin(String key, LsaWrapper wrapper); void removeLsaFromBin(LsaWrapper lsaWrapper); void startDbAging(); void ageLsaAndFlood(); void maxAgeLsa(); void refreshLsa(); void checkAges(); Channel getChannel(); void setChannel(Channel channel); int getAgeCounter(); int getAgeCounterRollOver(); LsaBin getMaxAgeBin(); int age2Bin(int x); }
LsdbAgeImpl implements LsdbAge { public int age2Bin(int x) { if (x <= ageCounter) { return (ageCounter - x); } else { return ((OspfParameters.MAXAGE - 1) + (ageCounter - x)); } } LsdbAgeImpl(OspfArea ospfArea); @Override boolean equals(Object o); @Override int hashCode(); void addLsaBin(Integer binKey, LsaBin lsaBin); LsaBin getLsaBin(Integer binKey); void addLsaToMaxAgeBin(String key, LsaWrapper wrapper); void removeLsaFromBin(LsaWrapper lsaWrapper); void startDbAging(); void ageLsaAndFlood(); void maxAgeLsa(); void refreshLsa(); void checkAges(); Channel getChannel(); void setChannel(Channel channel); int getAgeCounter(); int getAgeCounterRollOver(); LsaBin getMaxAgeBin(); int age2Bin(int x);  }