OR.h revision 10447:a465576671d4
1#ifndef __DSENT_MODEL_ELECTRICAL_OR_H__
2#define __DSENT_MODEL_ELECTRICAL_OR_H__
3
4#include "util/CommonType.h"
5#include "model/ElectricalModel.h"
6
7namespace DSENT
8{
9    /**
10     * \brief A class that implements a n-input OR gate
11     */
12    class OR : public ElectricalModel
13    {
14        public:
15            OR(const String& instance_name_, const TechModel* tech_model_);
16            virtual ~OR();
17
18        public:
19            // Set a list of properties' name needed to construct model
20            void initParameters();
21            // Set a list of properties' name needed to construct model
22            void initProperties();
23
24            // Clone and return a new instance
25            virtual OR* clone() const;
26
27        protected:
28            // Build the model
29            virtual void constructModel();
30            virtual void propagateTransitionInfo();
31
32    }; // class OR
33} // namespace DSENT
34
35#endif // __DSENT_MODEL_ELECTRICAL_OR_H__
36
37