00001 /********************************************************************** 00002 ** This program is part of 'MOOSE', the 00003 ** Messaging Object Oriented Simulation Environment. 00004 ** Copyright (C) 2003-2010 Upinder S. Bhalla. and NCBS 00005 ** It is made available under the terms of the 00006 ** GNU Lesser General Public License version 2.1 00007 ** See the file COPYING.LIB for the full notice. 00008 **********************************************************************/ 00009 00010 #ifndef _REAC_H 00011 #define _REAC_H 00012 00013 class Reac: public ReacBase 00014 { 00015 public: 00016 Reac(); 00017 // Reac( double kf, double kb ); 00018 00020 // Field assignment stuff 00022 00023 void vSetNumKf( const Eref&e, double v ); 00024 double vGetNumKf( const Eref& e ) const; 00025 void vSetNumKb( const Eref&e, double v ); 00026 double vGetNumKb( const Eref& e ) const; 00027 00029 void vSetConcKf( const Eref& e, double v ); 00031 double vGetConcKf( const Eref& e ) const; 00032 00034 void vSetConcKb( const Eref& e, double v ); 00036 double vGetConcKb( const Eref& e ) const; 00037 00039 // Dest funcs 00041 00042 void vProcess( const Eref& e, ProcPtr p ); 00043 void vReinit( const Eref& e, ProcPtr p ); 00044 void vSub( double v ); 00045 void vPrd( double v ); 00046 void vRemesh( const Eref& e ); 00047 00048 static const Cinfo* initCinfo(); 00049 private: 00050 double kf_; // Used for EE method, but secondary to the ConcKf 00051 double kb_; // Used for EE method, but secondary to the ConcKf 00052 double sub_; // State variable 00053 double prd_; // State variable 00054 }; 00055 00056 #endif // REAC_H