/* } */ 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); }
void Plugin::activateNetworkCommunicateCallback(){ surf_callback_connect(networkCommunicateCallbacks, boost::bind(&Plugin::networkCommunicateCallback, this, _1, _2, _3, _4, _5)); }
void Plugin::activateNetworkActionStateChangedCallback(){ surf_callback_connect(networkActionStateChangedCallbacks, boost::bind(&Plugin::networkActionStateChangedCallback, this, _1, _2, _3)); }
void Plugin::activateLinkDestructedCallback(){ surf_callback_connect(networkLinkDestructedCallbacks, boost::bind(&Plugin::networkLinkDestructedCallback, this, _1)); }
void Plugin::activateCpuStateChangedCallback(){ surf_callback_connect(cpuStateChangedCallbacks, boost::bind(&Plugin::cpuStateChangedCallback, this, _1, _2, _3)); }
void Plugin::activateCpuDestructedCallback(){ surf_callback_connect(cpuDestructedCallbacks, boost::bind(&Plugin::cpuDestructedCallback, this, _1)); }