Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
objectifies the Future Event Set of trace events
[simgrid.git] / src / surf / network_interface.cpp
index c7a81c5..323652b 100644 (file)
@@ -43,8 +43,8 @@ void* sg_link_data(Link *link) {
 void sg_link_data_set(Link *link,void *data) {
        link->setData(data);
 }
-int sg_link_amount(void) {
-       return Link::linksAmount();
+int sg_link_count(void) {
+       return Link::linksCount();
 }
 Link** sg_link_list(void) {
        return Link::linksList();
@@ -72,7 +72,7 @@ Link *Link::byName(const char* name) {
          return res;
 }
 /** @brief Returns the amount of links in the platform */
-int Link::linksAmount() {
+int Link::linksCount() {
          return links->size();
 }
 /** @brief Returns a list of all existing links */
@@ -137,10 +137,6 @@ void netlink_parse_init(sg_platf_link_cbarg_t link){
   }
 }
 
-void net_add_traces(){
-  surf_network_model->addTraces();
-}
-
 /*********
  * Model *
  *********/
@@ -205,13 +201,13 @@ Link::Link(simgrid::surf::NetworkModel *model, const char *name, xbt_dict_t prop
 
 Link::Link(simgrid::surf::NetworkModel *model, const char *name, xbt_dict_t props,
                                 lmm_constraint_t constraint,
-                            tmgr_history_t history,
+                          sg_future_evt_set_t fes,
                             tmgr_trace_t state_trace)
 : Resource(model, name, constraint),
   PropertyHolder(props)
 {
   if (state_trace)
-    p_stateEvent = tmgr_history_add_trace(history, state_trace, 0.0, 0, this);
+    p_stateEvent = fes->add_trace(state_trace, 0.0, 0, this);
 
   links->insert({name, this});
   XBT_DEBUG("Create link '%s'",name);