// {{{RME classifier 'Logical View::CarregarPacote'

#ifndef CarregarPacote_H
#define CarregarPacote_H

#ifdef PRAGMA
#pragma interface "CarregarPacote.h"
#endif

#include <RTSystem/PVA.h>
#include <Dados.h>

// {{{RME classifier 'Logical View::CarregarPacote' tool 'OT::Cpp' property 'HeaderPreface'
// {{{USR tool 'OT::Cpp' property 'HeaderPreface'
// }}}USR
// }}}RME

extern const RTActorClass CarregarPacote;

#define SUPER RTActor
class CarregarPacote_Actor : public RTActor
{
private:
	// {{{RME classifier 'Logical View::CarregarPacote' classAttribute 'PacoteCerto'
	bool PacoteCerto;
	// }}}RME
	// {{{RME classifier 'Logical View::CarregarPacote' classAttribute 'LocPacote'
	float LocPacote;
	// }}}RME
	// {{{RME classifier 'Logical View::CarregarPacote' classAttribute 'LocPorta'
	float LocPorta;
	// }}}RME
	// {{{RME classifier 'Logical View::CarregarPacote' classAttribute 'Destino'
	bool Destino;
	// }}}RME
	// {{{RME classifier 'Logical View::CarregarPacote' classAttribute 'IDPacote'
	double IDPacote;
	// }}}RME

public:
	// {{{RME classifier 'Logical View::CarregarPacote' port 'NewPort1'
	Dados::Base NewPort1;
	// }}}RME
	CarregarPacote_Actor( RTController * rtg_rts, RTActorRef * rtg_ref );
	virtual ~CarregarPacote_Actor( void );

protected:
	// {{{RME classifier 'Logical View::CarregarPacote' operation 'QuestionaPacotePresente(bool)'
	bool QuestionaPacotePresente( bool pctpresente = false );
	// }}}RME
	// {{{RME classifier 'Logical View::CarregarPacote' operation 'Descarregar(bool)'
	bool Descarregar( bool descarregar = false );
	// }}}RME
	// {{{RME classifier 'Logical View::CarregarPacote' operation 'Carregar(bool)'
	bool Carregar( bool carregar = false );
	// }}}RME
	// {{{RME classifier 'Logical View::CarregarPacote' operation 'ComDestAlcancado(bool)'
	char ComDestAlcancado( bool destAlcancado = false );
	// }}}RME
	// {{{RME classifier 'Logical View::CarregarPacote' operation 'ProximaMissao(float,bool)'
	void ProximaMissao( float locProxMissao = 0, bool missao = false );
	// }}}RME
	// {{{RME classifier 'Logical View::CarregarPacote' operation 'Conduzir(char)'
	void Conduzir( char conduzir );
	// }}}RME
	// {{{RME classifier 'Logical View::CarregarPacote' operation 'ComProblema()'
	bool ComProblema( void );
	// }}}RME
	// {{{RME classifier 'Logical View::CarregarPacote' operation 'AvisaCarregado()'
	bool AvisaCarregado( void );
	// }}}RME

public:
	virtual int _followInV( RTBindingEnd & rtg_end, int rtg_portId, int rtg_repIndex );

private:
	INLINE_CHAINS void chain14_Initial( void );

public:
	virtual void rtsBehavior( int signalIndex, int portIndex );
	virtual const RTActor_class * getActorData( void ) const;

protected:
	static const RTActor_class rtg_class;

public:
	static const RTStateId rtg_parent_state[];

private:
	static const RTPortDescriptor rtg_ports[];

public:
	static const RTFieldDescriptor rtg_CarregarPacote_fields[];
};
#undef SUPER

// {{{RME classifier 'Logical View::CarregarPacote' tool 'OT::Cpp' property 'HeaderEnding'
// {{{USR tool 'OT::Cpp' property 'HeaderEnding'
// }}}USR
// }}}RME

#endif /* CarregarPacote_H */

// }}}RME
