Public Member Functions | Public Attributes | List of all members
XTempControl::Loop Class Reference

LOOPs. More...

Inheritance diagram for XTempControl::Loop:
Inheritance graph
[legend]

Public Member Functions

 Loop (const char *name, bool runtime, shared_ptr< XTempControl >, Transaction &tr, unsigned int idx, Transaction &tr_meas, const shared_ptr< XMeasure > &meas)
 
void start ()
 
void stop ()
 
void update (double temp)
 
double pid (const Snapshot &shot, XTime time, double temp)
 
bool hasExtDevice (const Snapshot &shot) const
 
void onPChanged (const Snapshot &shot, XValueNodeBase *)
 
void onIChanged (const Snapshot &shot, XValueNodeBase *)
 
void onDChanged (const Snapshot &shot, XValueNodeBase *)
 
void onTargetTempChanged (const Snapshot &shot, XValueNodeBase *)
 
void onManualPowerChanged (const Snapshot &shot, XValueNodeBase *)
 
void onHeaterModeChanged (const Snapshot &shot, XValueNodeBase *)
 
void onPowerRangeChanged (const Snapshot &shot, XValueNodeBase *)
 
void onPowerMaxChanged (const Snapshot &shot, XValueNodeBase *)
 
void onPowerMinChanged (const Snapshot &shot, XValueNodeBase *)
 
void onCurrentChannelChanged (const Snapshot &shot, XValueNodeBase *)
 
void onExtDeviceChanged (const Snapshot &shot, XValueNodeBase *)
 
- 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
 

Public Attributes

weak_ptr< XTempControlm_tempctrl
 
const unsigned int m_idx
 
shared_ptr< XItemNode
< XChannelList, XChannel > > 
m_currentChannel
 
const shared_ptr< XDoubleNodem_targetTemp
 
const shared_ptr< XDoubleNodem_manualPower
 
const shared_ptr< XDoubleNodem_prop
 
const shared_ptr< XDoubleNodem_int
 
const shared_ptr< XDoubleNodem_deriv
 
const shared_ptr< XComboNodem_heaterMode
 
const shared_ptr< XComboNodem_powerRange
 
const shared_ptr< XDoubleNodem_powerMax
 
const shared_ptr< XDoubleNodem_powerMin
 
const shared_ptr< XDoubleNodem_heaterPower
 
const shared_ptr< XDoubleNodem_sourceTemp
 
const shared_ptr< XDoubleNodem_stabilized
 holds an averaged error between target temp and actual one
 
const shared_ptr< XItemNode
< XDriverList, XDCSource,
XFlowControllerDriver > > 
m_extDevice
 
const shared_ptr< XComboNodem_extDCSourceChannel
 
const shared_ptr< XBoolNodem_extIsPositive
 
std::deque< xqcon_ptrm_conUIs
 
shared_ptr< XListenerm_lsnOnPChanged
 
shared_ptr< XListenerm_lsnOnIChanged
 
shared_ptr< XListenerm_lsnOnDChanged
 
shared_ptr< XListenerm_lsnOnTargetTempChanged
 
shared_ptr< XListenerm_lsnOnManualPowerChanged
 
shared_ptr< XListenerm_lsnOnHeaterModeChanged
 
shared_ptr< XListenerm_lsnOnPowerMaxChanged
 
shared_ptr< XListenerm_lsnOnPowerMinChanged
 
shared_ptr< XListenerm_lsnOnPowerRangeChanged
 
shared_ptr< XListenerm_lsnOnCurrentChannelChanged
 
shared_ptr< XListenerm_lsnOnSetupChannelChanged
 
shared_ptr< XListenerm_lsnOnExtDeviceChanged
 
double m_pidAccum
 
double m_pidLastTemp
 
XTime m_pidLastTime
 
double m_tempAvg
 
double m_tempErrAvg
 
XTime m_lasttime
 

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)
 
- Protected Member Functions inherited from Transactional::Node< XNode >
 Node ()
 Use create().
 

Detailed Description

LOOPs.

Definition at line 116 of file tempcontrol.h.


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

Generated for KAME4 by  doxygen 1.8.3