20 #ifndef _INTEGRATOR_H_
21 #define _INTEGRATOR_H_
23 #define MBSIMINTNS "{http://mbsim.berlios.de/MBSimIntegrator}"
26 #include"mbsimtinyxml/tinyxml-src/tinyxml.h"
32 class DynamicSystemSolver;
52 void setStartTime(
double tStart_) {
tStart=tStart_; }
53 void setEndTime(
double tEnd_) { tEnd = tEnd_; }
54 void setPlotStepSize(
double dtPlot_) { dtPlot = dtPlot_; }
55 void setInitialState(
const fmatvec::Vec &z0_) {
z0 = z0_; }
56 void setWarnLevel(
int level) {
warnLevel = level; }
57 void setOutput(
bool flag) {
output = flag; }
58 double getStartTime() {
return tStart; }
68 virtual void preIntegrate(DynamicSystemSolver&
system) { std::cout<<
"preIntegrate is not defined\n"<<std::endl; }
69 virtual void subIntegrate(DynamicSystemSolver&
system,
double tStop) { std::cout<<
"subIntegrate is not defined\n"<<std::endl; }
70 virtual void postIntegrate(DynamicSystemSolver&
system) { std::cout<<
"postIntegrate is not defined\n"<<std::endl; }