Exemplo n.º 1
0
const RTStateId roombaProgram_Actor::rtg_parent_state[] =
{
	0
  , 1
  , 1
  , 1
  , 1
};

const RTPortDescriptor roombaProgram_Actor::rtg_ports[] =
{
	{
		"Roomba"
	  , (const char *)0
	  , &programProtocol::Base::rt_class
	  , RTOffsetOf( roombaProgram_Actor, roombaProgram_Actor::Roomba )
	  , 1 // cardinality
	  , 1
	  , RTPortDescriptor::KindWired + RTPortDescriptor::NotificationDisabled + RTPortDescriptor::RegisterNotPermitted + RTPortDescriptor::VisibilityPublic
	}
  , {
		"timer"
	  , (const char *)0
	  , &Timing::Base::rt_class
	  , RTOffsetOf( roombaProgram_Actor, roombaProgram_Actor::timer )
	  , 1 // cardinality
	  , 2
	  , RTPortDescriptor::KindSpecial + RTPortDescriptor::NotificationDisabled + RTPortDescriptor::RegisterNotPermitted + RTPortDescriptor::VisibilityProtected
	}
};
  , serialTranslateCapsule_Actor::rtg_serialTranslateCapsule_fields
};

const RTStateId serialTranslateCapsule_Actor::rtg_parent_state[] =
{
	0
  , 1
};

