1 /* Copyright (c) 2010-2012, 2014-2015. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
7 #ifndef JEDULE_EVENTS_H_
8 #define JEDULE_EVENTS_H_
10 #include "simgrid_config.h"
11 #include "simgrid/forward.h"
14 #include <unordered_map>
16 #include "jedule_platform.hpp"
22 XBT_PUBLIC_CLASS Event{
26 Event(std::string name, double start_time, double end_time, std::string type)
27 : name(name), start_time(start_time), end_time(end_time), type(type){}
29 void addCharacteristic(char *characteristic);
30 void addResources(std::vector<sg_host_t> *host_selection);
31 void addInfo(char *key, char *value);
32 void print(FILE *file);
39 std::vector<jed_res_subset_t> resource_subsets;
40 std::vector<char*> characteristics_list; /* just a list of names (strings) */
41 std::unordered_map<char*, char*> info_map; /* key/value pairs */
48 typedef simgrid::jedule::Event * jed_event_t;
54 #endif /* JEDULE_EVENTS_H_ */