#ifdef STATISTICS
/*
 * $Id$
 *
 * [ Description ]
 * 
 */

#include "Behavioural/Generic/Select/Pseudo_LRU/include/Statistics.h"

namespace morpheo                    {
namespace behavioural {
namespace generic {
namespace select {
namespace pseudo_lru {


  Statistics::Statistics (string                                      name                       ,
			  morpheo::behavioural::Parameters_Statistics parameters_statistics      ,
			  Parameters                                  parameters
			  ) :
    morpheo::behavioural::Statistics(name                  ,
				     parameters_statistics ),
    _parameters(parameters)
  {
    _stat_port_access = new morpheo::behavioural::generic::group::Statistics (name + "_port_access" ,
									      parameters_statistics ,
									      morpheo::behavioural::generic::group::Parameters(_parameters._nb_access));
    _stat_port_update = new morpheo::behavioural::generic::group::Statistics (name + "_port_update"   ,
									      parameters_statistics ,
									      morpheo::behavioural::generic::group::Parameters(_parameters._nb_update));
  };
  
  Statistics::~Statistics () 
  { 
    delete _stat_port_access;
    delete _stat_port_update;
  };

}; // end namespace pseudo_lru
}; // end namespace select
}; // end namespace generic

}; // end namespace behavioural
}; // end namespace morpheo              
#endif