const RTPortDescriptor serialTranslateCapsule_Actor::rtg_ports[] =
{
	{
		"serialRaw"
	  , (const char *)0
	  , &serialRawProtocol::Conjugate::rt_class
	  , RTOffsetOf( serialTranslateCapsule_Actor, serialTranslateCapsule_Actor::serialRaw )
	  , 1 // cardinality
	  , 1
	  , RTPortDescriptor::KindWired + RTPortDescriptor::NotificationDisabled + RTPortDescriptor::RegisterNotPermitted + RTPortDescriptor::VisibilityPublic
	}
  , {
		"serialOut"
	  , (const char *)0
	  , &serialProtocol::Base::rt_class
	  , RTOffsetOf( serialTranslateCapsule_Actor, serialTranslateCapsule_Actor::serialOut )
	  , 1 // cardinality
	  , 2
	  , RTPortDescriptor::KindWired + RTPortDescriptor::NotificationDisabled + RTPortDescriptor::RegisterNotPermitted + RTPortDescriptor::VisibilityPublic
	}
  , {
		"timer"
Exemplo n.º 3
0
static void rtg_clsDriveCommand_copy( const RTObject_class * type, clsDriveCommand * target, const clsDriveCommand * source )
{
	(void)new( target ) clsDriveCommand( *source );
}

static void rtg_clsDriveCommand_destroy( const RTObject_class * type, clsDriveCommand * target )
{
	target->~clsDriveCommand();
}

const RTFieldDescriptor rtg_clsDriveCommand_fields[] =
{
	// {{{RME classAttribute 'right'
	{
		"right"
	  , RTOffsetOf( clsDriveCommand, right )
		// {{{RME tool 'OT::CppTargetRTS' property 'TypeDescriptor'
	  , &RTType_int
		// }}}RME
		// {{{RME tool 'OT::CppTargetRTS' property 'GenerateTypeModifier'
	  , (const RTTypeModifier *)0
		// }}}RME
	}
	// }}}RME
	// {{{RME classAttribute 'left'
  , {
		"left"
	  , RTOffsetOf( clsDriveCommand, left )
		// {{{RME tool 'OT::CppTargetRTS' property 'TypeDescriptor'
	  , &RTType_int
		// }}}RME
const RTStateId ElevatorDoor_Actor::rtg_parent_state[] =
{
	0
  , 1
  , 1
  , 1
  , 1
};

const RTComponentDescriptor ElevatorDoor_Actor::rtg_capsule_roles[] =
{
	{
		"doorSensor"
	  , &DoorSensor
	  , RTOffsetOf( ElevatorDoor_Actor, doorSensor )
	  , 1
	  , RTComponentDescriptor::Fixed
	  , 1
	  , 1 // cardinality
	  , 2
	  , rtg_interfaces_doorSensor
	  , 1
	  , rtg_bindings_doorSensor
	}
};

const RTPortDescriptor ElevatorDoor_Actor::rtg_ports[] =
{
	{
		"LEDPort"
  , 6
  , Local_Controller_Actor::rtg_Local_Controller_fields
};

const RTStateId Local_Controller_Actor::rtg_parent_state[] =
{
	0
  , 1
};

const RTComponentDescriptor Local_Controller_Actor::rtg_capsule_roles[] =
{
	{
		"Elevator_Buttons_Handler"
	  , &Elevator_Buttons
	  , RTOffsetOf( Local_Controller_Actor, Elevator_Buttons_Handler )
	  , 1
	  , RTComponentDescriptor::Fixed
	  , 1
	  , 1 // cardinality
	  , 2
	  , rtg_interfaces_Elevator_Buttons_Handler
	  , 1
	  , rtg_bindings_Elevator_Buttons_Handler
	}
  , {
		"elevator_body"
	  , &Elevator
	  , RTOffsetOf( Local_Controller_Actor, elevator_body )
	  , 2
	  , RTComponentDescriptor::Fixed
  , DoorSensor_Actor::rtg_DoorSensor_fields
};

const RTStateId DoorSensor_Actor::rtg_parent_state[] =
{
	0
  , 1
};

const RTPortDescriptor DoorSensor_Actor::rtg_ports[] =
{
	{
		"EDDSPort"
	  , (const char *)0
	  , &EDDSProtocol::Base::rt_class
	  , RTOffsetOf( DoorSensor_Actor, DoorSensor_Actor::EDDSPort )
	  , 1 // cardinality
	  , 1
	  , RTPortDescriptor::KindWired + RTPortDescriptor::NotificationDisabled + RTPortDescriptor::RegisterNotPermitted + RTPortDescriptor::VisibilityPublic
	}
  , {
		"UDSPort"
	  , (const char *)0
	  , &UDSProtocol::Base::rt_class
	  , RTOffsetOf( DoorSensor_Actor, DoorSensor_Actor::UDSPort )
	  , 1 // cardinality
	  , 2
	  , RTPortDescriptor::KindWired + RTPortDescriptor::NotificationDisabled + RTPortDescriptor::RegisterNotPermitted + RTPortDescriptor::VisibilityPublic
	}
};
const RTStateId serialCommunicationCapsule_Actor::rtg_parent_state[] =
{
	0
  , 1
  , 1
  , 1
  , 1
};

const RTPortDescriptor serialCommunicationCapsule_Actor::rtg_ports[] =
{
	{
		"serialPort"
	  , (const char *)0
	  , &serialRawProtocol::Base::rt_class
	  , RTOffsetOf( serialCommunicationCapsule_Actor, serialCommunicationCapsule_Actor::serialPort )
	  , 1 // cardinality
	  , 1
	  , RTPortDescriptor::KindWired + RTPortDescriptor::NotificationDisabled + RTPortDescriptor::RegisterNotPermitted + RTPortDescriptor::VisibilityPublic
	}
  , {
		"timer"
	  , (const char *)0
	  , &Timing::Base::rt_class
	  , RTOffsetOf( serialCommunicationCapsule_Actor, serialCommunicationCapsule_Actor::timer )
	  , 1 // cardinality
	  , 2
	  , RTPortDescriptor::KindSpecial + RTPortDescriptor::NotificationDisabled + RTPortDescriptor::RegisterNotPermitted + RTPortDescriptor::VisibilityProtected
	}
};
Exemplo n.º 8
0
};

const RTStateId ACacaoreservoir_Actor::rtg_parent_state[] =
{
	0
  , 1
  , 1
};

const RTPortDescriptor ACacaoreservoir_Actor::rtg_ports[] =
{
	{
		"pReservoir"
	  , (const char *)0
	  , &PReservoir::Base::rt_class
	  , RTOffsetOf( ACacaoreservoir_Actor, ACacaoreservoir_Actor::pReservoir )
	  , 1 // cardinality
	  , 1
	  , RTPortDescriptor::KindWired + RTPortDescriptor::NotificationDisabled + RTPortDescriptor::RegisterNotPermitted + RTPortDescriptor::VisibilityPublic
	}
};

const RTFieldDescriptor ACacaoreservoir_Actor::rtg_ACacaoreservoir_fields[] =
{
	// {{{RME classAttribute 'klep'
	{
		"klep"
	  , RTOffsetOf( ACacaoreservoir_Actor, klep )
		// {{{RME tool 'OT::CppTargetRTS' property 'TypeDescriptor'
	  , &RTType_CKlep
		// }}}RME