Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
improve the doc of the routing API
[simgrid.git] / src / kernel / routing / AsClusterFatTree.cpp
index d9a5b3b..aaab2ed 100644 (file)
@@ -94,7 +94,7 @@ void AsClusterFatTree::getRouteAndLatency(NetCard *src,
   if(source->id == destination->id && this->hasLoopback_) {
     into->link_list->push_back(source->loopback);
     if(latency) {
-      *latency += source->loopback->getLatency();
+      *latency += source->loopback->latency();
     }
     return;
   }
@@ -114,7 +114,7 @@ void AsClusterFatTree::getRouteAndLatency(NetCard *src,
     into->link_list->push_back(currentNode->parents[d]->upLink);
 
     if(latency) {
-      *latency += currentNode->parents[d]->upLink->getLatency();
+      *latency += currentNode->parents[d]->upLink->latency();
     }
 
     if (this->hasLimiter_) {
@@ -134,7 +134,7 @@ void AsClusterFatTree::getRouteAndLatency(NetCard *src,
          destination->label[currentNode->level - 1]) {
         into->link_list->push_back(currentNode->children[i]->downLink);
         if(latency) {
-          *latency += currentNode->children[i]->downLink->getLatency();
+          *latency += currentNode->children[i]->downLink->latency();
         }
         currentNode = currentNode->children[i]->downNode;
         if (this->hasLimiter_) {
@@ -407,8 +407,8 @@ void AsClusterFatTree::parse_specific_arguments(sg_platf_cluster_cbarg_t cluster
 
   // The first parts of topo_parameters should be the levels number
   this->levels_ = xbt_str_parse_int(parameters[0].c_str(), "First parameter is not the amount of levels: %s");
-  
-  // Then, a l-sized vector standing for the childs number by level
+
+  // Then, a l-sized vector standing for the children number by level
   boost::split(tmp, parameters[1], boost::is_any_of(","));
   if(tmp.size() != this->levels_) {
     surf_parse_error("Fat trees are defined by the levels number and 3 vectors"