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

#include "Behavioural/include/Component.h"

namespace morpheo              {
namespace behavioural          {

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

    return entity;
  };

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