ScenarioManager::Data_Structure Namespace Reference

Classes

class  Application
 Class containing data about an application Provides methods to get and set the date contained in the application. More...
 
class  ApplicationInstance
 Class containing data about the instance of an application. More...
 
struct  ApplicationStatus
 
class  Package
 Class containing data about a package, its scenarios and its applications. More...
 
class  Scenario
 Class containing data about a scenario and its applications. More...
 

Typedefs

using ApplicationInstancePtr = std::shared_ptr<ApplicationInstance>
 
using ApplicationInstanceVectorPtr = std::shared_ptr<std::vector<ApplicationInstancePtr>>
 
using ApplicationInstanceWPtr = std::weak_ptr<ApplicationInstance>
 
using ApplicationPtr = std::shared_ptr<Application>
 
using ApplicationVectorPtr = std::shared_ptr<std::vector<ApplicationPtr>>
 
typedef std::map< std::string, std::string > IceEnvMap
 
using PackagePtr = std::shared_ptr<Package>
 
using PackageVectorPtr
 
using PropertyEnabledMap = std::map<std::string, bool>
 
using ScenarioPtr = std::shared_ptr<Scenario>
 
using ScenarioVectorPtr = std::shared_ptr<std::vector<ScenarioPtr>>
 
using ScenarioWPtr = std::weak_ptr<Scenario>
 

Enumerations

enum class  Intent { None , Start , Stop , Restart }
 What the ScenarioManager is currently trying to do with an application. More...
 

Functions

const char * ToString (Intent intent)
 Human readable name of an intent, for logging.
 

Typedef Documentation

◆ ApplicationInstancePtr

typedef std::shared_ptr< ApplicationInstance > ApplicationInstancePtr = std::shared_ptr<ApplicationInstance>

Definition at line 33 of file ApplicationInstance.h.

◆ ApplicationInstanceVectorPtr

using ApplicationInstanceVectorPtr = std::shared_ptr<std::vector<ApplicationInstancePtr>>

Definition at line 35 of file ApplicationInstance.h.

◆ ApplicationInstanceWPtr

Definition at line 34 of file ApplicationInstance.h.

◆ ApplicationPtr

using ApplicationPtr = std::shared_ptr<Application>

Definition at line 146 of file Application.h.

◆ ApplicationVectorPtr

using ApplicationVectorPtr = std::shared_ptr<std::vector<ApplicationPtr>>

Definition at line 147 of file Application.h.

◆ IceEnvMap

typedef std::map<std::string, std::string> IceEnvMap

Definition at line 47 of file Scenario.h.

◆ PackagePtr

typedef std::shared_ptr< Package > PackagePtr = std::shared_ptr<Package>

Definition at line 122 of file Package.h.

◆ PackageVectorPtr

Initial value:
std::shared_ptr<std::vector<ScenarioManager::Data_Structure::PackagePtr>>

Definition at line 123 of file Package.h.

◆ PropertyEnabledMap

using PropertyEnabledMap = std::map<std::string, bool>

Definition at line 39 of file Application.h.

◆ ScenarioPtr

using ScenarioPtr = std::shared_ptr<Scenario>

Definition at line 35 of file Scenario.h.

◆ ScenarioVectorPtr

using ScenarioVectorPtr = std::shared_ptr<std::vector<ScenarioPtr>>

Definition at line 37 of file Scenario.h.

◆ ScenarioWPtr

using ScenarioWPtr = std::weak_ptr<Scenario>

Definition at line 36 of file Scenario.h.

Enumeration Type Documentation

◆ Intent

enum class Intent
strong

What the ScenarioManager is currently trying to do with an application.

An intent is requested rather than executed: requesting one supersedes any earlier intent that has not been carried out yet, so the last thing the user asked for is what happens ("last intent wins"). None means no operation is requested or running.

Restart is a separate intent rather than "desired state = running" because it has to bounce an application that is already running. On a stopped application it simply starts it.

Enumerator
None 
Start 
Stop 
Restart 

Definition at line 57 of file ApplicationInstance.h.

Function Documentation

◆ ToString()

const char * ToString ( Intent intent)

Human readable name of an intent, for logging.

Definition at line 51 of file ApplicationInstance.cpp.

+ Here is the caller graph for this function: