ccvs.h

00001 /***************************************************************************
00002  *   Copyright (C) 2003-2004 by David Saxton                               *
00003  *   david@bluehaze.org                                                    *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  ***************************************************************************/
00010 
00011 #ifndef CCVS_H
00012 #define CCVS_H
00013 
00014 #include "element.h"
00015 
00024 class CCVS : public Element
00025 {
00026 public:
00027         CCVS( const double gain );
00028         virtual ~CCVS();
00029         
00030         virtual Type type() const { return Element_CCVS; }
00031         void setGain( const double g );
00032         virtual void add_map();
00033         
00034 protected:
00035         virtual void updateCurrents();
00036         virtual void add_initial_dc();
00037         
00038 private:
00039         double m_g; // Conductance
00040 };
00041 
00042 #endif

Generated on Tue May 8 17:05:28 2007 for KTechLab by  doxygen 1.5.1