FileAlreadyBeingCopied.h
1 
10 #ifndef WRENCH_FILE_ALREADY_BEING_COPIED_H
11 #define WRENCH_FILE_ALREADY_BEING_COPIED_H
12 
13 #include <set>
14 #include <string>
15 
16 #include "wrench/workflow/failure_causes/FailureCause.h"
17 
18 namespace wrench {
19 
20  class WorkflowFile;
21  class FileLocation;
22 
23  /***********************/
25  /***********************/
26 
27  class FileLocation;
28 
33 
34 
35  public:
36  /***********************/
38  /***********************/
40  std::shared_ptr<FileLocation> src,
41  std::shared_ptr<FileLocation> dst);
42  /***********************/
44  /***********************/
45 
47  std::shared_ptr<FileLocation> getSourceLocation();
48  std::shared_ptr<FileLocation> getDestinationLocation();
49  std::string toString();
50 
51  private:
52  WorkflowFile *file;
53  std::shared_ptr<FileLocation> src_location;
54  std::shared_ptr<FileLocation> dst_location;
55  };
56 
57 
58  /***********************/
60  /***********************/
61 };
62 
63 
64 #endif //WRENCH_FILE_ALREADY_BEING_COPIED_H
A "file is already being copied" failure cause.
Definition: FileAlreadyBeingCopied.h:32
std::shared_ptr< FileLocation > getSourceLocation()
Getter.
Definition: FileAlreadyBeingCopied.cpp:46
Definition: Alarm.cpp:20
WorkflowFile * getFile()
Getter.
Definition: FileAlreadyBeingCopied.cpp:38
A top-level class to describe all simulation-valid failures that can occur during workflow execution ...
Definition: FailureCause.h:31
FileAlreadyBeingCopied(WorkflowFile *file, std::shared_ptr< FileLocation > src, std::shared_ptr< FileLocation > dst)
Constructor.
Definition: FileAlreadyBeingCopied.cpp:26
std::shared_ptr< FileLocation > getDestinationLocation()
Getter.
Definition: FileAlreadyBeingCopied.cpp:54
std::string toString()
Get the human-readable failure message.
Definition: FileAlreadyBeingCopied.cpp:62
A data file used/produced by a WorkflowTask in a Workflow.
Definition: WorkflowFile.h:26