10 #ifndef WRENCH_NOT_ENOUGH_RESOURCES_H
11 #define WRENCH_NOT_ENOUGH_RESOURCES_H
16 #include <wrench/workflow/failure_causes/FailureCause.h>
17 #include <wrench/services/compute/ComputeService.h>
36 NotEnoughResources(std::shared_ptr<WorkflowJob> job, std::shared_ptr<ComputeService> compute_service);
41 std::shared_ptr<WorkflowJob>
getJob();
46 std::shared_ptr<WorkflowJob> job;
47 std::shared_ptr<ComputeService> compute_service;
57 #endif //WRENCH_NOT_ENOUGH_RESOURCES_H
std::shared_ptr< WorkflowJob > getJob()
Getter.
Definition: NotEnoughResources.cpp:35
std::string toString()
Get the human-readable failure message.
Definition: NotEnoughResources.cpp:51
A top-level class to describe all simulation-valid failures that can occur during workflow execution ...
Definition: FailureCause.h:31
A "compute service doesn't have enough cores" failure cause.
Definition: NotEnoughResources.h:31
std::shared_ptr< ComputeService > getComputeService()
Getter.
Definition: NotEnoughResources.cpp:43