virtual void update_actions_state_lazy(double now, double delta);
virtual void update_actions_state_full(double now, double delta);
- /** @brief Returns whether this model have an idempotent shareResource()
+ /** @brief Returns whether this model have an idempotent share_resource()
*
* The only model that is not is NS3: computing the next timestamp moves the model up to that point,
* so we need to call it only when the next timestamp of other sources is computed.
*/
- virtual bool nextOccuringEventIsIdempotent() { return true; }
+ virtual bool next_occuring_event_is_idempotent() { return true; }
private:
lmm::System* maxmin_system_ = nullptr;
double min_by_cpu = surf_cpu_model_pm->next_occuring_event(now);
double min_by_net =
- surf_network_model->nextOccuringEventIsIdempotent() ? surf_network_model->next_occuring_event(now) : -1;
+ surf_network_model->next_occuring_event_is_idempotent() ? surf_network_model->next_occuring_event(now) : -1;
double min_by_sto = surf_storage_model->next_occuring_event(now);
XBT_DEBUG("model %p, %s min_by_cpu %f, %s min_by_net %f, %s min_by_sto %f",
e_surf_link_sharing_policy_t policy) override;
kernel::resource::Action* communicate(s4u::Host* src, s4u::Host* dst, double size, double rate) override;
double next_occuring_event(double now) override;
- bool nextOccuringEventIsIdempotent() override { return false; }
+ bool next_occuring_event_is_idempotent() override { return false; }
void update_actions_state(double now, double delta) override;
};
double next_event_date = future_evt_set->next_date();
XBT_DEBUG("Next TRACE event: %f", next_event_date);
- if (not surf_network_model->nextOccuringEventIsIdempotent()) { // NS3, I see you
+ if (not surf_network_model->next_occuring_event_is_idempotent()) { // NS3, I see you
if (next_event_date != -1.0) {
time_delta = std::min(next_event_date - NOW, time_delta);
} else {