WRENCH  1.11
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
NotEnoughResources.h
1 
10 #ifndef WRENCH_NOT_ENOUGH_RESOURCES_H
11 #define WRENCH_NOT_ENOUGH_RESOURCES_H
12 
13 #include <set>
14 #include <string>
15 
16 #include "wrench/failure_causes/FailureCause.h"
17 #include "wrench/services/compute/ComputeService.h"
18 
19 namespace wrench {
20 
21  class Job;
22 
23  /***********************/
25  /***********************/
26 
27 
32  public:
33  /***********************/
35  /***********************/
36  NotEnoughResources(std::shared_ptr<Job> job, std::shared_ptr<Service> service);
37  /***********************/
39  /***********************/
40 
41  std::shared_ptr<Job> getJob();
42  std::shared_ptr<Service> getService();
43  std::string toString() override;
44 
45  private:
46  std::shared_ptr<Job> job;
47  std::shared_ptr<Service> service;
48  };
49 
50 
51  /***********************/
53  /***********************/
54 };
55 
56 
57 #endif //WRENCH_NOT_ENOUGH_RESOURCES_H
wrench::NotEnoughResources::getJob
std::shared_ptr< Job > getJob()
Getter.
Definition: NotEnoughResources.cpp:35
wrench::NotEnoughResources::NotEnoughResources
NotEnoughResources(std::shared_ptr< Job > job, std::shared_ptr< Service > service)
Constructor.
Definition: NotEnoughResources.cpp:26
wrench
Definition: Action.cpp:28
wrench::NotEnoughResources::toString
std::string toString() override
Get the human-readable failure message.
Definition: NotEnoughResources.cpp:51
wrench::FailureCause
A top-level class to describe all simulation-valid failures that can occur during workflow execution ...
Definition: FailureCause.h:31
wrench::NotEnoughResources
A "compute service doesn't have enough cores" failure cause.
Definition: NotEnoughResources.h:31
wrench::NotEnoughResources::getService
std::shared_ptr< Service > getService()
Getter.
Definition: NotEnoughResources.cpp:43