ThrottledLaserSource.h revision 10447
110447Snilay@cs.wisc.edu#ifndef __DSENT_MODEL_OPTICAL_THROTTLEDLASERSOURCE_H__
210447Snilay@cs.wisc.edu#define __DSENT_MODEL_OPTICAL_THROTTLEDLASERSOURCE_H__
310447Snilay@cs.wisc.edu
410447Snilay@cs.wisc.edu#include "util/CommonType.h"
510447Snilay@cs.wisc.edu#include "model/OpticalModel.h"
610447Snilay@cs.wisc.edu
710447Snilay@cs.wisc.edunamespace DSENT
810447Snilay@cs.wisc.edu{
910447Snilay@cs.wisc.edu    class OpticalWavelength;
1010447Snilay@cs.wisc.edu
1110447Snilay@cs.wisc.edu    // A laser source that outputs some number of wavelengths. This laser
1210447Snilay@cs.wisc.edu    // full on/off power gating, thus all power are event-based energies
1310447Snilay@cs.wisc.edu    class ThrottledLaserSource : public OpticalModel
1410447Snilay@cs.wisc.edu    {
1510447Snilay@cs.wisc.edu        public:
1610447Snilay@cs.wisc.edu            ThrottledLaserSource(const String& instance_name_, const TechModel* tech_model_);
1710447Snilay@cs.wisc.edu            virtual ~ThrottledLaserSource();
1810447Snilay@cs.wisc.edu
1910447Snilay@cs.wisc.edu        public:
2010447Snilay@cs.wisc.edu            // Set a list of properties' name needed to construct model
2110447Snilay@cs.wisc.edu            void initParameters();
2210447Snilay@cs.wisc.edu            // Set a list of properties' name needed to construct model
2310447Snilay@cs.wisc.edu            void initProperties();
2410447Snilay@cs.wisc.edu
2510447Snilay@cs.wisc.edu        protected:
2610447Snilay@cs.wisc.edu            // Build the model
2710447Snilay@cs.wisc.edu            void constructModel();
2810447Snilay@cs.wisc.edu            void updateModel();
2910447Snilay@cs.wisc.edu            void evaluateModel();
3010447Snilay@cs.wisc.edu            void useModel();
3110447Snilay@cs.wisc.edu
3210447Snilay@cs.wisc.edu        private:
3310447Snilay@cs.wisc.edu            // Data structure containing the wavelengths that this laser outputs
3410447Snilay@cs.wisc.edu            OpticalWavelength* m_wavelength_;
3510447Snilay@cs.wisc.edu
3610447Snilay@cs.wisc.edu    }; // class ThrottledLaserSource
3710447Snilay@cs.wisc.edu} // namespace DSENT
3810447Snilay@cs.wisc.edu
3910447Snilay@cs.wisc.edu#endif // __DSENT_MODEL_OPTICAL_THROTTLEDLASERSOURCE_H__
4010447Snilay@cs.wisc.edu
41