INFM HIL Interface
Interface between Artery simulation and DuTs
Public Member Functions | List of all members
sim_interface::dut_connector::v2x::V2XConnector Class Reference

Connector to a V2X network interface, opens a raw socket and passes received packages to simulation More...

#include <V2XConnector.h>

Inheritance diagram for sim_interface::dut_connector::v2x::V2XConnector:
sim_interface::dut_connector::DuTConnector

Public Member Functions

 V2XConnector (std::shared_ptr< SharedQueue< SimEvent > > queueDuTToSim, const V2XConnectorConfig &config)
 
 ~V2XConnector ()
 
void handleEventSingle (const SimEvent &e) override
 
ConnectorInfo getConnectorInfo () override
 
- Public Member Functions inherited from sim_interface::dut_connector::DuTConnector
 DuTConnector (std::shared_ptr< SharedQueue< SimEvent > > queueDuTToSim, const sim_interface::dut_connector::ConnectorConfig &config)
 
 ~DuTConnector ()
 
void handleEvent (const SimEvent &simEvent)
 
void sendEventToSim (const SimEvent &simEvent)
 

Additional Inherited Members

Detailed Description

Connector to a V2X network interface, opens a raw socket and passes received packages to simulation

Constructor & Destructor Documentation

◆ V2XConnector()

sim_interface::dut_connector::v2x::V2XConnector::V2XConnector ( std::shared_ptr< SharedQueue< SimEvent > >  queueDuTToSim,
const V2XConnectorConfig config 
)
explicit

Initialize V2X Connector and setup socket for receiving ethernet frames

Parameters
queueDuTToSimqueue to write received SimEvents to
configConfiguration of connector containing params (Context Params from Cube Board)

◆ ~V2XConnector()

sim_interface::dut_connector::v2x::V2XConnector::~V2XConnector ( )

Deconstructor stopping ioService and waiting for thread to join

Member Function Documentation

◆ getConnectorInfo()

ConnectorInfo sim_interface::dut_connector::v2x::V2XConnector::getConnectorInfo ( )
overridevirtual

Return some basic information like name, version and a short description of this connector

Returns
ConnectorInfo containing information about this DuT connector

Reimplemented from sim_interface::dut_connector::DuTConnector.

◆ handleEventSingle()

void sim_interface::dut_connector::v2x::V2XConnector::handleEventSingle ( const SimEvent e)
overridevirtual

Process the given event and send it via the given interface

Parameters
eSimEvent to handle

Reimplemented from sim_interface::dut_connector::DuTConnector.


The documentation for this class was generated from the following files: