 |
Computer Assited Medical Intervention Tool Kit
version 4.1
|
Go to the documentation of this file.
26 #ifndef MANAGER_INTERACTIVEMANAGER_H
27 #define MANAGER_INTERACTIVEMANAGER_H
36 #include <MonitorIn.hxx>
37 #include <MonitorOut.hxx>
85 #endif // MANAGER_INTERACTIVEMANAGER_H
Elapsed real-time timer. Allows one to measure elapsed real time. You can start, stop,...
Definition: Chrono.h:39
StoppingCriterion * getStoppingCriterion()
get Stopping Criterion
Definition: InteractiveMonitoringManager.cpp:100
double dt
integration step
Definition: MonitoringManager.h:169
bool init() override
Initialize manager.
Definition: InteractiveMonitoringManager.cpp:64
#define MML_API
Definition: MMLAPI.h:42
void saveMonitors()
Save save monitors' state for the current time.
Definition: MonitoringManager.cpp:199
virtual void end()=0
End manager.
void updateComputingTime()
add step computing time to total computing time
Definition: MonitoringManager.cpp:324
void doMove() override
make a simulation move (one step)
Definition: InteractiveMonitoringManager.cpp:72
StoppingCriterion * stop
the stopping criteria to check in order to know when simulation loop should be stopped
Definition: InteractiveMonitoringManager.h:98
virtual bool checkCriterion()=0
return true if the stopping criterion is reach
void init()=0
initialize the simulator
double stop()
stop chrono
Definition: Chrono.cpp:117
~InteractiveMonitoringManager() override
destructor
Definition: InteractiveMonitoringManager.cpp:52
virtual void doMove(double dt)=0
ask the simulator do to one step of the simulation
virtual bool init()=0
Initialize manager.
An interactive simulator is a simulator that we can control step by step (ex: Sofa)
Definition: InteractiveSimulator.h:37
std::unique_ptr< mml::MonitoringIn > mmlIn
Object representing manager in the file generated by xsdcxx, can be used for serialization.
Definition: MonitoringManager.h:162
void end() override
End manager.
Definition: InteractiveMonitoringManager.cpp:85
Manager of the benchmark tests. Do simulation loop and tests.
Definition: MonitoringManager.h:49
virtual void doMove()=0
Do one step of simulation and save monitors for this step.
class which represent the stopping criterion to check to stop simulation a StoppingCriterion is eithe...
Definition: StoppingCriterion.h:47
Simulator * simul
the simulator used for simualtion
Definition: MonitoringManager.h:184
void updateCurrentTime()
add dt to current time
Definition: MonitoringManager.cpp:318
InteractiveSimulator * simul
the simulator used for simualtion
Definition: InteractiveMonitoringManager.h:100
virtual bool checkStop()=0
Check if simulation is finished.
void start()
start at zero
Definition: Chrono.cpp:104
bool checkStop() override
check if the stopping criterion is reached
Definition: InteractiveMonitoringManager.cpp:90
void updatePositions()
update all current positions and store last positions
Definition: Simulator.cpp:43
void incStep()
increment step by one
Definition: MonitoringManager.cpp:329
Interactice managers are managers linked with an interactive simulator.
Definition: InteractiveMonitoringManager.h:50
double stepComputingTime
computing time of last step
Definition: MonitoringManager.h:180
static StoppingCriterion * createStoppingCriterion(mml::StoppingCriteria *s, MonitoringManager *monitoringManager, MultipleCriterion *parent=nullptr)
create a stopping criterion according to xsdcxx generated stopping criterion
Definition: StoppingCriterionFactory.cpp:31
InteractiveMonitoringManager(const char *mml)
constructor
Definition: InteractiveMonitoringManager.cpp:40