1 /* Copyright (c) 2010-2019. The SimGrid Team. All rights reserved. */
3 /* This program is free software; you can redistribute it and/or modify it
4 * under the terms of the license (GNU LGPL) which comes with this package. */
6 #ifndef JEDULE_EVENTS_H_
7 #define JEDULE_EVENTS_H_
9 #include <simgrid/jedule/jedule_platform.hpp>
11 #include <simgrid/forward.h>
15 #include <unordered_map>
20 class XBT_PUBLIC Event {
22 Event(const std::string& name, double start_time, double end_time, const std::string& type);
23 Event(const Event&) = delete;
24 Event& operator=(const Event&) = delete;
26 void add_characteristic(char* characteristic);
27 void add_resources(std::vector<sg_host_t>* host_selection);
28 void add_info(char* key, char* value);
29 void print(FILE* file);
36 std::vector<jed_subset_t>* resource_subsets_;
37 std::vector<char*> characteristics_list_; /* just a list of names */
38 std::unordered_map<char*, char*> info_map_; /* key/value pairs */
43 typedef simgrid::jedule::Event* jed_event_t;
45 #endif /* JEDULE_EVENTS_H_ */