/*
 * $Id$
 *
 * [ Description ]
 * 
 */

#include "Behavioural/include/Component.h"

namespace morpheo              {
namespace behavioural          {

#undef  FUNCTION
#define FUNCTION "Component::set_entity"
  Entity * Component::set_entity (std::string        name   
				  ,std::string        type   
#ifdef POSITION
				  ,schema_t      schema
#endif
				  )
  {
    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
    
    Entity * entity = new Entity (name   
				  ,type   
#ifdef POSITION
				  ,schema 
#endif
				  ,_usage
				  );
    _entity = entity;
    
    log_printf(FUNC,Behavioural,FUNCTION,"End");

    return entity;
  };

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