X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7919ec739fbc2f1740eb88055a390b9a871b659d..026c5a576fbea1da8f6290f4435d5424ce0efe8b:/src/instr/jedule/jedule_sd_binding.cpp diff --git a/src/instr/jedule/jedule_sd_binding.cpp b/src/instr/jedule/jedule_sd_binding.cpp index 70292bc12d..1541655160 100644 --- a/src/instr/jedule/jedule_sd_binding.cpp +++ b/src/instr/jedule/jedule_sd_binding.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2018. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2010-2019. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -22,8 +22,8 @@ void jedule_log_sd_event(SD_task_t task) jed_event_t event = new simgrid::jedule::Event(std::string(SD_task_get_name(task)), SD_task_get_start_time(task), SD_task_get_finish_time(task), "SD"); - event->addResources(task->allocation); - my_jedule->event_set.push_back(event); + event->add_resources(task->allocation); + my_jedule->event_set_.push_back(event); } void jedule_sd_init() @@ -33,9 +33,9 @@ void jedule_sd_init() my_jedule = new simgrid::jedule::Jedule(); - jed_container_t root_container = new simgrid::jedule::Container(std::string(root_comp->get_cname())); - root_container->createHierarchy(root_comp); - my_jedule->root_container = root_container; + jed_container_t root_container = new simgrid::jedule::Container(root_comp->get_name()); + root_container->create_hierarchy(root_comp); + my_jedule->root_container_ = root_container; } void jedule_sd_exit() @@ -55,7 +55,7 @@ void jedule_sd_dump(const char * filename) FILE *fh = fopen(fname, "w"); - my_jedule->writeOutput(fh); + my_jedule->write_output(fh); fclose(fh); xbt_free(fname);