Classes | |
struct | Payload |
Public Member Functions | |
XMonteCarloDriver (const char *name, bool runtime, Transaction &tr_meas, const shared_ptr< XMeasure > &meas) | |
virtual | ~XMonteCarloDriver () |
usually nothing to do | |
virtual void | showForms () |
show all forms belonging to driver | |
![]() | |
XDummyDriver (const char *name, bool runtime, Transaction &tr_meas, const shared_ptr< XMeasure > &meas) | |
![]() | |
XPrimaryDriver (const char *name, bool runtime, Transaction &tr_meas, const shared_ptr< XMeasure > &meas) | |
![]() | |
XDriver (const char *name, bool runtime, Transaction &tr_meas, const shared_ptr< XMeasure > &meas) | |
![]() | |
XNode (const char *name, bool runtime=false) | |
template<class T > | |
shared_ptr< T > | create (const char *name) |
template<class T , typename... Args> | |
shared_ptr< T > | create (const char *name, bool runtime, Args &&...args) |
template<class T > | |
shared_ptr< T > | create (Transaction &tr, const char *name) |
template<class T , typename... Args> | |
shared_ptr< T > | create (Transaction &tr, const char *name, bool runtime, Args &&...args) |
XString | getName () const |
virtual XString | getLabel () const |
XString | getTypename () const |
shared_ptr< XNode > | getChild (const XString &var) const |
shared_ptr< XNode > | getParent () const |
void | setUIEnabled (bool v) |
Enables/disables controls over scripting/GUI. | |
void | disable () |
Disables all scripting/GUI operations on this node hereafter. | |
![]() | |
bool | insert (Transaction< XNode > &tr, const shared_ptr< XNode > &var, bool online_after_insertion=false) |
void | insert (const shared_ptr< XNode > &var) |
bool | release (Transaction< XNode > &tr, const shared_ptr< XNode > &var) |
void | release (const shared_ptr< XNode > &var) |
void | releaseAll () |
bool | swap (Transaction< XNode > &tr, const shared_ptr< XNode > &x, const shared_ptr< XNode > &y) |
void | swap (const shared_ptr< XNode > &x, const shared_ptr< XNode > &y) |
XNode * | upperNode (Snapshot< XNode > &shot) |
Finds the parent node in shot. | |
Snapshot< XNode > | iterate_commit (Closure) |
Snapshot< XNode > | iterate_commit_if (Closure) |
void | iterate_commit_while (Closure) |
void | print_ () const |
Node (const Node &)=delete | |
Node & | operator= (const Node &)=delete |
Protected Member Functions | |
virtual void | start () |
Starts up your threads, connects GUI, and activates signals. | |
virtual void | stop () |
virtual void | analyzeRaw (RawDataReader &reader, Transaction &tr) throw (XRecordError&) |
virtual void | visualize (const Snapshot &shot) |
![]() | |
virtual void | closeInterface () |
const shared_ptr < XDummyInterface > & | interface () const |
![]() | |
void | finishWritingRaw (const shared_ptr< const RawData > &rawdata, const XTime &time_awared, const XTime &time_recorded) |
![]() | |
void | record (Transaction &tr, const XTime &time_awared, const XTime &time_recorded) |
Private Member Functions | |
void | execute (int flips, long double tests) |
void | onTargetChanged (const Snapshot &shot, XValueNodeBase *) |
void | onGraphChanged (const Snapshot &shot, XValueNodeBase *) |
void | onStepTouched (const Snapshot &shot, XTouchableNode *) |
Private Attributes | |
shared_ptr< XDoubleNode > | m_targetTemp |
shared_ptr< XDoubleNode > | m_targetField |
shared_ptr< XDoubleNode > | m_hdirx |
shared_ptr< XDoubleNode > | m_hdiry |
shared_ptr< XDoubleNode > | m_hdirz |
shared_ptr< XUIntNode > | m_L |
shared_ptr< XDoubleNode > | m_cutoffReal |
shared_ptr< XDoubleNode > | m_cutoffRec |
shared_ptr< XDoubleNode > | m_alpha |
shared_ptr< XDoubleNode > | m_minTests |
shared_ptr< XDoubleNode > | m_minFlips |
shared_ptr< XTouchableNode > | m_step |
shared_ptr< XComboNode > | m_graph3D |
shared_ptr< XScalarEntry > | m_entryT |
shared_ptr< XScalarEntry > | m_entryH |
shared_ptr< XScalarEntry > | m_entryU |
shared_ptr< XScalarEntry > | m_entryC |
shared_ptr< XScalarEntry > | m_entryCoT |
shared_ptr< XScalarEntry > | m_entryS |
shared_ptr< XScalarEntry > | m_entryM |
shared_ptr< XScalarEntry > | m_entry2in2 |
shared_ptr< XScalarEntry > | m_entry1in3 |
xqcon_ptr | m_conLength |
xqcon_ptr | m_conCutoffReal |
xqcon_ptr | m_conCutoffRec |
xqcon_ptr | m_conAlpha |
xqcon_ptr | m_conTargetTemp |
xqcon_ptr | m_conTargetField |
xqcon_ptr | m_conHDirX |
xqcon_ptr | m_conHDirY |
xqcon_ptr | m_conHDirZ |
xqcon_ptr | m_conMinTests |
xqcon_ptr | m_conMinFlips |
xqcon_ptr | m_conStep |
xqcon_ptr | m_conGraph3D |
qshared_ptr< FrmMonteCarlo > | m_form |
shared_ptr< XWaveNGraph > | m_wave3D |
shared_ptr< XListener > | m_lsnTargetChanged |
shared_ptr< XListener > | m_lsnStepTouched |
shared_ptr< XListener > | m_lsnGraphChanged |
shared_ptr< XStatusPrinter > | m_statusPrinter |
Additional Inherited Members | |
![]() | |
using | NodeNotFoundError = std::domain_error |
using | NodeList = fast_vector< shared_ptr< XNode >, 2 > |
using | iterator = typename NodeList::iterator |
using | const_iterator = typename NodeList::const_iterator |
![]() | |
template<class T__ > | |
static shared_ptr< T__ > | createOrphan (const char *name) |
template<class T__ , typename... Args_> | |
static shared_ptr< T__ > | createOrphan (const char *name, bool runtime, Args_ &&...args) |
Definition at line 27 of file kamemontecarlo.h.
|
protectedvirtual |
This function will be called when raw data are written. Implement this function to convert the raw data to the record (Payload).
Implements XPrimaryDriver.
Definition at line 271 of file kamemontecarlo.cpp.
References MonteCarlo::Quartet::onethree, and MonteCarlo::Quartet::twotwo.
|
virtual |
show all forms belonging to driver
impliment form->show() here
Implements XPrimaryDriver.
Definition at line 198 of file kamemontecarlo.cpp.
|
protectedvirtual |
Shuts down your threads, unconnects GUI, and deactivates signals This function may be called even if driver has already stopped.
Implements XPrimaryDriver.
Definition at line 255 of file kamemontecarlo.cpp.
References MonteCarlo::s_bAborting.
|
protectedvirtual |
This function is called after committing XPrimaryDriver::analyzeRaw() or XSecondaryDriver::analyze(). This might be called even if the record is invalid (time() == false).
Implements XDriver.
Definition at line 320 of file kamemontecarlo.cpp.
References Transactional::Node< XNode >::iterate_commit().