Go to the documentation of this file.
49 typedef std::map<std::string, std::string>
IceEnvMap;
64 class Scenario :
public std::enable_shared_from_this<Scenario>
68 std::string creationTime;
69 std::string lastChangedTime;
70 std::string globalConfigName;
71 std::string subfolder;
74 std::weak_ptr<Package> package;
std::string getGlobalConfigPath()
void updateApplication(ApplicationInstancePtr application)
IceEnvMap getIceEnviromentVariables()
std::shared_ptr< ApplicationInstance > ApplicationInstancePtr
armarx::PropertyDefinitionsPtr getGlobalConfig()
std::shared_ptr< Scenario > ScenarioPtr
void setScenarioDeploymentType(ScenarioDeploymentType type)
std::shared_ptr< std::vector< ApplicationInstancePtr > > ApplicationInstanceVectorPtr
void setNodeName(const std::string &value)
void setName(std::string name)
ScenarioDeploymentType getScenarioDeploymentType()
std::map< std::string, std::string > IceEnvMap
void setLastChangedTime(std::string time)
Sets the last-changed-time to now.
void clearIceEnviromentVariable(std::string name)
void makeLocalGlobalConfig()
bool allApplicationsFound()
ApplicationInstanceVectorPtr getApplications()
std::shared_ptr< Value > value()
ApplicationInstancePtr getApplicationByName(std::string name)
void addApplication(ApplicationInstancePtr application)
Adds an Application to this scenario.
void reloadAppInstances()
std::shared_ptr< Package > PackagePtr
std::string getNodeName() const
std::string getSubfolder()
std::string getCreationTime()
SCENARIO_H.
std::string getGlobalConfigName()
bool getStatusWriteBlock()
bool isGlobalConfigFileexistent()
std::vector< std::string > getAllDeploymendNodeNames()
bool isScenarioFileWriteable()
std::weak_ptr< Scenario > ScenarioWPtr
Scenario(std::string name, std::string creationTime, std::string lastChangedTime, PackagePtr package, std::string globalConfigName="./config/global.cfg", std::string subfolder="", ScenarioDeploymentType deploymentType=ScenarioDeploymentType::Remote, IceEnvMap iceEnvVariables=IceEnvMap())
Constructor that sets some base information about the scenario.
void addIceEnviromentVariable(std::string name, std::string variable)
bool isGlobalConfigWritable()
std::string getLastChangedTime()
void updateApplicationByName(std::string name)
void setGlobalConfigName(std::string name)
void setStatusWriteBlock(bool state)
void removeApplication(ApplicationInstancePtr application)
Removes an Application from this scenario.
Class containing data about a scenario and its applications. Provides methods to get and set the data...
std::shared_ptr< std::vector< ScenarioPtr > > ScenarioVectorPtr