class HostModel : public Model {
public:
HostModel() : Model() {}
- ~HostModel() override {}
HostImpl *createHost(const char *name, kernel::routing::NetCard *net, Cpu *cpu);
virtual void adjustWeightOfDummyCpuActions();
virtual Action *executeParallelTask(int host_nb, sg_host_t *host_list,
double *flops_amount, double *bytes_amount, double rate);
-
- bool next_occuring_event_isIdempotent() override {return true;}
};
/************
void updateActionsStateLazy(double now, double delta) override;
void updateActionsStateFull(double now, double delta) override;
- bool next_occuring_event_isIdempotent() {return true;};
};
/************
adjustWeightOfDummyCpuActions();
double min_by_cpu = surf_cpu_model_pm->nextOccuringEvent(now);
- double min_by_net = surf_network_model->next_occuring_event_isIdempotent() ? surf_network_model->nextOccuringEvent(now) : -1;
+ double min_by_net = surf_network_model->nextOccuringEventIsIdempotent() ? surf_network_model->nextOccuringEvent(now) : -1;
double min_by_sto = surf_storage_model->nextOccuringEvent(now);
XBT_DEBUG("model %p, %s min_by_cpu %f, %s min_by_net %f, %s min_by_sto %f",
return action;
}
-bool NetworkCm02Model::next_occuring_event_isIdempotent()
-{
- return true;
-}
-
void NetworkCm02Model::gapAppend(double size, const Link* link, NetworkAction* action)
{
// Nothing
void updateActionsStateLazy(double now, double delta) override;
void updateActionsStateFull(double now, double delta) override;
Action *communicate(kernel::routing::NetCard *src, kernel::routing::NetCard *dst, double size, double rate) override;
- bool next_occuring_event_isIdempotent() override;
virtual void gapAppend(double size, const Link* link, NetworkAction* action);
protected:
bool haveGap_ = false;
Action *communicate(kernel::routing::NetCard *src, kernel::routing::NetCard *dst, double size, double rate) override;
double nextOccuringEvent(double now) override;
- bool next_occuring_event_isIdempotent() override {return true;}
void updateActionsState(double now, double delta) override;
Link* createLink(const char *name, double bw, double lat, e_surf_link_sharing_policy_t policy, xbt_dict_t properties) override;
e_surf_link_sharing_policy_t policy, xbt_dict_t properties) override;
Action *communicate(kernel::routing::NetCard *src, kernel::routing::NetCard *dst, double size, double rate);
double nextOccuringEvent(double now) override;
- bool next_occuring_event_isIdempotent() {return false;}
+ bool nextOccuringEventIsIdempotent() {return false;}
void updateActionsState(double now, double delta) override;
};
xbt_dict_t properties) override;
Action *communicate(kernel::routing::NetCard *src, kernel::routing::NetCard *dst, double size, double rate) override;
- bool next_occuring_event_isIdempotent() override {return true;}
HostL07Model *hostModel_;
};
const char* content_name, const char* content_type,
xbt_dict_t properties, const char *attach) = 0;
- bool next_occuring_event_isIdempotent() {return true;}
-
std::vector<Storage*> p_storageList;
};
next_event_date = future_evt_set->next_date();
XBT_DEBUG("Next TRACE event: %f", next_event_date);
- if(! surf_network_model->next_occuring_event_isIdempotent()){ // NS3, I see you
+ if(! surf_network_model->nextOccuringEventIsIdempotent()){ // NS3, I see you
if (next_event_date!=-1.0 && time_delta!=-1.0) {
time_delta = MIN(next_event_date - NOW, time_delta);
} else {
* 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 next_occuring_event_isIdempotent()=0;
+ virtual bool nextOccuringEventIsIdempotent() { return true;}
protected:
ActionLmmListPtr modifiedSet_;