std::vector<sg_host_t> resource_list;
void addChild(Container* child);
void addResources(std::vector<sg_host_t> hosts);
- void createHierarchy(AS_t from_as);
+ void createHierarchy(NetZone_t from_as);
std::vector<int> getHierarchy();
std::string getHierarchyAsString();
void print(FILE *file);
}
}
-void Container::createHierarchy(AS_t from_as)
+void Container::createHierarchy(NetZone_t from_as)
{
xbt_dict_cursor_t cursor = nullptr;
char *key;
- AS_t elem;
+ NetZone_t elem;
xbt_dict_t routing_sons = from_as->children();
if (xbt_dict_is_empty(routing_sons)) {
void jedule_sd_init()
{
- AS_t root_comp = simgrid::s4u::Engine::instance()->rootAs();
+ NetZone_t root_comp = simgrid::s4u::Engine::instance()->netRoot();
XBT_DEBUG("root name %s\n", root_comp->name());
my_jedule = new simgrid::jedule::Jedule();
*
* This works because all SimGrid platform have a unique root element (that is the last element of both paths).
*/
- NetZoneImpl* father = nullptr; // the AS we dropped on the previous loop iteration
+ NetZoneImpl* father = nullptr; // the netzone we dropped on the previous loop iteration
while (path_src.size() > 1 && path_dst.size() > 1 &&
path_src.at(path_src.size() - 1) == path_dst.at(path_dst.size() - 1)) {
father = path_src.at(path_src.size() - 1);