1 /* Copyright (c) 2013-2021. 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"
21 class XBT_PRIVATE DiskS19Model;
22 class XBT_PRIVATE DiskS19;
23 class XBT_PRIVATE DiskS19Action;
29 class DiskS19Model : public DiskModel {
31 using DiskModel::DiskModel;
32 DiskImpl* create_disk(const std::string& name, double read_bandwidth, double write_bandwidth) override;
34 DiskAction* io_start(const DiskImpl* disk, sg_size_t size, s4u::Io::OpType type) override;
36 void update_actions_state(double now, double delta) override;
43 class DiskS19 : public DiskImpl {
44 void update_penalties(double delta) const;
47 using DiskImpl::DiskImpl;
48 void set_read_bandwidth(double value) override;
49 void set_write_bandwidth(double value) override;
50 void apply_event(kernel::profile::Event* triggered, double value) override;
57 class DiskS19Action : public DiskAction {
59 DiskS19Action(Model* model, double cost, bool failed);
60 void update_remains_lazy(double now) override;
63 } // namespace resource
65 } // namespace simgrid
66 #endif /* DISK_S19_HPP_ */