29 |
#include <solver/integrator.h> |
#include <solver/integrator.h> |
30 |
} |
} |
31 |
|
|
32 |
|
#include <ostream> |
33 |
|
|
34 |
class Integrator; |
class Integrator; |
35 |
|
|
36 |
/** |
/** |
59 |
|
|
60 |
Integrator *getIntegrator(); |
Integrator *getIntegrator(); |
61 |
|
|
62 |
private: |
protected: |
63 |
Integrator *integrator; /**< pointer back to integrator */ |
Integrator *integrator; /**< pointer back to integrator */ |
64 |
IntegratorReporter reporter; /**< for passing to C */ |
IntegratorReporter reporter; /**< for passing to C */ |
65 |
|
|
66 |
IntegratorReporter *getInternalType(); |
IntegratorReporter *getInternalType(); |
67 |
}; |
}; |
68 |
|
|
69 |
|
/** |
70 |
|
NULL integrator reporter. This reporter won't output ANYTHING at all. |
71 |
|
*/ |
72 |
class IntegratorReporterNull : public IntegratorReporterCxx{ |
class IntegratorReporterNull : public IntegratorReporterCxx{ |
73 |
public: |
public: |
74 |
IntegratorReporterNull(Integrator *); |
IntegratorReporterNull(Integrator *); |
80 |
virtual int recordObservedValues(); |
virtual int recordObservedValues(); |
81 |
}; |
}; |
82 |
|
|
83 |
|
/** |
84 |
|
Simple console based integrator reporter. Output the observed variables |
85 |
|
to the console at each sample point. |
86 |
|
*/ |
87 |
|
class IntegratorReporterConsole : public IntegratorReporterCxx{ |
88 |
|
private: |
89 |
|
std::ostream &f; |
90 |
|
public: |
91 |
|
IntegratorReporterConsole(Integrator *); |
92 |
|
virtual ~IntegratorReporterConsole(); |
93 |
|
|
94 |
|
virtual int initOutput(); |
95 |
|
virtual int closeOutput(); |
96 |
|
virtual int updateStatus(); |
97 |
|
virtual int recordObservedValues(); |
98 |
|
}; |
99 |
|
|
100 |
|
|
101 |
int ascxx_integratorreporter_init(IntegratorSystem *blsys); |
int ascxx_integratorreporter_init(IntegratorSystem *blsys); |
102 |
int ascxx_integratorreporter_write(IntegratorSystem *blsys); |
int ascxx_integratorreporter_write(IntegratorSystem *blsys); |
103 |
int ascxx_integratorreporter_write_obs(IntegratorSystem *blsys); |
int ascxx_integratorreporter_write_obs(IntegratorSystem *blsys); |