- DiskAction* io_stream(s4u::Host* src_host, DiskImpl* src_disk, s4u::Host* dst_host, DiskImpl* dst_disk, double size);
-};
-
-class DiskS22Model : public DiskModel {
-public:
- DiskS22Model(const std::string& name, HostS22Model* hmodel, lmm::System* sys);
- DiskS22Model(const DiskS22Model&) = delete;
- DiskS22Model& operator=(const DiskS22Model&) = delete;
- ~DiskS22Model() override;
- void update_actions_state(double /*now*/, double /*delta*/) override{
- /* this action is done by HostS22Model which shares the LMM system with the Disk model
- * Overriding to an empty function here allows us to handle the DiskS22Model as a regular
- * method in EngineImpl::presolve */
- };
-
- DiskImpl* create_disk(const std::string& name, double read_bandwidth, double write_bandwidth) override;
- HostS22Model* hostModel_;
-};
-
-class NetworkS22Model : public NetworkModel {
-public:
- NetworkS22Model(const std::string& name, HostS22Model* hmodel, lmm::System* sys);
- NetworkS22Model(const NetworkS22Model&) = delete;
- NetworkS22Model& operator=(const NetworkS22Model&) = delete;
- ~NetworkS22Model() override;
- StandardLinkImpl* create_link(const std::string& name, const std::vector<double>& bandwidths) final;
- StandardLinkImpl* create_wifi_link(const std::string& name, const std::vector<double>& bandwidths) override;
-
- Action* communicate(s4u::Host* src, s4u::Host* dst, double size, double rate) override;
- void update_actions_state(double /*now*/, double /*delta*/) override{
- /* this action is done by HostS22Model which shares the LMM system with the Network model
- * Overriding to an empty function here allows us to handle the NetworkS22Model as a regular
- * method in EngineImpl::presolve */
- };
-
- HostS22Model* hostModel_;
-};
-
-/************
- * Resource *
- ************/
-
-class DiskS22 : public DiskImpl {
-public:
- using DiskImpl::DiskImpl;
- DiskS22(const DiskS22&) = delete;
- DiskS22& operator=(const DiskS22&) = delete;
-
- void apply_event(profile::Event* event, double value) override;
- DiskAction* io_start(sg_size_t size, s4u::Io::OpType type) override;
-};
-
-class LinkS22 : public StandardLinkImpl {
-public:
- LinkS22(const std::string& name, double bandwidth, lmm::System* system);
- LinkS22(const LinkS22&) = delete;
- LinkS22& operator=(const LinkS22&) = delete;
- ~LinkS22() = default;
-
- void apply_event(profile::Event* event, double value) override;
- void set_bandwidth(double value) override;
- void set_latency(double value) override;