|
|
void | Run () |
| | Main program flow is defined in this function.
|
| |
| void | RunSimulation (int nTime, int nPeriod) |
| | Main simulation procedure. Takes time and period as milliseconds. More...
|
| |
|
void | ToggleSimulation () |
| | Runs or pauses simulation. Uses m_nTime and m_nPeriod values.
|
| |
| void | SetSimulationParameters (int nTime, int nPeriod) |
| | Sets parameters. Accepts values in miliseconds. More...
|
| |
| bool | IsSimulatonChainReady () |
| | Checks if simulation can be executed properly. More...
|
| |
|
void | ResetSimulation () |
| | Resets all memory values from the simulation chain. Does not delete objects parameters or generators.
|
| |
| bool | SaveSimChain (const std::string sFileName) |
| | Commands to write the simualtion chain data into the specified file. More...
|
| |
| bool | LoadSimChain (const std::string sFileName) |
| | Tries to load the simulation chain from the .xml file. More...
|
| |
| bool | SaveObjectOutputToFile (const std::string sObjName, std::string sFileName="") |
| | Sets object to save its output to specified file. More...
|
| |
| bool | StopSavingObjectOutputToFile (const std::string sObjName) |
| | Disables the file output for a chosen object. More...
|
| |
|
int | GetPeriod () const |
| | Returns simulation period.
|
| |
| void | ChangeIdentificationParams (int nNomDegree, int nDenomDegree, int nDelay, int nTreshold, double dForgettingFactor) |
| | Changes identification parameters. More...
|
| |
| void | GetLastIdentifiedNominator (std::vector< double > &vNom) |
| | Retrieves last identified nominator. More...
|
| |
| void | GetLastIdentifiedDenominator (std::vector< double > &vDenom) |
| | Retrieves last identified denominator. More...
|
| |
| void | SetGUIInstance (MainWindow *MainWindowPtr) |
| | Set the GUI handle. This method has to be called as soon as possible after creation of the SLogic instance. More...
|
| |
| void | ObjectFocusChange (std::string &sObjName) |
| | When user selects an object in GUI, this method is called. It searches object with the given name and builds its property tree. More...
|
| |
| void | ExtractPropertySubtree (QString &qsParentName, const boost::property_tree::ptree &p) |
| | Helper method to call recursively when building property tree. More...
|
| |
| void | SelectedObjectEdited (const std::string &sObjName, const std::string &sKey, const std::string &sValue) |
| | Called from GUI when the value is edited. More...
|
| |
| bool | UpdateTreeValue (boost::property_tree::ptree &p, const std::string &sObjName, const std::string &sKey, const std::string &sNewValue) |
| | Called from SelectedObjectEdited(). Helper method to update simulation tree. More...
|
| |
Implemenets Control module of the MVC model.
- Responsible for connecting GUI with simulation data model and organising data flow.
- Enables saving and loading the state of the program from and external file.
- Features simulation in an external thread.
- Owns root of the simulation chain and identification algorithm visible to the user via GUI.
- Note
- Implements multi-threading safe singleton pattern.
- Warning
- This class is not a RAII class. It needs to be explicitly destroyed by the end of the application lifetime to avoid potential invalid memory accesses.