15 #include "testdriver.h"
17 #include "xnodeconnector.h"
21 REGISTER_TYPE(
XDriverList, TestDriver,
"Test driver: random number generation");
23 XTestDriver::XTestDriver(
const char *name,
bool runtime,
24 Transaction &tr_meas,
const shared_ptr<XMeasure> &meas) :
27 static_pointer_cast<
XDriver>(shared_from_this()),
"%.3g")),
29 static_pointer_cast<
XDriver>(shared_from_this()),
"%+.4f[K]")) {
31 meas->scalarEntries()->
insert(tr_meas, m_entryX);
32 meas->scalarEntries()->insert(tr_meas, m_entryY);
42 tr[ *
this].m_x = reader.pop<
double>();
43 tr[ *
this].m_y = reader.pop<
double>();
44 m_entryX->value(tr, tr[ *
this].m_x);
45 m_entryY->value(tr, tr[ *
this].m_y);
55 double x = randMT19937() - 0.2;
56 double y = randMT19937()- 0.2;
58 auto writer = std::make_shared<RawData>();