|
Computer Assited Medical Intervention Tool Kit
version 5.0
|
|
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
void init() override=0
initialize the simulator
void end() override=0
end simultor
Elapsed real-time timer. Allows one to measure elapsed real time. You can start, stop,...
Definition: Chrono.h:40
StoppingCriterion * getStoppingCriterion()
get Stopping Criterion
Definition: InteractiveMonitoringManager.cpp:100
double dt
integration step
Definition: MonitoringManager.h:170
bool init() override
Initialize manager.
Definition: InteractiveMonitoringManager.cpp:64
#define MML_API
Definition: MMLAPI.h:43
void saveMonitors()
Save save monitors' state for the current time.
Definition: MonitoringManager.cpp:200
virtual void end()=0
End manager.
void updateComputingTime()
add step computing time to total computing time
Definition: MonitoringManager.cpp:325
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:100
virtual bool checkCriterion()=0
return true if the stopping criterion is reach
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:38
std::unique_ptr< mml::MonitoringIn > mmlIn
Object representing manager in the file generated by xsdcxx, can be used for serialization.
Definition: MonitoringManager.h:163
void end() override
End manager.
Definition: InteractiveMonitoringManager.cpp:85
Manager of the benchmark tests. Do simulation loop and tests.
Definition: MonitoringManager.h:50
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:48
Simulator * simul
the simulator used for simualtion
Definition: MonitoringManager.h:185
void updateCurrentTime()
add dt to current time
Definition: MonitoringManager.cpp:319
InteractiveSimulator * simul
the simulator used for simualtion
Definition: InteractiveMonitoringManager.h:102
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:44
void incStep()
increment step by one
Definition: MonitoringManager.cpp:330
Interactice managers are managers linked with an interactive simulator.
Definition: InteractiveMonitoringManager.h:51
double stepComputingTime
computing time of last step
Definition: MonitoringManager.h:181
static StoppingCriterion * createStoppingCriterion(mml::StoppingCriteria *s, MonitoringManager *monitoringManager, MultipleCriterion *parent=nullptr)
create a stopping criterion according to xsdcxx generated stopping criterion
Definition: StoppingCriterionFactory.cpp:32
InteractiveMonitoringManager(const char *mml)
constructor
Definition: InteractiveMonitoringManager.cpp:40