/* * File: ExecConfiguration.h * Author: lpiccoli * * Created on June 10, 2010, 2:20 PM */ #ifndef _EXECCONFIGURATION_H #define _EXECCONFIGURATION_H #include #include #include #include "Defs.h" #include "LoopConfiguration.h" #include "PvData.h" #include "PatternMask.h" FF_NAMESPACE_START typedef std::map LoopConfigurationMap; const std::string FFCONTROLLER_VERSION = "$Name: $"; /** * The ExecConfiguration contains configuration values associated with the whole * feedback system. Most of the configuration is provided by PVs. * * @author L.Piccoli */ class ExecConfiguration { public: ExecConfiguration(); virtual ~ExecConfiguration() { }; int initialize(); int reconfigure(); void clear(); LoopConfiguration *getLoopConfiguration(std::string loopName); static ExecConfiguration &getInstance(); int getLoopIndex(std::string loopName); int getSlotNames(std::vector &slotNames); /** * Map containing the feedback loop configurations, keyed by the * loop (slot) name */ LoopConfigurationMap _loopConfigurations; /** * Time delay between a fiducial callback and start of measurement collection */ double _measurementDelay; /** * Delay time after the fiducial, before collecting measurements. * * This attribute maps to the $(AREA):TIMERDELAY PV */ PvData _timerDelayPv; /** * PV String waveform in that holds a list of available algorithms. * * This attribute is mapped to the IOC:SYS0:FBxx:ITERFUNCS */ PvDataWaveform _algorithmsAvailable; /** * This PvData is mapped to the SIOC:SYS0:FBxx:TMITLOW PV through * ChannelAccess link. Whenever the low TMIT value changes this * attribute changes */ PvData _tmitLowPv; /** * This PvData is mapped to the SIOC:SYS0:FBxx:BY1BDES PV through * ChannelAccess link. Whenever the BY1BDES PV changes this attribute * is changed as well. */ PvData _by1BdesPv; /** * This PvData is mapped to the IOC:IN20:LS11:PASER_PWR_READBACK PV through * ChannelAccess link. Whenever the PASER_PWR_READBACK PV changes this attribute * is changed as well. */ PvData _laserPowerReadbackPv; PvData _s29AsumPv; /** Set to true if PatternGenerator is configured. Used for testing only. */ bool _hasPatternGenerator; }; FF_NAMESPACE_END #endif /* _EXECCONFIGURATION_H */