X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dccf1b41e9c7b5a696f01abceaa2779fe65f154f..bc0010abcda73a601f75f7c96fc1cc09918ee2cd:/include/simgrid/jedule/jedule_platform.hpp diff --git a/include/simgrid/jedule/jedule_platform.hpp b/include/simgrid/jedule/jedule_platform.hpp deleted file mode 100644 index 6c0055ed00..0000000000 --- a/include/simgrid/jedule/jedule_platform.hpp +++ /dev/null @@ -1,62 +0,0 @@ -/* Copyright (c) 2010-2012, 2014-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. */ - -#ifndef JED_SIMGRID_PLATFORM_H_ -#define JED_SIMGRID_PLATFORM_H_ - -#include "simgrid_config.h" -#include "simgrid/forward.h" -#include "xbt/dynar.h" -#include -#include -#include -#if HAVE_JEDULE - -namespace simgrid { -namespace jedule{ -XBT_PUBLIC_CLASS Container { -public: - Container(std::string name); - virtual ~Container(); -private: - int last_id; - int is_lowest = 0; -public: - std::string name; - std::unordered_map name2id; - Container *parent = nullptr; - std::vector children; - std::vector resource_list; - void addChild(Container* child); - void addResources(std::vector hosts); - void createHierarchy(AS_t from_as); - std::vector getHierarchy(); - std::string getHierarchyAsString(); - void print(FILE *file); - void printResources(FILE *file); -}; - -XBT_PUBLIC_CLASS Subset { -public: - Subset(int s, int n, Container* p); - virtual ~Subset()=default; - int start_idx; // start idx in resource_list of container - int nres; // number of resources spanning starting at start_idx - Container *parent; -}; - -} -} -SG_BEGIN_DECL() -typedef simgrid::jedule::Container * jed_container_t; -typedef simgrid::jedule::Subset * jed_subset_t; -void get_resource_selection_by_hosts(std::vector* subset_list, std::vector *host_list); - -SG_END_DECL() - -#endif - -#endif /* JED_SIMGRID_PLATFORM_H_ */