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

#ifndef DetectarPacote_H
#define DetectarPacote_H

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

#include <RTSystem/PVA.h>
#include <Dados.h>
class Pacote;

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

extern const RTActorClass DetectarPacote;

#define SUPER RTActor
class DetectarPacote_Actor : public RTActor
{
private:
	// {{{RME classifier 'Logical View::DetectarPacote' classAttribute 'Codigo'
	long Codigo;
	// }}}RME

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

protected:
	// {{{RME classifier 'Logical View::DetectarPacote' operation 'EnviarMsgCentral()'
	void EnviarMsgCentral( void );
	// }}}RME
	// {{{RME classifier 'Logical View::DetectarPacote' operation 'HabilitarCarregarPacote()'
	void HabilitarCarregarPacote( void );
	// }}}RME

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

private:
	INLINE_CHAINS void chain1_Inicial( 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_DetectarPacote_fields[];
};
#undef SUPER

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

#endif /* DetectarPacote_H */

// }}}RME
