Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Working on SimDag.
[simgrid.git] / src / simdag / sd_link.c
index 7d59ae0..272ceba 100644 (file)
@@ -3,16 +3,16 @@
 
 /* Creates a link.
  */
 
 /* Creates a link.
  */
-SG_link_t SG_link_create(void *data, const char *name, double capacity, double bandwidth, double latency) {
-  xbt_assert0(capacity >= 0, "Invalid parameter"); /* or capacity > 0 ? */
+SG_link_t SG_link_create(void *data, const char *name,/* double capacity,*/ double bandwidth, double latency) {
+  /*  xbt_assert0(capacity >= 0, "Invalid parameter");*/ /* or capacity > 0 ? */
 
   SG_link_t link = xbt_new0(s_SG_link_t, 1);
 
   link->data = data;
   link->name = xbt_strdup(name);
 
   SG_link_t link = xbt_new0(s_SG_link_t, 1);
 
   link->data = data;
   link->name = xbt_strdup(name);
-  link->capacity = capacity;
-  link->current_bandwidth = bandwidth;
-  link->current_latency = latency;
+  /*link->capacity = capacity;*/
+  /* link->current_bandwidth = bandwidth;
+     link->current_latency = latency;*/
 
   return link;
 }
 
   return link;
 }
@@ -40,23 +40,30 @@ const char* SG_link_get_name(SG_link_t link) {
 
 /* Returns the capacity of a link.
  */
 
 /* Returns the capacity of a link.
  */
+/*
 double SG_link_get_capacity(SG_link_t link) {
   xbt_assert0(link, "Invalid parameter");
   return link->capacity;
 double SG_link_get_capacity(SG_link_t link) {
   xbt_assert0(link, "Invalid parameter");
   return link->capacity;
-}
+}*/
 
 /* Return the current bandwidth of a link.
  */
 double SG_link_get_current_bandwidth(SG_link_t link) {
   xbt_assert0(link, "Invalid parameter");
 
 /* Return the current bandwidth of a link.
  */
 double SG_link_get_current_bandwidth(SG_link_t link) {
   xbt_assert0(link, "Invalid parameter");
-  return link->current_bandwidth;
+
+  /* TODO */
+  return 0;
+  /*  return link->current_bandwidth;*/
 }
 
 /* Return the current latency of a link.
  */
 double SG_link_get_current_latency(SG_link_t link) {
   xbt_assert0(link, "Invalid parameter");
 }
 
 /* Return the current latency of a link.
  */
 double SG_link_get_current_latency(SG_link_t link) {
   xbt_assert0(link, "Invalid parameter");
-  return link->current_latency;
+
+  /* TODO */
+  return 0;
+  /*  return link->current_latency;*/
 }
 
 /* Destroys a link. The user data (if any) should have been destroyed first.
 }
 
 /* Destroys a link. The user data (if any) should have been destroyed first.