Exemplo n.º 1
0
static void ptask_define_callbacks()
{
  sg_platf_host_add_cb(cpu_parse_init);
  sg_platf_host_add_cb(workstation_parse_init);
  sg_platf_link_add_cb(ptask_netlink_parse_init);
  sg_platf_postparse_add_cb(workstation_add_traces);
}
Exemplo n.º 2
0
/*********
 * Model *
 *********/
void surf_network_model_init_Constant()
{
  xbt_assert(surf_network_model == NULL);
  surf_network_model = new NetworkConstantModel();

  sg_platf_host_add_cb(netcste_count_hosts);

  ModelPtr model = surf_network_model;
  xbt_dynar_push(model_list, &model);
}
Exemplo n.º 3
0
void surf_host_model_init_compound()
{

  xbt_assert(surf_cpu_model_pm, "No CPU model defined yet!");
  xbt_assert(surf_network_model, "No network model defined yet!");
  surf_host_model = new HostCLM03Model();

  ModelPtr model = surf_host_model;
  xbt_dynar_push(model_list, &model);
  xbt_dynar_push(model_list_invoke, &model);
  sg_platf_host_add_cb(host_parse_init);
}
Exemplo n.º 4
0
void surf_host_model_init_current_default(void)
{
  surf_host_model = new HostCLM03Model();
  xbt_cfg_setdefault_boolean(_sg_cfg_set, "network/crosstraffic", "yes");
  surf_cpu_model_init_Cas01();
  surf_network_model_init_LegrandVelho();

  Model *model = surf_host_model;
  xbt_dynar_push(model_list, &model);
  xbt_dynar_push(model_list_invoke, &model);
  sg_platf_host_add_cb(host_parse_init);
}
Exemplo n.º 5
0
/*  } */
void surf_network_model_init_IB(void)
{

  if (surf_network_model)
    return;
  surf_network_model = new NetworkIBModel();
  net_define_callbacks();
  xbt_dynar_push(model_list, &surf_network_model);
  surf_callback_connect(networkActionStateChangedCallbacks, IB_action_state_changed_callback);
  surf_callback_connect(networkCommunicateCallbacks, IB_action_init_callback);

  sg_platf_host_add_cb(IB_create_host_callback);
  xbt_cfg_setdefault_double(_sg_cfg_set, "network/weight_S", 8775);
  
}
Exemplo n.º 6
0
static void cpu_define_callbacks()
{
  sg_platf_host_add_cb(cpu_parse_init);
  sg_platf_postparse_add_cb(cpu_add_traces);
}
Exemplo n.º 7
0
static void java_cpu_model_init_preparse() {
  surf_cpu_model_pm = java_cpu_model;
  xbt_dynar_push(model_list, &java_cpu_model);
  xbt_dynar_push(model_list_invoke, &java_cpu_model);
  sg_platf_host_add_cb(cpu_parse_init);
}