A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use ConditionVariable::create() for sg_cond_init().
[simgrid.git]
/
include
/
simgrid
/
s4u
/
Link.hpp
diff --git
a/include/simgrid/s4u/Link.hpp
b/include/simgrid/s4u/Link.hpp
index 11212f952615e5c56d86a18cbe2ac84d602a932f..134a1f87a63c870e368b3a17a2c39a238f8cf836 100644
(file)
--- a/
include/simgrid/s4u/Link.hpp
+++ b/
include/simgrid/s4u/Link.hpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2004-202
0
. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2004-202
1
. 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. */
/* 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. */
@@
-25,7
+25,7
@@
extern template class XBT_PUBLIC xbt::Extendable<s4u::Link>;
namespace s4u {
/**
namespace s4u {
/**
- * @rst
+ * @
begin
rst
* A Link represents the network facilities between :cpp:class:`hosts <simgrid::s4u::Host>`.
* @endrst
*/
* A Link represents the network facilities between :cpp:class:`hosts <simgrid::s4u::Host>`.
* @endrst
*/
@@
-84,10
+84,13
@@
public:
/** @brief Check if the Link is used (at least one flow uses the link) */
bool is_used() const;
/** @brief Check if the Link is used (at least one flow uses the link) */
bool is_used() const;
+ /** @brief Check if the Link is shared (not a FATPIPE) */
+ bool is_shared() const;
+
void turn_on();
bool is_on() const;
void turn_off();
void turn_on();
bool is_on() const;
void turn_off();
-
+ void seal();
/** Setup the profile with states events (ON or OFF). The profile must contain boolean values. */
void set_state_profile(kernel::profile::Profile* profile);
/** Setup the profile with bandwidth events (peak speed changes due to external load).
/** Setup the profile with states events (ON or OFF). The profile must contain boolean values. */
void set_state_profile(kernel::profile::Profile* profile);
/** Setup the profile with bandwidth events (peak speed changes due to external load).
@@
-98,7
+101,9
@@
public:
void set_latency_profile(kernel::profile::Profile* profile);
const char* get_property(const std::string& key) const;
void set_latency_profile(kernel::profile::Profile* profile);
const char* get_property(const std::string& key) const;
- void set_property(const std::string& key, const std::string& value);
+ Link* set_property(const std::string& key, const std::string& value);
+ const std::unordered_map<std::string, std::string>* get_properties() const;
+ Link* set_properties(const std::unordered_map<std::string, std::string>& properties);
/* The signals */
/** @brief Callback signal fired when a new Link is created */
/* The signals */
/** @brief Callback signal fired when a new Link is created */