diff --git a/include/wrench/action/FileReadAction.h b/include/wrench/action/FileReadAction.h index d46b54005e..90d02d2f61 100755 --- a/include/wrench/action/FileReadAction.h +++ b/include/wrench/action/FileReadAction.h @@ -33,6 +33,7 @@ namespace wrench { std::shared_ptr getFile() const; std::vector> getFileLocations() const; std::shared_ptr getUsedFileLocation() const; + double getNumBytesToRead() const; bool usesScratch() const override; protected: diff --git a/src/wrench/action/FileReadAction.cpp b/src/wrench/action/FileReadAction.cpp index 696c3572be..e153764265 100755 --- a/src/wrench/action/FileReadAction.cpp +++ b/src/wrench/action/FileReadAction.cpp @@ -115,6 +115,14 @@ namespace wrench { return this->used_location; } + /** + * @brief Return the number of bytes to read by this action + * @return A number of bytes + */ + double FileReadAction::getNumBytesToRead() const { + return this->num_bytes_to_read; + } + /** * @brief Determine whether the action uses scratch * @return true if the action uses scratch, false otherwise