A GUI to manipulate mml documents. More...
#include <MonitoringGuiManager.h>
Public Slots | |
bool | doOneStep () |
do one step of simulation More... | |
void | reload () |
reload simulation with current parameters More... | |
Signals | |
void | changed () |
emitted when one step of simulation is done, there was changes, so maybe there are some display to update More... | |
void | reconnectPml () |
Public Member Functions | |
MonitoringDialog * | getDialog () |
get dialog More... | |
MonitoringDriver * | getDriver () |
get driver More... | |
MonitoringManager * | getMonitoringManager () |
get Monitoring Manager More... | |
bool | loadMmlInFile (QString fileName) |
Load a MMLIn file. More... | |
MonitoringGuiManager () | |
constructor More... | |
void | pause () |
pause simulation More... | |
void | rewind () |
rewind simulation More... | |
bool | saveCsvFile (QString fileName) |
Save csv file. More... | |
bool | saveMmlInFile (QString fileName) |
Save MMLIn file. More... | |
bool | saveMmlOutFile (QString fileName) |
Save MMLout file. More... | |
void | simulate () |
do simulation lopp More... | |
void | simulateOneStep () |
do one step of simulation More... | |
void | updateDt (double dt) |
update dt More... | |
void | updateLml (QString fileName) |
update lml More... | |
void | updatePml (QString fileName) |
update pml More... | |
void | updateRefresh (double refresh) |
update refresh More... | |
~MonitoringGuiManager () override | |
destructor More... | |
Private Attributes | |
MonitoringDialog * | dialog |
the dialog box More... | |
MonitoringDriver * | driver |
the simulation driver More... | |
double | lastRefreshTime |
last refresh time More... | |
MonitoringManager * | monitoringManager |
Monitoring manager. More... | |
A GUI to manipulate mml documents.
MonitoringGuiManager::MonitoringGuiManager | ( | ) |
constructor
References dialog, driver, MonitoringDialog::init(), MonitoringDriver::init(), lastRefreshTime, and monitoringManager.
|
override |
destructor
References dialog, driver, and monitoringManager.
|
signal |
emitted when one step of simulation is done, there was changes, so maybe there are some display to update
Referenced by doOneStep(), and rewind().
|
slot |
do one step of simulation
References changed(), MonitoringManager::checkStop(), dialog, MonitoringManager::doMove(), driver, MonitoringManager::getCurrentTime(), MonitoringManager::getRefresh(), lastRefreshTime, monitoringManager, MonitoringDriver::stopTimer(), and MonitoringDialog::updateSimulation().
Referenced by simulate(), and simulateOneStep().
MonitoringDialog * MonitoringGuiManager::getDialog | ( | ) |
get dialog
References dialog.
Referenced by MMLDisplay::connectMonitor(), MMLDisplay::getDisplayedMonitor(), MMLDisplay::getDisplayedMonitorLine(), SimulationDialog::getWidget(), Statistics::hide(), Tabular::hide(), MMLComponent::MMLComponent(), MMLDisplay::MMLDisplay(), Statistics::Statistics(), Tabular::Tabular(), Statistics::update(), Tabular::update(), and MMLDisplay::updateMonitorsTable().
MonitoringDriver * MonitoringGuiManager::getDriver | ( | ) |
get driver
References driver.
Referenced by MonitoringDialog::MonitoringDialog().
MonitoringManager * MonitoringGuiManager::getMonitoringManager | ( | ) |
get Monitoring Manager
References monitoringManager.
Referenced by MMLDisplay::connectMonitor(), MMLComponent::connectPml(), MonitoringDialog::enableButtons(), MMLDisplay::getDisplayedMonitor(), MMLComponent::MMLComponent(), MonitoringDialog::updateAll(), MonitoringDialog::updateMonitors(), MMLDisplay::updateMonitorsTable(), MonitoringDialog::updateSimulation(), MonitoringDialog::updateSimulatorWidget(), and MonitoringDialog::updateStoppingCriteria().
bool MonitoringGuiManager::loadMmlInFile | ( | QString | fileName | ) |
Load a MMLIn file.
References MonitoringManagerFactory::createManager(), dialog, MonitoringManager::init(), monitoringManager, and MonitoringDialog::updateAll().
Referenced by MonitoringDialog::browseMmlIn(), and MMLComponent::MMLComponent().
void MonitoringGuiManager::pause | ( | ) |
pause simulation
References driver, and MonitoringDriver::stopTimer().
Referenced by MonitoringDialog::pause(), reload(), and rewind().
|
signal |
|
slot |
reload simulation with current parameters
References dialog, lastRefreshTime, monitoringManager, pause(), reconnectPml(), MonitoringManager::reload(), and MonitoringDialog::updateAll().
Referenced by MonitoringDialog::browseLml(), and MonitoringDialog::browsePml().
void MonitoringGuiManager::rewind | ( | ) |
rewind simulation
References changed(), dialog, lastRefreshTime, monitoringManager, pause(), MonitoringManager::rewind(), and MonitoringDialog::updateSimulation().
Referenced by MonitoringDialog::rewind().
bool MonitoringGuiManager::saveCsvFile | ( | QString | fileName | ) |
Save csv file.
References monitoringManager, and MonitoringManager::writeCsv().
Referenced by MonitoringDialog::saveCsv().
bool MonitoringGuiManager::saveMmlInFile | ( | QString | fileName | ) |
Save MMLIn file.
References monitoringManager, and MonitoringManager::saveMmlIn().
Referenced by MMLComponent::saveMML(), and MonitoringDialog::saveMmlIn().
bool MonitoringGuiManager::saveMmlOutFile | ( | QString | fileName | ) |
Save MMLout file.
References monitoringManager, and MonitoringManager::writeOutput().
Referenced by MonitoringDialog::saveMmlOut().
void MonitoringGuiManager::simulate | ( | ) |
do simulation lopp
References doOneStep(), driver, MonitoringDriver::isTimerActive(), and MonitoringDriver::startTimer().
Referenced by MonitoringDialog::simulate().
void MonitoringGuiManager::simulateOneStep | ( | ) |
do one step of simulation
References MonitoringManager::checkStop(), doOneStep(), and monitoringManager.
Referenced by MonitoringDialog::simulateOneStep().
void MonitoringGuiManager::updateDt | ( | double | dt | ) |
update dt
References monitoringManager, and MonitoringManager::setDt().
Referenced by MonitoringDialog::dtModified().
void MonitoringGuiManager::updateLml | ( | QString | fileName | ) |
update lml
References monitoringManager, and MonitoringManager::setLmlFileName().
Referenced by MonitoringDialog::browseLml().
void MonitoringGuiManager::updatePml | ( | QString | fileName | ) |
update pml
References monitoringManager, and MonitoringManager::setPmlFileName().
Referenced by MonitoringDialog::browsePml().
void MonitoringGuiManager::updateRefresh | ( | double | refresh | ) |
update refresh
References monitoringManager, camitk::refresh(), and MonitoringManager::setRefresh().
Referenced by MonitoringDialog::refreshModified().
|
private |
the dialog box
Referenced by doOneStep(), getDialog(), loadMmlInFile(), MonitoringGuiManager(), reload(), rewind(), and ~MonitoringGuiManager().
|
private |
the simulation driver
Referenced by doOneStep(), getDriver(), MonitoringGuiManager(), pause(), simulate(), and ~MonitoringGuiManager().
|
private |
last refresh time
Referenced by doOneStep(), MonitoringGuiManager(), reload(), and rewind().
|
private |
Monitoring manager.
Referenced by doOneStep(), getMonitoringManager(), loadMmlInFile(), MonitoringGuiManager(), reload(), rewind(), saveCsvFile(), saveMmlInFile(), saveMmlOutFile(), simulateOneStep(), updateDt(), updateLml(), updatePml(), updateRefresh(), and ~MonitoringGuiManager().