-/**
- * \brief Returns the number of links
- *
- * \return the number of existing links
- * \see SD_link_get_list()
- */
-int SD_link_get_number(void) {
- SD_CHECK_INIT_DONE();
- return sd_global->link_count;
-}
-
-/**
- * \brief Returns the user data of a link
- *
- * \param link a link
- * \return the user data associated with this link (can be \c NULL)
- * \see SD_link_set_data()
- */
-void* SD_link_get_data(SD_link_t link) {
- SD_CHECK_INIT_DONE();
- xbt_assert0(link != NULL, "Invalid parameter");
- return link->data;
-}
-
-/**
- * \brief Sets the user data of a link
- *
- * The new data can be \c NULL. The old data should have been freed first
- * if it was not \c NULL.
- *
- * \param link a link
- * \param data the new data you want to associate with this link
- * \see SD_link_get_data()
- */
-void SD_link_set_data(SD_link_t link, void *data) {
- SD_CHECK_INIT_DONE();
- xbt_assert0(link != NULL, "Invalid parameter");
- link->data = data;
-}
-
-/**
- * \brief Returns the name of a link
- *
- * \param link a link
- * \return the name of this link (cannot be \c NULL)
- */
-const char* SD_link_get_name(SD_link_t link) {
- SD_CHECK_INIT_DONE();
- xbt_assert0(link != NULL, "Invalid parameter");
- return surf_workstation_model->extension_public->get_link_name(link->surf_link);
-}
-
-/**
- * \brief Returns the current bandwidth of a link
- *
- * \param link a link
- * \return the current bandwidth of this link, in Flops
- */
-double SD_link_get_current_bandwidth(SD_link_t link) {
- SD_CHECK_INIT_DONE();
- xbt_assert0(link != NULL, "Invalid parameter");
- return surf_workstation_model->extension_public->get_link_bandwidth(link->surf_link);
-}
-
-/**
- * \brief Returns the value of a certain link property
- *
- * \param workstation a workstation
- * \param name a property name
- * \return value of a property
- */
-const char* SD_link_get_property_value(SD_link_t link, char* name)
-{
- return xbt_dict_get_or_null(SD_link_get_properties(link), name);
-}
-
-/**
- * \brief Returns a xbt_dynar_t consisting of the list of properties assigned to a link
- *
- * \param link a link
- * \return the dictionary containing the properties associated with the link
- */
-xbt_dict_t SD_link_get_properties(SD_link_t link)
-{
- SD_CHECK_INIT_DONE();
- xbt_assert0((link != NULL), "Invalid parameters");
-
- return (surf_workstation_model->common_public->get_properties(link->surf_link));
-
-}