All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
solver.h
1 /* Copyright (C) 2004-2014 MBSim Development Team
2  *
3  * This library is free software; you can redistribute it and/or
4  * modify it under the terms of the GNU Lesser General Public
5  * License as published by the Free Software Foundation; either
6  * version 2.1 of the License, or (at your option) any later version.
7  *
8  * This library is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  * Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public
14  * License along with this library; if not, write to the Free Software
15  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16  *
17  * Contact: martin.o.foerg@googlemail.com
18  */
19 
20 #ifndef _SOLVER_H_
21 #define _SOLVER_H_
22 
23 #include <fmatvec/fmatvec.h>
24 #include <fmatvec/atom.h>
25 #include <mbxmlutilshelper/dom.h>
26 #include <mbsim/mbsim_event.h>
27 #include <string>
28 #include <iostream>
29 
30 namespace MBSim {
31 
32  class DynamicSystemSolver;
33 
38  class Solver : virtual public fmatvec::Atom {
39  public:
43  Solver() : fmatvec::Atom() { }
44 
48  virtual ~Solver() { }
49 
50  /* INTERFACE FOR DERIVED CLASSES */
55  virtual void execute(DynamicSystemSolver& system) = 0;
56 
57  virtual void initializeUsingXML(xercesc::DOMElement *element) = 0;
58 
59  virtual const fmatvec::Vec& getInitialState() const = 0;
60 
61  protected:
66  };
67 
68 }
69 
70 #endif /* _SOLVER_H_ */
71 
solver-interface for dynamic systems
Definition: solver.h:38
solver interface for modelling and simulation of dynamic systems
Definition: dynamic_system_solver.h:49
virtual ~Solver()
destructor
Definition: solver.h:48
virtual void execute(DynamicSystemSolver &system)=0
start solving the dynamic system
Solver()
constructor
Definition: solver.h:43
static DynamicSystemSolver * system
dynamic system
Definition: solver.h:65

Impressum / Disclaimer / Datenschutz Generated by doxygen 1.8.5 Valid HTML