INFM HIL Interface
Interface between Artery simulation and DuTs
|
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) |
An interface between a simulation and multiple DuT devices.
sim_interface::SimToDuTInterface::SimToDuTInterface | ( | ) |
Create a new interface.
sim_interface::SimToDuTInterface::~SimToDuTInterface | ( | ) |
Destroys the interface, stops all threads and queues.
void sim_interface::SimToDuTInterface::addConnector | ( | std::shared_ptr< dut_connector::DuTConnector > | duTConnector | ) |
Add DuT connectors to the interface.
duTConnector | A DuT connector that has derived form the DuTConnector class. |
std::shared_ptr< SharedQueue< SimEvent > > sim_interface::SimToDuTInterface::getQueueDuTToSim | ( | ) |
Queue used to "send" SimEvents from the DuT devices to the simulation.
std::shared_ptr< SharedQueue< SimEvent > > sim_interface::SimToDuTInterface::getQueueSimToInterface | ( | ) |
Queue used to "send" SimEvents from the simulation to the interface.
void sim_interface::SimToDuTInterface::run | ( | ) |
Starts the interface.
void sim_interface::SimToDuTInterface::setSimComHandler | ( | SimComHandler * | simComHandler | ) |
Sets the handler that connects to the Simulation.
simComHandler | A communication handler to communicate with the simulation. |
|
friend |
Returns a string representation for the interface.
os | Output stream object reference. |
interface | Instance reference of this class. |