#include "xbt/log.h"
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(simix_environment, simix,
"Logging specific to SIMIX (environment)");
-/** \defgroup msg_easier_life Platform and Application management
- * \brief This section describes functions to manage the platform creation
- * and the application deployment. You should also have a look at
- * \ref MSG_examples to have an overview of their usage.
- * \htmlonly <!-- DOXYGEN_NAVBAR_LABEL="Platforms and Applications" --> \endhtmlonly
- *
- */
/********************************* SIMIX **************************************/
-/** \ingroup msg_easier_life
- * \brief A name directory service...
- *
- * Finds a m_host_t using its name.
- * \param name the name of an host.
- * \return the corresponding host
- */
-smx_host_t SIMIX_get_host_by_name(const char *name)
-{
- xbt_fifo_item_t i = NULL;
- smx_host_t host = NULL;
-
- xbt_assert0(((simix_global != NULL)
- && (simix_global->host != NULL)), "Environment not set yet");
-
- xbt_fifo_foreach(simix_global->host,i,host,smx_host_t) {
- if(strcmp(host->name, name) == 0) return host;
- }
- return NULL;
-}
-
-/** \ingroup msg_easier_life
+/**
* \brief A platform constructor.
*
* Creates a new platform, including hosts, links and the
*
* \include small_platform.xml
*
- * Have a look in the directory examples/msg/ to have a big example.
*/
void SIMIX_create_environment(const char *file)
{
DEBUG1("Model : %s", workstation_model_name);
if (!strcmp(workstation_model_name,"KCCFLN05")) {
surf_workstation_resource_init_KCCFLN05(file);
- }
- else if (!strcmp(workstation_model_name,"KCCFLN05_proportionnal")) {
+ } else if (!strcmp(workstation_model_name,"KCCFLN05_proportionnal")) {
surf_workstation_resource_init_KCCFLN05_proportionnal(file);
} else if (!strcmp(workstation_model_name,"CLM03")) {
surf_workstation_resource_init_CLM03(file);