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

An interface between a simulation and multiple DuT devices. More...

#include <SimToDuTInterface.h>

Public Member Functions

 SimToDuTInterface ()
 
 ~SimToDuTInterface ()
 
void addConnector (std::shared_ptr< dut_connector::DuTConnector > duTConnector)
 
void setSimComHandler (SimComHandler *simComHandler)
 
void run ()
 
std::shared_ptr< SharedQueue< SimEvent > > getQueueDuTToSim ()
 
std::shared_ptr< SharedQueue< SimEvent > > getQueueSimToInterface ()
 

Friends

std::ostream & operator<< (std::ostream &os, const SimToDuTInterface &interface)
 

Detailed Description

An interface between a simulation and multiple DuT devices.

Constructor & Destructor Documentation

◆ SimToDuTInterface()

sim_interface::SimToDuTInterface::SimToDuTInterface ( )

Create a new interface.

◆ ~SimToDuTInterface()

sim_interface::SimToDuTInterface::~SimToDuTInterface ( )

Destroys the interface, stops all threads and queues.

Member Function Documentation

◆ addConnector()

void sim_interface::SimToDuTInterface::addConnector ( std::shared_ptr< dut_connector::DuTConnector duTConnector)

Add DuT connectors to the interface.

Parameters
duTConnectorA DuT connector that has derived form the DuTConnector class.

◆ getQueueDuTToSim()

std::shared_ptr< SharedQueue< SimEvent > > sim_interface::SimToDuTInterface::getQueueDuTToSim ( )

Queue used to "send" SimEvents from the DuT devices to the simulation.

Returns
A thread save SharedQueue.

◆ getQueueSimToInterface()

std::shared_ptr< SharedQueue< SimEvent > > sim_interface::SimToDuTInterface::getQueueSimToInterface ( )

Queue used to "send" SimEvents from the simulation to the interface.

Returns
A thread save SharedQueue.

◆ run()

void sim_interface::SimToDuTInterface::run ( )

Starts the interface.

◆ setSimComHandler()

void sim_interface::SimToDuTInterface::setSimComHandler ( SimComHandler simComHandler)

Sets the handler that connects to the Simulation.

Parameters
simComHandlerA communication handler to communicate with the simulation.

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const SimToDuTInterface interface 
)
friend

Returns a string representation for the interface.

Parameters
osOutput stream object reference.
interfaceInstance reference of this class.
Returns
Output stream object reference.

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