|
|
Class containing data about a scenario and its applications. More...
#include <ArmarXCore/util/ScenarioManagerCommon/data_structure/Scenario.h>
Inheritance diagram for Scenario:Public Member Functions | |
| void | addApplication (const ApplicationInstancePtr &application) |
| Adds an Application to this scenario. | |
| bool | allApplicationsFound () |
| std::vector< std::string > | getAllDeploymendNodeNames () |
| ApplicationInstancePtr | getApplicationByName (const std::string &name) |
| ApplicationInstanceVectorPtr | getApplications () |
| std::string | getCreationTime () |
| SCENARIO_H. | |
| std::string | getFolder () |
| armarx::PropertyDefinitionsPtr | getGlobalConfig () |
| std::string | getGlobalConfigName () |
| std::string | getGlobalConfigPath () |
| std::string | getLastChangedTime () |
| std::string | getName () |
| std::string | getNodeName () const |
| PackagePtr | getPackage () |
| std::string | getPath () |
| std::string | getStatus () |
| std::string | getSubfolder () |
| bool | isGlobalConfigFileexistent () |
| bool | isGlobalConfigWritable () |
| bool | isReadOnly () |
| bool | isScenarioFileWriteable () |
| void | makeLocalGlobalConfig () |
| void | reloadAppInstances () |
| void | reloadGlobalConf () |
| void | removeApplication (const ApplicationInstancePtr &application) |
| Removes an Application from this scenario. | |
| void | save (bool saveApplications=true) |
| Scenario (const std::string &name, const std::string &creationTime, const std::string &lastChangedTime, const PackagePtr &package, const std::string &globalConfigName="./config/global.cfg", const std::string &subfolder="") | |
| Constructor that sets some base information about the scenario. | |
| void | setGlobalConfigName (std::string name) |
| void | setLastChangedTime (std::string time) |
| Sets the last-changed-time to now. | |
| void | setName (std::string name) |
| void | setNodeName (const std::string &value) |
Class containing data about a scenario and its applications.
Provides methods to get and set the data contained in the scenario. It is only representative and doesn't actually manage the scenario.
| Scenario | ( | const std::string & | name, |
| const std::string & | creationTime, | ||
| const std::string & | lastChangedTime, | ||
| const PackagePtr & | package, | ||
| const std::string & | globalConfigName = "./config/global.cfg", | ||
| const std::string & | subfolder = "" ) |
Constructor that sets some base information about the scenario.
| name | name of the scenario |
| creationTime | when this scenario was first created |
| lastChangedTime | when this scenario was last changed. Should usually be the same as the time of creation, except when creating an exact copy of another Scenario. |
| path | path to the root of this scenario |
| void addApplication | ( | const ApplicationInstancePtr & | application | ) |
Adds an Application to this scenario.
| application | Application to be added to this scenario |
| bool allApplicationsFound | ( | ) |
| std::vector< std::string > getAllDeploymendNodeNames | ( | ) |
| Data_Structure::ApplicationInstancePtr getApplicationByName | ( | const std::string & | name | ) |
| Data_Structure::ApplicationInstanceVectorPtr getApplications | ( | ) |
| std::string getCreationTime | ( | ) |
SCENARIO_H.
| std::string getFolder | ( | ) |
| armarx::PropertyDefinitionsPtr getGlobalConfig | ( | ) |
| std::string getGlobalConfigName | ( | ) |
| std::string getGlobalConfigPath | ( | ) |
| std::string getLastChangedTime | ( | ) |
| std::string getName | ( | ) |
| std::string getNodeName | ( | ) | const |
| Data_Structure::PackagePtr getPackage | ( | ) |
| std::string getPath | ( | ) |
| std::string getStatus | ( | ) |
| std::string getSubfolder | ( | ) |
| bool isGlobalConfigFileexistent | ( | ) |
| bool isGlobalConfigWritable | ( | ) |
| bool isReadOnly | ( | ) |
| bool isScenarioFileWriteable | ( | ) |
| void makeLocalGlobalConfig | ( | ) |
| void reloadAppInstances | ( | ) |
| void reloadGlobalConf | ( | ) |
| void removeApplication | ( | const ApplicationInstancePtr & | application | ) |
Removes an Application from this scenario.
| application | application to be removed |
| void save | ( | bool | saveApplications = true | ) |
| void setGlobalConfigName | ( | std::string | name | ) |
| void setLastChangedTime | ( | std::string | time | ) |
Sets the last-changed-time to now.
| void setName | ( | std::string | name | ) |
| void setNodeName | ( | const std::string & | value | ) |