1 /* Copyright (c) 2013-2022. The SimGrid Team. All rights reserved. */
3 /* This program is free software; you can redistribute it and/or modify it
4 * under the terms of the license (GNU LGPL) which comes with this package. */
8 #include "src/kernel/resource/DiskImpl.hpp"
13 namespace simgrid::kernel::resource {
19 class XBT_PRIVATE DiskS19Model;
20 class XBT_PRIVATE DiskS19;
21 class XBT_PRIVATE DiskS19Action;
27 class DiskS19Model : public DiskModel {
29 using DiskModel::DiskModel;
30 DiskImpl* create_disk(const std::string& name, double read_bandwidth, double write_bandwidth) override;
32 DiskAction* io_start(const DiskImpl* disk, sg_size_t size, s4u::Io::OpType type) override;
34 void update_actions_state(double now, double delta) override;
41 class DiskS19 : public DiskImpl {
43 using DiskImpl::DiskImpl;
44 void set_read_bandwidth(double value) override;
45 void set_write_bandwidth(double value) override;
46 void set_readwrite_bandwidth(double value) override;
47 void apply_event(kernel::profile::Event* triggered, double value) override;
54 class DiskS19Action : public DiskAction {
56 DiskS19Action(Model* model, double cost, bool failed);
57 void update_remains_lazy(double now) override;
60 } // namespace simgrid::kernel::resource
61 #endif /* DISK_S19_HPP_ */