#include <RBCEmulator.h>
Public Member Functions | |
void | emulate () |
void | emulate (RBCInput *) |
bool | getdecision (int idx) const |
std::bitset< 6 > * | getlayersignal (int idx) |
bool | initialise () |
void | printinfo () const |
void | printlayerinfo () const |
RBCEmulator () | |
Standard constructor. More... | |
RBCEmulator (const char *) | |
RBCEmulator (const char *, const char *) | |
RBCEmulator (const char *, const char *, int, int *) | |
const RBCId & | rbcinfo () const |
void | reset () |
void | setid (int, int *) |
void | setSpecifications (const RBCBoardSpecs *) |
Private Attributes | |
bool | m_debug |
std::bitset< 2 > | m_decision |
RBCInput | m_input |
std::bitset< 6 > * | m_layersignal [2] |
std::array< std::bitset< 6 >, 2 > | m_layersignalVec |
std::string | m_logtype |
std::unique_ptr< RBCConfiguration > | m_rbcconf |
RBCId | m_rbcinfo |
std::unique_ptr< ProcessInputSignal > | m_signal |
RBCEmulator::RBCEmulator | ( | ) |
Standard constructor.
Definition at line 18 of file RBCEmulator.cc.
References m_debug, m_input, m_layersignal, m_layersignalVec, m_logtype, and m_signal.
RBCEmulator::RBCEmulator | ( | const char * | logic_type | ) |
Definition at line 29 of file RBCEmulator.cc.
References m_debug, m_input, m_layersignal, m_layersignalVec, m_logtype, m_rbcconf, and m_signal.
RBCEmulator::RBCEmulator | ( | const char * | f_name, |
const char * | logic_type | ||
) |
Definition at line 41 of file RBCEmulator.cc.
References m_debug, m_input, m_layersignal, m_layersignalVec, m_logtype, m_rbcconf, and m_signal.
RBCEmulator::RBCEmulator | ( | const char * | , |
const char * | , | ||
int | , | ||
int * | |||
) |
void RBCEmulator::emulate | ( | ) |
Definition at line 81 of file RBCEmulator.cc.
References gather_cfg::cout, data, m_debug, m_input, m_layersignal, m_rbcconf, m_signal, and printlayerinfo().
void RBCEmulator::emulate | ( | RBCInput * | in | ) |
Definition at line 109 of file RBCEmulator.cc.
References gather_cfg::cout, m_debug, m_decision, m_input, m_layersignal, m_rbcconf, m_rbcinfo, printlayerinfo(), RBCInput::setWheelId(), and RBCId::wheel().
|
inline |
Definition at line 50 of file RBCEmulator.h.
References training_settings::idx, m_decision, printinfo(), and printlayerinfo().
|
inline |
bool RBCEmulator::initialise | ( | ) |
Definition at line 61 of file RBCEmulator.cc.
References gather_cfg::cout, m_debug, m_rbcconf, and mps_update::status.
void RBCEmulator::printinfo | ( | ) | const |
Definition at line 156 of file RBCEmulator.cc.
References gather_cfg::cout, m_debug, m_rbcinfo, and RBCId::printinfo().
Referenced by getdecision().
void RBCEmulator::printlayerinfo | ( | ) | const |
Definition at line 166 of file RBCEmulator.cc.
References gather_cfg::cout, mps_fire::i, and m_layersignal.
Referenced by emulate(), and getdecision().
|
inline |
void RBCEmulator::reset | ( | void | ) |
void RBCEmulator::setid | ( | int | wh, |
int * | sec | ||
) |
void RBCEmulator::setSpecifications | ( | const RBCBoardSpecs * | rbcspecs | ) |
|
private |
Definition at line 78 of file RBCEmulator.h.
Referenced by emulate(), initialise(), printinfo(), and RBCEmulator().
|
private |
Definition at line 71 of file RBCEmulator.h.
Referenced by emulate(), getdecision(), and reset().
|
private |
Definition at line 67 of file RBCEmulator.h.
Referenced by emulate(), and RBCEmulator().
|
private |
Definition at line 69 of file RBCEmulator.h.
Referenced by emulate(), getlayersignal(), printlayerinfo(), RBCEmulator(), and reset().
|
private |
Definition at line 73 of file RBCEmulator.h.
Referenced by RBCEmulator().
|
private |
Definition at line 76 of file RBCEmulator.h.
Referenced by RBCEmulator().
|
private |
Definition at line 65 of file RBCEmulator.h.
Referenced by emulate(), initialise(), RBCEmulator(), and setSpecifications().
|
private |
Definition at line 61 of file RBCEmulator.h.
Referenced by emulate(), printinfo(), rbcinfo(), setid(), and setSpecifications().
|
private |
Definition at line 63 of file RBCEmulator.h.
Referenced by emulate(), and RBCEmulator().