ns-allinone-2.35/ns-2.35/diffserv/ew.cc
EWPolicy::EWPolicy() : Policy() {
  // Initialize detectors
  ewB = cewB = NULL;
  ewP = cewP = NULL;
  
  // Initialize rate limitor
  rlP = rlB = NULL;

  max_p = max_b = 0;
  alarm = pre_alarm = 0;
  change = 0;
}
// EW Policy: deal with queueing stuffs.
//Constructor.  
EW Policy: deal with queueing stuffs.
Constructor.
EW Policy : deal with queueing stuffs . Constructor .
EWPolicy::EWPolicy() : Policy() {
  ewB = cewB = NULL;
  ewP = cewP = NULL;
  rlP = rlB = NULL;
  max_p = max_b = 0;
  alarm = pre_alarm = 0;
  change = 0;
}
EWPolicy :: EWPolicy ( ) : Policy ( ) { ewB = cewB = NULL ; ewP = cewP = NULL ; rlP = rlB = NULL ; max_p = max_b = 0 ; alarm = pre_alarm = 0 ; change = 0 ; }
EW Policy: deal with queueing stuffs.
EW Policy : deal with queueing stuffs .
// Initialize detectors // Initialize rate limitor