protected boolean updateEstimators(DTNHost host){
  double currentTime=SimClock.getTime();
  if (meetings.containsKey(host)) {
    double timeDiff=currentTime - meetings.get(host);
    nrofSamplesIET++;
    meanIET=(((double)nrofSamplesIET - 1) / (double)nrofSamplesIET) * meanIET + (1 / (double)nrofSamplesIET) * timeDiff;
    meetings.put(host,currentTime);
  }
 else {
    meetings.put(host,currentTime);
  }
  nrofTotENC++;
  if (encounters.containsKey(host)) {
    int encounterNro=nrofTotENC - encounters.get(host);
    nrofSamplesENC++;
    meanENC=(((double)nrofSamplesENC - 1) / (double)nrofSamplesENC) * meanENC + (1 / (double)nrofSamplesENC) * (double)encounterNro;
    encounters.put(host,nrofTotENC);
    return true;
  }
 else {
    encounters.put(host,nrofTotENC);
    return false;
  }
}

protected boolean updateEstimators ( DTNHost host ) { double currentTime = SimClock . getTime ( ) ; if ( meetings . containsKey ( host ) ) { double timeDiff = currentTime - meetings . get ( host ) ; nrofSamplesIET ++ ; meanIET = ( ( ( double ) nrofSamplesIET - 1 ) / ( double ) nrofSamplesIET ) * meanIET + ( 1 / ( double ) nrofSamplesIET ) * timeDiff ; meetings . put ( host , currentTime ) ; } else { meetings . put ( host , currentTime ) ; } nrofTotENC ++ ; if ( encounters . containsKey ( host ) ) { int encounterNro = nrofTotENC - encounters . get ( host ) ; nrofSamplesENC ++ ; meanENC = ( ( ( double ) nrofSamplesENC - 1 ) / ( double ) nrofSamplesENC ) * meanENC + ( 1 / ( double ) nrofSamplesENC ) * ( double ) encounterNro ; encounters . put ( host , nrofTotENC ) ; return true ; } else { encounters . put ( host , nrofTotENC ) ; return false ; } }
updates the maxprop estimators
