X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e6a7d990e6208bbd5f76abff2db292395506e205..bc0010abcda73a601f75f7c96fc1cc09918ee2cd:/src/instr/jedule/jedule_events.cpp diff --git a/src/instr/jedule/jedule_events.cpp b/src/instr/jedule/jedule_events.cpp deleted file mode 100644 index b7ff520cbd..0000000000 --- a/src/instr/jedule/jedule_events.cpp +++ /dev/null @@ -1,86 +0,0 @@ -/* Copyright (c) 2010-2016. 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. */ - -#include "simgrid/jedule/jedule_events.hpp" -#include "simgrid/jedule/jedule_platform.hpp" -#include "simgrid/jedule/jedule.hpp" -#include "simgrid/s4u/As.hpp" - -#include "xbt/asserts.h" - -#if HAVE_JEDULE -namespace simgrid{ -namespace jedule{ - -Event::Event(std::string name, double start_time, double end_time, std::string type) - : name(name), start_time(start_time), end_time(end_time), type(type) -{ - this->resource_subsets = new std::vector(); -} - -Event::~Event() -{ - if (!this->resource_subsets->empty()){ - for (auto subset: *this->resource_subsets) - delete subset; - delete this->resource_subsets; - } -} - -void Event::addResources(std::vector *host_selection) -{ - get_resource_selection_by_hosts(this->resource_subsets, host_selection); -} - -void Event::addCharacteristic(char *characteristic) -{ - xbt_assert( characteristic != nullptr ); - this->characteristics_list.push_back(characteristic); -} - -void Event::addInfo(char* key, char *value) { - xbt_assert((key != nullptr) && value != nullptr); - this->info_map.insert({key, value}); -} - -void Event::print(FILE *jed_file) -{ - fprintf(jed_file, " \n"); - fprintf(jed_file, " \n", this->name.c_str()); - fprintf(jed_file, " \n", this->start_time); - fprintf(jed_file, " \n", this->end_time); - fprintf(jed_file, " \n", this->type.c_str()); - - xbt_assert(!this->resource_subsets-> empty()); - fprintf(jed_file, " \n"); - for (auto subset: *this->resource_subsets) { - fprintf(jed_file, "