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

#include "Behavioural/include/Interface.h"

namespace morpheo              {
namespace behavioural          {

  Interface::Interface  (string                name         ,
			 direction_t           direction    ,
			 localisation_t        localisation ):
    _name         (name        ),
    _direction    (direction   ),
    _localisation (localisation)
  {
    _list_signal = new list<Signal>;
#ifdef POSITION
    _is_map      = false;
#endif
  };

  Interface::Interface  (const Interface & interface):
    _name         (interface._name        ),
    _direction    (interface._direction   ),
    _localisation (interface._localisation)
  {
    _comment     = interface._comment    ;
    _list_signal = interface._list_signal;
#ifdef POSITION
    _is_map      = interface._is_map     ;
#endif
  };
  
  Interface::~Interface ()
  {
    delete _list_signal;
  };
  

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