#include "xbt/fifo.h"
#include "xbt/dict.h"
#include "surf_interface.hpp"
-#include "surf_routing.hpp"
#include "src/surf/PropertyHolder.hpp"
#include "simgrid/link.h"
* @param bandwidth The initial bandwidth of the Link in bytes per second
* @param latency The initial latency of the Link in seconds
* @param policy The sharing policy of the Link
- * @param props Dictionary of properties associated to this Link
*/
- virtual Link* createLink(const char *name, double bandwidth, double latency,
- e_surf_link_sharing_policy_t policy, xbt_dict_t properties)=0;
+ virtual Link* createLink(const char* name, double bandwidth, double latency,
+ e_surf_link_sharing_policy_t policy) = 0;
/**
* @brief Create a communication between two hosts.
*/
virtual double bandwidthConstraint(double rate, double bound, double size);
double nextOccuringEventFull(double now) override;
+
+ Link* loopback_ = nullptr;
};
/************
public simgrid::surf::PropertyHolder {
public:
- /** @brief Constructor of non-LMM links */
- Link(simgrid::surf::NetworkModel *model, const char *name, xbt_dict_t props);
/** @brief Constructor of LMM links */
- Link(simgrid::surf::NetworkModel *model, const char *name, xbt_dict_t props, lmm_constraint_t constraint);
+ Link(simgrid::surf::NetworkModel* model, const char* name, lmm_constraint_t constraint);
- /* Link destruction logic */
- /**************************/
+ /* Link destruction logic */
+ /**************************/
protected:
~Link() override;
public: