* Resource *
************/
- Link::Link(simgrid::surf::NetworkModel *model, const char *name, xbt_dict_t props)
- : Resource(model, name),
- PropertyHolder(props)
- {
- links->insert({name, this});
-
- latency_.scale = 1;
- bandwidth_.scale = 1;
- XBT_DEBUG("Create link '%s'",name);
- }
-
- Link::Link(simgrid::surf::NetworkModel *model, const char *name, xbt_dict_t props, lmm_constraint_t constraint)
- : Resource(model, name, constraint),
- PropertyHolder(props)
+ Link::Link(simgrid::surf::NetworkModel* model, const char* name, lmm_constraint_t constraint)
+ : Resource(model, name, constraint)
{
if (strcmp(name,"__loopback__"))
xbt_assert(!Link::byName(name), "Link '%s' declared several times in the platform.", name);
Link::~Link() {
xbt_assert(currentlyDestroying_, "Don't delete Links directly. Call destroy() instead.");
}
- /** @brief Fire the require callbacks and destroy the object
+ /** @brief Fire the required callbacks and destroy the object
*
- * Don't delete directly an Link, call l->destroy() instead.
+ * Don't delete directly a Link, call l->destroy() instead.
*/
void Link::destroy()
{