SeparableAllocator.h revision 10448
16019Shines@cs.fsu.edu/* Copyright (c) 2012 Massachusetts Institute of Technology
26019Shines@cs.fsu.edu *
37152Sgblack@eecs.umich.edu * Permission is hereby granted, free of charge, to any person obtaining a copy
47152Sgblack@eecs.umich.edu * of this software and associated documentation files (the "Software"), to deal
57152Sgblack@eecs.umich.edu * in the Software without restriction, including without limitation the rights
67152Sgblack@eecs.umich.edu * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
77152Sgblack@eecs.umich.edu * copies of the Software, and to permit persons to whom the Software is
87152Sgblack@eecs.umich.edu * furnished to do so, subject to the following conditions:
97152Sgblack@eecs.umich.edu *
107152Sgblack@eecs.umich.edu * The above copyright notice and this permission notice shall be included in
117152Sgblack@eecs.umich.edu * all copies or substantial portions of the Software.
127152Sgblack@eecs.umich.edu *
137152Sgblack@eecs.umich.edu * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
147152Sgblack@eecs.umich.edu * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
156019Shines@cs.fsu.edu * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
166019Shines@cs.fsu.edu * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
176019Shines@cs.fsu.edu * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
186019Shines@cs.fsu.edu * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
196019Shines@cs.fsu.edu * THE SOFTWARE.
206019Shines@cs.fsu.edu */
216019Shines@cs.fsu.edu
226019Shines@cs.fsu.edu#ifndef __DSENT_MODEL_ELECTRICAL_SEPARABLE_ALLOCATOR_H__
236019Shines@cs.fsu.edu#define __DSENT_MODEL_ELECTRICAL_SEPARABLE_ALLOCATOR_H__
246019Shines@cs.fsu.edu
256019Shines@cs.fsu.edu#include "util/CommonType.h"
266019Shines@cs.fsu.edu#include "model/ElectricalModel.h"
276019Shines@cs.fsu.edu
286019Shines@cs.fsu.edunamespace DSENT
296019Shines@cs.fsu.edu{
306019Shines@cs.fsu.edu    class SeparableAllocator : public ElectricalModel
316019Shines@cs.fsu.edu    {
326019Shines@cs.fsu.edu        public:
336019Shines@cs.fsu.edu            SeparableAllocator(const String& instance_name_, const TechModel* tech_model_);
346019Shines@cs.fsu.edu            virtual ~SeparableAllocator();
356019Shines@cs.fsu.edu
366019Shines@cs.fsu.edu        public:
376019Shines@cs.fsu.edu            // Set a list of properties' name needed to construct model
386019Shines@cs.fsu.edu            void initParameters();
396019Shines@cs.fsu.edu            // Set a list of properties' name needed to construct model
406019Shines@cs.fsu.edu            void initProperties();
416019Shines@cs.fsu.edu
426019Shines@cs.fsu.edu            // Clone and return a new instance
436019Shines@cs.fsu.edu            virtual SeparableAllocator* clone() const;
446019Shines@cs.fsu.edu
456019Shines@cs.fsu.edu        protected:
466019Shines@cs.fsu.edu            // Build the model
476019Shines@cs.fsu.edu            virtual void constructModel();
487152Sgblack@eecs.umich.edu            virtual void updateModel();
497152Sgblack@eecs.umich.edu
507152Sgblack@eecs.umich.edu    }; // class SeparableAllocator
517152Sgblack@eecs.umich.edu} // namespace DSENT
527152Sgblack@eecs.umich.edu
537602SGene.Wu@arm.com#endif // __DSENT_MODEL_ELECTRICAL_SEPARABLE_ALLOCATOR_H__
547152Sgblack@eecs.umich.edu
557152Sgblack@eecs.umich.edu