+class FatTreeLink;
+
+
+class FatTreeNode {
+public:
+ int id;
+ unsigned int level; // The 0th level represents the leafs of the PGFT
+ unsigned int position; // Position in the level
+ std::vector<unsigned int> label;
+ /* We can see the sizes sum of the two following vectors as the device
+ * ports number. If we use the notations used in Zahavi's paper,
+ * children.size() = m_level and parents.size() = w_(level+1)
+ *
+ */
+ std::vector<FatTreeLink*> children; // m, apply from lvl 0 to levels - 1
+ std::vector<FatTreeLink*> parents; // w, apply from lvl 1 to levels
+ FatTreeNode(int id, int level=-1, int position=-1);
+};
+
+class FatTreeLink {
+public:
+ FatTreeLink(sg_platf_cluster_cbarg_t cluster, FatTreeNode *source,
+ FatTreeNode *destination);
+ // unsigned int ports;
+ /* Links are dependant of the chosen network model, but must implement
+ * NetworkLink
+ */
+ NetworkLink *upLink;
+ NetworkLink *downLink;
+ FatTreeNode *upNode;
+ FatTreeNode *downNode;
+
+};