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

#include "Behavioural/Generic/Victim/Victim_Pseudo_LRU/include/Statistics.h"

namespace morpheo                    {
namespace behavioural {
namespace generic {
namespace victim {
namespace victim_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 victim_pseudo_lru
}; // end namespace victim
}; // end namespace generic

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