/*
 * $Id: Entity_test_map.cpp 82 2008-05-01 16:48:45Z rosiere $
 *
 * [ Description ]
 * 
 */

#include "Behavioural/include/Entity.h"
#include <iostream>

namespace morpheo              {
namespace behavioural          {

#undef  FUNCTION
#define FUNCTION "Entity::test_map"
  bool Entity::test_map (uint32_t depth, bool top_level, bool is_behavioural)
  {
    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
  
    std::string tab  = std::string(depth,'\t');
    log_printf(NONE,Behavioural,FUNCTION, "%s* Entity \"%s\"",tab.c_str(),_name.c_str());
  
    bool _return = _interfaces->test_map(depth+1,top_level, is_behavioural);

#ifndef DEBUG
    if (_return == false)
      {
	std::cerr << "In entity \"" << _name << "\" (type : \"" << _type << "\"), a lot of port is not connected !" << std::endl;
      }
#endif

    log_printf(FUNC,Behavioural,FUNCTION,"End");
    
    return _return;
  };

// #undef  FUNCTION
// #define FUNCTION "Entity::test_equi"
//   bool Entity::test_equi (uint32_t depth)
//   {
//     log_printf(FUNC,Behavioural,FUNCTION,"Begin");
  
//     std::string tab  = std::string(depth,'\t');
//     log_printf(NONE,Behavioural,FUNCTION, "%s* Entity \"%s\"",tab.c_str(),_name.c_str());
  
//     bool _return = _interfaces->test_equi(depth+1);

// #ifndef DEBUG
//     if (_return == false)
//       {
// 	std::cerr << "In entity \"" << _name << "\" (type : \"" << _type << "\"), a lot of port is not connected !" << std::endl;
//       }
// #endif

//     log_printf(FUNC,Behavioural,FUNCTION,"End");
    
//     return _return;
//   };

}; // end namespace behavioural          
}; // end namespace morpheo              
