#define SURF_ROUTING_CLUSTER_FAT_TREE_HPP_
-AS_t model_fat_tree_cluster_create(void);
-
/* The class AsClusterFatTree describes PGFT, as introduced by Eitan Zahavi
* in "D-Mod-K Routing Providing Non-Blocking Traffic for Shift Permutations
* on Real Life Fat Trees" (2010). RLFT are PGFT with some restrictions to
// double *latency) const;
virtual void create_links(sg_platf_cluster_cbarg_t cluster);
void parse_specific_arguments(sg_platf_cluster_cbarg_t cluster);
- void addComputeNode(int id);
+ void addProcessingNode(int id);
void generateDotFile(const string& filename = "fatTree.dot") const;
-protected:
+private:
//description of a PGFT (TODO : better doc)
unsigned int levels;
std::vector<unsigned int> lowerLevelNodesNumber; // number of children by node
std::vector<unsigned int> upperLevelNodesNumber; // number of parents by node
std::vector<unsigned int> lowerLevelPortsNumber; // ports between each level l and l-1
- std::map<int, FatTreeNode*> nodes;
+ std::map<int, FatTreeNode*> computeNodes;
+ std::vector<FatTreeNode*> nodes;
std::vector<FatTreeLink*> links;
std::vector<unsigned int> nodesByLevel;