/** Virtual link standing for the node global capacity.
*/
- surf::LinkImpl* limiter_link_;
+ resource::LinkImpl* limiter_link_;
/** If present, communications from this node to this node will pass through it
* instead of passing by an upper level switch.
*/
- surf::LinkImpl* loopback;
+ resource::LinkImpl* loopback;
FatTreeNode(ClusterCreationArgs* cluster, int id, int level, int position);
};
public:
FatTreeLink(ClusterCreationArgs* cluster, FatTreeNode* source, FatTreeNode* destination);
/** Link going up in the tree */
- surf::LinkImpl* up_link_;
+ resource::LinkImpl* up_link_;
/** Link going down in the tree */
- surf::LinkImpl* down_link_;
+ resource::LinkImpl* down_link_;
/** Upper end of the link */
FatTreeNode* up_node_;
/** Lower end of the link */
public:
explicit FatTreeZone(NetZone* father, std::string name);
~FatTreeZone() override;
- void getLocalRoute(NetPoint* src, NetPoint* dst, RouteCreationArgs* into, double* latency) override;
+ void get_local_route(NetPoint* src, NetPoint* dst, RouteCreationArgs* into, double* latency) override;
/** \brief Generate the fat tree
*
ClusterCreationArgs* cluster_ = nullptr;
- void addLink(FatTreeNode* parent, unsigned int parent_port, FatTreeNode* child, unsigned int child_port);
- int getLevelPosition(const unsigned int level);
- void generateLabels();
- void generateSwitches();
- int connectNodeToParents(FatTreeNode* node);
- bool areRelated(FatTreeNode* parent, FatTreeNode* child);
- bool isInSubTree(FatTreeNode* root, FatTreeNode* node);
+ void add_link(FatTreeNode* parent, unsigned int parent_port, FatTreeNode* child, unsigned int child_port);
+ int get_level_position(const unsigned int level);
+ void generate_labels();
+ void generate_switches();
+ int connect_node_to_parents(FatTreeNode* node);
+ bool are_related(FatTreeNode* parent, FatTreeNode* child);
+ bool is_in_sub_tree(FatTreeNode* root, FatTreeNode* node);
};
} // namespace routing
} // namespace kernel