Go to the documentation of this file.
49 typedef std::map<std::string, std::string>
IceEnvMap;
58 class Scenario :
public std::enable_shared_from_this<Scenario>
62 std::string creationTime;
63 std::string lastChangedTime;
64 std::string globalConfigName;
65 std::string subfolder;
67 std::weak_ptr<Package> package;
80 Scenario(
const std::string& name,
const std::string& creationTime,
const std::string& lastChangedTime,
const PackagePtr& package,
81 const std::string& globalConfigName =
"./config/global.cfg",
const std::string& subfolder =
"");
157 void save(
bool saveApplications =
true);
std::string getGlobalConfigPath()
std::shared_ptr< ApplicationInstance > ApplicationInstancePtr
armarx::PropertyDefinitionsPtr getGlobalConfig()
void addApplication(const ApplicationInstancePtr &application)
Adds an Application to this scenario.
std::shared_ptr< Scenario > ScenarioPtr
std::shared_ptr< std::vector< ApplicationInstancePtr > > ApplicationInstanceVectorPtr
void setNodeName(const std::string &value)
void setName(std::string name)
std::map< std::string, std::string > IceEnvMap
void setLastChangedTime(std::string time)
Sets the last-changed-time to now.
void makeLocalGlobalConfig()
bool allApplicationsFound()
void save(bool saveApplications=true)
ApplicationInstanceVectorPtr getApplications()
std::shared_ptr< Value > value()
void reloadAppInstances()
std::shared_ptr< Package > PackagePtr
std::string getNodeName() const
std::string getSubfolder()
void removeApplication(const ApplicationInstancePtr &application)
Removes an Application from this scenario.
std::string getCreationTime()
SCENARIO_H.
std::string getGlobalConfigName()
bool getStatusWriteBlock()
bool isGlobalConfigFileexistent()
std::vector< std::string > getAllDeploymendNodeNames()
bool isScenarioFileWriteable()
std::weak_ptr< Scenario > ScenarioWPtr
bool isGlobalConfigWritable()
std::string getLastChangedTime()
void setGlobalConfigName(std::string name)
void setStatusWriteBlock(bool state)
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.
Class containing data about a scenario and its applications. Provides methods to get and set the data...
ApplicationInstancePtr getApplicationByName(const std::string &name)
std::shared_ptr< std::vector< ScenarioPtr > > ScenarioVectorPtr