INFM HIL Interface
Interface between Artery simulation and DuTs
|
Connector implementing all kinds of DuT devices. More...
#include <DuTConnector.h>
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) |
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.
|
explicit |
Create a new connector.
queueDuTToSim | Queue to communicate with the interface. |
config | Config for the device. |
sim_interface::dut_connector::DuTConnector::~DuTConnector | ( | ) |
Destroy the connector, stop all operations, end all threads.
|
virtual |
Some basic information from the connector. Please override this methode!
Reimplemented in sim_interface::dut_connector::can::CANConnector, sim_interface::dut_connector::rest_dummy::RESTDummyConnector, and sim_interface::dut_connector::v2x::V2XConnector.
void sim_interface::dut_connector::DuTConnector::handleEvent | ( | const SimEvent & | simEvent | ) |
Handles an event asynchronously from the simulation. Called by the interface.
|
inlineprotectedvirtual |
Handles an single event asynchronously from the simulation. Called whenever a new event for the device arrives. Please override this methode!
simEvent | Event 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.
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.
simEvent | Event that should be send. |