INFM HIL Interface
Interface between Artery simulation and DuTs
Namespaces | Classes | Enumerations | Functions
sim_interface Namespace Reference

Namespaces

namespace  dut_connector
 

Classes

class  ConfigSerializer
 ConfigSerializer: This class is for de-/ serializing the different connectorConfig types and overwrites the boost:serialization methods More...
 
class  InterfaceLogger
 Logger to log to file, console and as structured data csv More...
 
class  LoggerConfig
 The logger needs a configuration before it can start logging. More...
 
class  PeriodicTimer
 Timer to call given callback periodically with given event More...
 
class  SharedQueue
 A thread save shared queue to communicate between multiple threads. The queue is a FIFO queue. More...
 
class  SimComHandler
 Handler between interface and simulation. Responsible for sending/receiving SimEvents to/from the simulation. More...
 
class  SimEvent
 Event object used to communicate between simulation and DuTs. More...
 
class  SimToDuTInterface
 An interface between a simulation and multiple DuT devices. More...
 
class  SystemConfig
 Contains the config for the SimComHandler, the SimToDuTInterface and the Logger. More...
 

Enumerations

enum  LOG_TYPE { CONSOLE_LOG , FILE_LOG }
 
enum  LOG_LEVEL {
  NONE , DEBUG , INFO , WARNING ,
  ERROR , CRITICAL
}
 

Functions

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

Detailed Description

Sim To DuT Interface

Copyright (C) 2021 Lukas Wagenlehner

This file is part of "Sim To DuT Interface".

"Sim To DuT Interface" is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

"Sim To DuT Interface" is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with "Sim To DuT Interface". If not, see http://www.gnu.org/licenses/.

Author
Lukas Wagenlehner
Version
1.0

Sim To DuT Interface

Copyright (C) 2021 Lukas Wagenlehner

This file is part of "Sim To DuT Interface".

"Sim To DuT Interface" is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

std::map<std::string, boost::variant<std::string, std::vector<unsigned char>>> EthernetPacket::ToMap() { std::map<std::string, boost::variant<std::string, std::vector<unsigned char>>> map = {}; map["sourceMAC"] = sourceMAC; map["destinationMAC"] = destinationMAC; map["payload"] = payload; return map; }

"Sim To DuT Interface" is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with "Sim To DuT Interface". If not, see http://www.gnu.org/licenses/.

Author
Lukas Wagenlehner
Version
1.0

Sim To DuT Interface

Copyright (C) 2021 Marco Keul

This file is part of "Sim To DuT Interface".

"Sim To DuT Interface" is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

"Sim To DuT Interface" is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with "Sim To DuT Interface". If not, see http://www.gnu.org/licenses/.

Author
Marco Keul
Version
1.0

Sim To DuT Interface

Copyright (C) 2021 Marco Keul

This file is part of "Sim To DuT Interface".

"Sim To DuT Interface" is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

"Sim To DuT Interface" is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with "Sim To DuT Interface". If not, see http://www.gnu.org/licenses/.

Author
Marco Keul
Lukas Wagenlehner
Version
1.0

Sim To DuT Interface

Copyright (C) 2021 Lukas Wagenlehner

This file is part of "Sim To DuT Interface".

"Sim To DuT Interface" is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

"Sim To DuT Interface" is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with "Sim To DuT Interface". If not, see http://www.gnu.org/licenses/.

Author
Lukas Wagenlehner
Fabian Andre Genes
Thanaancheyan Thavapalan
Michael Schmitz
Version
1.0

Sim To DuT Interface

Copyright (C) 2021 Michael Schmitz

This file is part of "Sim To DuT Interface".

"Sim To DuT Interface" is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

"Sim To DuT Interface" is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with "Sim To DuT Interface". If not, see http://www.gnu.org/licenses/.

Author
Michael Schmitz
Fabian Andre Genes
Thanaanncheyan Thavapalan
Version
1.0

HIL - Periodic Timer This an utility to create periodic timers for SimEvents

Copyright (C) 2021 Michael Schmitz

This file is part of "HIL - Periodic Timer".

"HIL - Periodic Timer" is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

"HIL - Periodic Timer" is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with "HIL - Periodic Timer". If not, see http://www.gnu.org/licenses/.

Author
Michael Schmitz
Version
1.0

Enumeration Type Documentation

◆ LOG_LEVEL

Defines the level of logging

◆ LOG_TYPE

This enum collects all types of logger whose level can be changed. So there is a log level for logging messages in the console and another one to log messages in a file. Please notice that you can't change the level of the data logging, because all data objects will be logged with the same level.

Function Documentation

◆ operator<<() [1/2]

std::ostream & sim_interface::operator<< ( std::ostream &  os,
const SimEvent simEvent 
)

Returns a string representation of the event.

Parameters
os
simEvent
Returns

◆ operator<<() [2/2]

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

Returns a string representation for the interface.

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