#include "xbt/dynar.h"
#include "xbt/dict.h"
#include "xbt/misc.h"
+#include "portable.h"
SG_BEGIN_DECL()
double finish; /**< finish time : this is modified during the run
* and fluctuates until the task is completed */
void *data; /**< for your convenience */
- int using;
+ int refcount ;
surf_model_t model_type;
} s_surf_action_t;
int (*is_suspended) (surf_action_t action); /**< Return whether an action is suspended */
void (*set_max_duration) (surf_action_t action, double duration); /**< Set the max duration of an action*/
void (*set_priority) (surf_action_t action, double priority); /**< Set the priority of an action */
+ xbt_dict_t (*get_properties) (void* resource_id); /**< Return the properties dictionary */
const char *name; /**< Name of this model */
-
- xbt_dict_t (*get_properties) (void* link); /**< Return the properties dictionary */
-
} s_surf_model_public_t, *surf_model_public_t;
/** \brief Private data available on all models
const char* (*get_link_name) (const void *link);
double (*get_link_bandwidth) (const void *link);
double (*get_link_latency) (const void *link);
+ int (*link_shared) (const void *link);
} s_surf_network_model_extension_public_t,
*surf_network_model_extension_public_t;
*/
XBT_PUBLIC_DATA(surf_network_model_t) surf_network_model;
+/** \brief Initializes the platform with the network model 'LagrangeVelho'
+ * \ingroup SURF_models
+ * \param filename XML platform file name
+ *
+ * This model is proposed by Arnaud Legrand and Pedro Velho based on
+ * the results obtained with the GTNets simulator for onelink and
+ * dogbone sharing scenarios.
+ *
+ * \see surf_workstation_model_init_LegrandVelho()
+ */
+XBT_PUBLIC(void) surf_network_model_init_LegrandVelho(const char *filename);
/** \brief Initializes the platform with the network model 'Constant'
* \ingroup SURF_models
const char* (*get_link_name) (const void *link); /**< Return the name of a network link */
double (*get_link_bandwidth) (const void *link); /**< Return the current bandwidth of a network link */
double (*get_link_latency) (const void *link); /**< Return the current latency of a network link */
+ int (*link_shared) (const void *link);
} s_surf_workstation_model_extension_public_t,
*surf_workstation_model_extension_public_t;
/* This is used by all models when creating the routing table while parsing */
XBT_PUBLIC_DATA(xbt_dict_t) route_table;
XBT_PUBLIC_DATA(xbt_dict_t) route_multi_table;
-XBT_PUBLIC_DATA(xbt_dict_t) route_multi_table;
+
/* For the trace and trace:connect tag (store their content till the end of the parsing) */
XBT_PUBLIC_DATA(xbt_dict_t) traces_set_list;