{
std::list<LinkImpl*> retlist;
lmm_system_t sys = getModel()->getMaxminSystem();
- int llen = lmm_get_number_of_cnst_from_var(sys, getVariable());
+ int llen = lmm_get_number_of_cnst_from_var(sys, variable_);
for (int i = 0; i < llen; i++) {
/* Beware of composite actions: ptasks put links and cpus together */
: simgrid::surf::Action(model, cost, failed, var){};
void setState(simgrid::surf::Action::State state) override;
- std::list<LinkImpl*> links();
+ virtual std::list<LinkImpl*> links();
double latency_;
double latCurrent_;
THROW_UNIMPLEMENTED;
}
- /* Test whether a flow is suspended */
+std::list<LinkImpl*> NetworkNS3Action::links()
+{
+ THROW_UNIMPLEMENTED;
+}
+
+/* Test whether a flow is suspended */
bool NetworkNS3Action::isSuspended()
{
return false;
NetworkNS3Action(Model* model, double cost, s4u::Host* src, s4u::Host* dst);
bool isSuspended();
- int unref();
- void suspend();
- void resume();
+ int unref() override;
+ void suspend() override;
+ void resume() override;
+ std::list<LinkImpl*> links() override;
-//private:
+ // private:
double lastSent_ = 0;
s4u::Host* src_;
s4u::Host* dst_;