return rate;
}
-double NetworkModel::shareResourcesFull(double now)
+double NetworkModel::next_occuring_event_full(double now)
{
NetworkAction *action = NULL;
ActionList *runningActions = surf_network_model->getRunningActionSet();
{
links->insert({name, this});
+ m_latency.scale = 1;
+ m_bandwidth.scale = 1;
XBT_DEBUG("Create link '%s'",name);
}
Link::Link(simgrid::surf::NetworkModel *model, const char *name, xbt_dict_t props,
lmm_constraint_t constraint,
- sg_future_evt_set_t fes,
tmgr_trace_t state_trace)
: Resource(model, name, constraint),
PropertyHolder(props)
{
+ m_latency.scale = 1;
+ m_bandwidth.scale = 1;
if (state_trace)
- p_stateEvent = fes->add_trace(state_trace, 0.0, this);
+ m_stateEvent = future_evt_set->add_trace(state_trace, 0.0, this);
links->insert({name, this});
XBT_DEBUG("Create link '%s'",name);
double Link::getLatency()
{
- return m_latCurrent;
+ return m_latency.peak * m_latency.scale;
}
double Link::getBandwidth()
{
- return p_speed.peak * p_speed.scale;
+ return m_bandwidth.peak * m_bandwidth.scale;
}
int Link::sharingPolicy()