Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright lines for 2022.
[simgrid.git] / src / kernel / resource / profile / Profile.hpp
index c2c5b8e..8cd2754 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2004-2021. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2004-2022. 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. */
@@ -32,13 +32,16 @@ public:
   Event* schedule(FutureEvtSet* fes, resource::Resource* resource);
   DatedValue next(Event* event);
 
+  const std::vector<DatedValue>& get_event_list() const { return event_list; }
+  const std::vector<StochasticDatedValue>& get_stochastic_event_list() const { return stochastic_event_list; }
+
   static Profile* from_file(const std::string& path);
   static Profile* from_string(const std::string& name, const std::string& input, double periodicity);
-  // private:
+
+private:
   std::vector<DatedValue> event_list;
   std::vector<StochasticDatedValue> stochastic_event_list;
 
-private:
   FutureEvtSet* fes_  = nullptr;
   bool stochastic     = false;
   bool stochasticloop = false;