if (not cls)
return nullptr;
- std::vector<sg_host_t> table;
- as->getHosts(&table);
+ std::vector<simgrid::s4u::Host*> table = as->get_all_hosts();
jtable = env->NewObjectArray(static_cast<jsize>(table.size()), cls, nullptr);
if (from_as->getChildren()->empty()) {
// I am no AS
// add hosts to jedule platform
- std::vector<sg_host_t> table;
- from_as->getHosts(&table);
+ std::vector<sg_host_t> table = from_as->get_all_hosts();
this->addResources(table);
} else {
for (auto const& nz : *from_as->getChildren()) {