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

Connector implementing all kinds of DuT devices. More...

#include <DuTConnector.h>

Inheritance diagram for sim_interface::dut_connector::DuTConnector:
sim_interface::dut_connector::can::CANConnector sim_interface::dut_connector::rest_dummy::RESTDummyConnector sim_interface::dut_connector::v2x::V2XConnector

Public Member Functions

 DuTConnector (std::shared_ptr< SharedQueue< SimEvent > > queueDuTToSim, const sim_interface::dut_connector::ConnectorConfig &config)
 
 ~DuTConnector ()
 
virtual ConnectorInfo getConnectorInfo ()
 
void handleEvent (const SimEvent &simEvent)
 
void sendEventToSim (const SimEvent &simEvent)
 

Protected Member Functions

virtual void handleEventSingle (const SimEvent &simEvent)
 

Detailed Description

Connector implementing all kinds of DuT devices.

The different connectors should implement the protocol to communicate with a specific hardware DuT. Used in the interface to send/receive events to/from the device.

Constructor & Destructor Documentation

◆ DuTConnector()

sim_interface::dut_connector::DuTConnector::DuTConnector ( std::shared_ptr< SharedQueue< SimEvent > >  queueDuTToSim,
const sim_interface::dut_connector::ConnectorConfig config 
)
explicit

Create a new connector.

Parameters
queueDuTToSimQueue to communicate with the interface.
configConfig for the device.

◆ ~DuTConnector()

sim_interface::dut_connector::DuTConnector::~DuTConnector ( )

Destroy the connector, stop all operations, end all threads.

Member Function Documentation

◆ getConnectorInfo()

ConnectorInfo sim_interface::dut_connector::DuTConnector::getConnectorInfo ( )
virtual

Some basic information from the connector. Please override this methode!

Returns
Some information and version of the device.

Reimplemented in sim_interface::dut_connector::can::CANConnector, sim_interface::dut_connector::rest_dummy::RESTDummyConnector, and sim_interface::dut_connector::v2x::V2XConnector.

◆ handleEvent()

void sim_interface::dut_connector::DuTConnector::handleEvent ( const SimEvent simEvent)

Handles an event asynchronously from the simulation. Called by the interface.

◆ handleEventSingle()

virtual void sim_interface::dut_connector::DuTConnector::handleEventSingle ( const SimEvent simEvent)
inlineprotectedvirtual

Handles an single event asynchronously from the simulation. Called whenever a new event for the device arrives. Please override this methode!

Parameters
simEventEvent that should be processed by the device.

Reimplemented in sim_interface::dut_connector::rest_dummy::RESTDummyConnector, sim_interface::dut_connector::v2x::V2XConnector, and sim_interface::dut_connector::can::CANConnector.

◆ sendEventToSim()

void sim_interface::dut_connector::DuTConnector::sendEventToSim ( const SimEvent simEvent)

Send an event to the simulation. Creates multiple events from a single event if configured so. Called by the DuT connector itself.

Parameters
simEventEvent that should be send.

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