Classes | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
XMonteCarloDriver Class Reference
Inheritance diagram for XMonteCarloDriver:
Inheritance graph
[legend]

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
 
- Public Member Functions inherited from XDummyDriver< XPrimaryDriver >
 XDummyDriver (const char *name, bool runtime, Transaction &tr_meas, const shared_ptr< XMeasure > &meas)
 
- Public Member Functions inherited from XPrimaryDriver
 XPrimaryDriver (const char *name, bool runtime, Transaction &tr_meas, const shared_ptr< XMeasure > &meas)
 
- Public Member Functions inherited from XDriver
 XDriver (const char *name, bool runtime, Transaction &tr_meas, const shared_ptr< XMeasure > &meas)
 
- Public Member Functions inherited from XNode
 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< XNodegetChild (const XString &var) const
 
shared_ptr< XNodegetParent () const
 
void setUIEnabled (bool v)
 Enables/disables controls over scripting/GUI.
 
void disable ()
 Disables all scripting/GUI operations on this node hereafter.
 
- Public Member Functions inherited from Transactional::Node< XNode >
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)
 
XNodeupperNode (Snapshot< XNode > &shot)
 Finds the parent node in shot.
 
Snapshot< XNodeiterate_commit (Closure)
 
Snapshot< XNodeiterate_commit_if (Closure)
 
void iterate_commit_while (Closure)
 
void print_ () const
 
 Node (const Node &)=delete
 
Nodeoperator= (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)
 
- Protected Member Functions inherited from XDummyDriver< XPrimaryDriver >
virtual void closeInterface ()
 
const shared_ptr
< XDummyInterface > & 
interface () const
 
- Protected Member Functions inherited from XPrimaryDriver
void finishWritingRaw (const shared_ptr< const RawData > &rawdata, const XTime &time_awared, const XTime &time_recorded)
 
- Protected Member Functions inherited from XDriver
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< XDoubleNodem_targetTemp
 
shared_ptr< XDoubleNodem_targetField
 
shared_ptr< XDoubleNodem_hdirx
 
shared_ptr< XDoubleNodem_hdiry
 
shared_ptr< XDoubleNodem_hdirz
 
shared_ptr< XUIntNodem_L
 
shared_ptr< XDoubleNodem_cutoffReal
 
shared_ptr< XDoubleNodem_cutoffRec
 
shared_ptr< XDoubleNodem_alpha
 
shared_ptr< XDoubleNodem_minTests
 
shared_ptr< XDoubleNodem_minFlips
 
shared_ptr< XTouchableNodem_step
 
shared_ptr< XComboNodem_graph3D
 
shared_ptr< XScalarEntrym_entryT
 
shared_ptr< XScalarEntrym_entryH
 
shared_ptr< XScalarEntrym_entryU
 
shared_ptr< XScalarEntrym_entryC
 
shared_ptr< XScalarEntrym_entryCoT
 
shared_ptr< XScalarEntrym_entryS
 
shared_ptr< XScalarEntrym_entryM
 
shared_ptr< XScalarEntrym_entry2in2
 
shared_ptr< XScalarEntrym_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< FrmMonteCarlom_form
 
shared_ptr< XWaveNGraphm_wave3D
 
shared_ptr< XListenerm_lsnTargetChanged
 
shared_ptr< XListenerm_lsnStepTouched
 
shared_ptr< XListenerm_lsnGraphChanged
 
shared_ptr< XStatusPrinterm_statusPrinter
 

Additional Inherited Members

- Public Types inherited from Transactional::Node< XNode >
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
 
- Static Public Member Functions inherited from XNode
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)
 

Detailed Description

Definition at line 27 of file kamemontecarlo.h.

Member Function Documentation

void XMonteCarloDriver::analyzeRaw ( RawDataReader reader,
Transaction tr 
) throw (XRecordError&)
protectedvirtual

This function will be called when raw data are written. Implement this function to convert the raw data to the record (Payload).

See Also
analyze()

Implements XPrimaryDriver.

Definition at line 271 of file kamemontecarlo.cpp.

References MonteCarlo::Quartet::onethree, and MonteCarlo::Quartet::twotwo.

void XMonteCarloDriver::showForms ( )
virtual

show all forms belonging to driver

impliment form->show() here

Implements XPrimaryDriver.

Definition at line 198 of file kamemontecarlo.cpp.

void XMonteCarloDriver::stop ( )
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.

void XMonteCarloDriver::visualize ( const Snapshot shot)
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().


The documentation for this class was generated from the following files:

Generated for KAME4 by  doxygen 1.8.3