1 /* Copyright (c) 2010-2018. 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>
12 #include <simgrid_config.h>
16 #include <unordered_map>
18 #if SIMGRID_HAVE_JEDULE
22 class XBT_PUBLIC Event {
24 Event(std::string name, double start_time, double end_time, std::string type);
26 void addCharacteristic(char* characteristic);
27 void addResources(std::vector<sg_host_t>* host_selection);
28 void addInfo(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 (strings) */
38 std::unordered_map<char*, char*> info_map; /* key/value pairs */
44 typedef simgrid::jedule::Event* jed_event_t;
49 #endif /* JEDULE_EVENTS_H_ */