// {{{RME component 'Component View::AlteracaoRotaComponent'

#if defined( PRAGMA ) && ! defined( PRAGMA_IMPLEMENTED )
#pragma implementation "RTSystem/AlteracaoRotaComponent.h"
#endif

#include <RTSystem/AlteracaoRotaComponent.h>
extern const RTActorClass AlteracaoRota;
extern const RTObject_class RTType_CalcularPosicao;
extern const RTObject_class RTType_Navegacao;
extern const RTObject_class RTType_Sensores;

static const RTObject_class * const rtg_user_types[] =
{
	// {{{RME classifier 'Logical View::CalcularPosicao' tool 'OT::CppTargetRTS' property 'GenerateDescriptor'
	&RTType_CalcularPosicao
	// }}}RME
	// {{{RME classifier 'Logical View::Navegacao' tool 'OT::CppTargetRTS' property 'GenerateDescriptor'
  , &RTType_Navegacao
	// }}}RME
	// {{{RME classifier 'Logical View::Sensores' tool 'OT::CppTargetRTS' property 'GenerateDescriptor'
  , &RTType_Sensores
	// }}}RME
};

#ifndef RTDEFAULT_ARGV
#define RTDEFAULT_ARGV { "AlteracaoRota" }
#undef RTDEFAULT_ARGC
#define RTDEFAULT_ARGC 1
#endif

const char * default_argv[] = RTDEFAULT_ARGV;

int default_argc = RTDEFAULT_ARGC;

#if USE_THREADS

void _rtg_createThreads( RTDebugger * debugger )
{
}

void _rtg_mapLogicalThreads( RTController * controller )
{
}

void _rtg_deleteThreads( void )
{
}
#else

void _rtg_mapLogicalThreads( RTController * controller )
{
}
#endif

static const RTSystemDescriptor _rtg_system =
{
	RTDEFAULT_ARGC
  , default_argv
  , &AlteracaoRota
  , 3
  , rtg_user_types
#if USE_THREADS
  , DEFAULT_MAIN_PRIORITY
  , 20000
  , DEFAULT_TIMER_PRIORITY
  , 20000
  , _rtg_createThreads
  , _rtg_deleteThreads
#endif
  , _rtg_mapLogicalThreads
};

int RTMain::entryPoint( int argc, const char * const * argv )
{
	return execute( &_rtg_system, argc, argv );
}

// }}}RME
