LoadFunction.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  * File:        ./LoadFunction.h
00003  * Author:      Ronni Grapenthin, Geophysical Institute, UAF
00004  * Created:     2008-02-19
00005  * Licence:     GPLv2
00006  *
00007  * #########################################################################
00008  *
00009  * CrusDe, simulation framework for crustal deformation studies
00010  * Copyright (C) 2007 Ronni Grapenthin
00011  *
00012  * This program is free software; you can redistribute it and/or
00013  * modify it under the terms of the GNU General Public License
00014  * as published by the Free Software Foundation; version 2
00015  * of the License.
00016  *
00017  * This program is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020  * GNU General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU General Public License
00023  * along with this program; if not, write to the Free Software
00024  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00025  *
00026  ****************************************************************************/
00027 
00028 #ifndef _load_function_bin_h
00029 #define _load_function_bin_h
00030 
00031 #include "Plugin.h"
00032 #include "LoadPlugin.h"
00033 #include "LoadHistoryPlugin.h"
00034 #include "LoadFunctionElement.h"
00035 #include "CrustalDecayPlugin.h"
00036 #include "constants.h"
00037 #include "config.h"
00038 #include <iostream>
00039 #include <cassert>
00040 #include <dlfcn.h>
00041 #include <map>
00042 #include <list>
00043 
00044 using namespace std;
00045 
00050 class LoadFunction : public Plugin
00051 {
00052 
00053         private:
00054                 multimap<LoadPlugin*, pair<LoadHistoryPlugin*, CrustalDecayPlugin*> >::iterator   map_iter;
00055                 multimap<LoadPlugin*, pair<LoadHistoryPlugin*, CrustalDecayPlugin*> >             pl_load_map;
00056                 double        load_value;
00057                 unsigned int  load_function_component;
00058                 
00060                 LoadFunction(const LoadPlugin& x); 
00061 
00062         public:
00063                 LoadFunction(const string);             /* Constructor */
00064                 virtual ~LoadFunction();                /* Destructor */
00065                 
00066 //              virtual void selftest();
00067                 
00068                 /*plug - in interface*/
00069                 double  getValueAt(int, int);
00070                 double  getHistoryValueAt(int);
00071                 double  getCrustalDecayValueAt(int);
00072                 boolean crustalDecayGiven();            
00073                 boolean loadHistoryGiven();             
00074 
00075         void load(list<LoadFunctionElement*> );
00076                 void unload() throw (LibHandleError);
00077                 void registerParameter();
00078                 void registerOutputFields();
00079                 void requestPlugins();
00080                 void init();
00081                 void release();
00082                 
00083 //              void selftest();
00084 
00085 };
00086 
00087 
00088 #endif // _load_function_bin_h

Generated on Sun Aug 31 13:18:59 2008 for CrusDe by  doxygen 1.5.0