FunctionalityNotAvailable.h
1 
10 #ifndef WRENCH_FUNCTIONALITY_NOT_AVAILABLE_H
11 #define WRENCH_FUNCTIONALITY_NOT_AVAILABLE_H
12 
13 #include <set>
14 #include <string>
15 
16 #include "wrench/workflow/failure_causes/FailureCause.h"
17 #include "wrench/services/storage/StorageService.h"
18 #include "wrench/services/compute/ComputeService.h"
19 
20 namespace wrench {
21 
22  class Service;
23 
24  /***********************/
26  /***********************/
27 
28 
33  public:
34  /***********************/
36  /***********************/
37  FunctionalityNotAvailable(std::shared_ptr<Service> service, std::string functionality_name);
38  /***********************/
40  /***********************/
41 
42  std::shared_ptr<Service> getService();
43  std::string getFunctionalityName();
44  std::string toString();
45 
46  private:
47  std::shared_ptr<Service> service;
48  std::string functionality_name;
49  };
50 
51 
52  /***********************/
54  /***********************/
55 };
56 
57 
58 #endif //WRENCH_FUNCTIONALITY_NOT_AVAILABLE_H
Definition: Alarm.cpp:20
A "requested functionality is not available on that service" failure cause.
Definition: FunctionalityNotAvailable.h:32
FunctionalityNotAvailable(std::shared_ptr< Service > service, std::string functionality_name)
Constructor.
Definition: FunctionalityNotAvailable.cpp:24
A top-level class to describe all simulation-valid failures that can occur during workflow execution ...
Definition: FailureCause.h:31
std::string toString()
Get the human-readable failure message.
Definition: FunctionalityNotAvailable.cpp:51
std::string getFunctionalityName()
Getter.
Definition: FunctionalityNotAvailable.cpp:42
std::shared_ptr< Service > getService()
Getter.
Definition: FunctionalityNotAvailable.cpp:34