예제 #1
0
const char *MSG_environment_as_get_property_value(msg_as_t as, const char *name)
{
  xbt_dict_t dict = xbt_lib_get_or_null(as_router_lib, MSG_environment_as_get_name(as), ROUTING_PROP_ASR_LEVEL);
  if (dict==NULL)
    return NULL;
  return xbt_dict_get_or_null(dict, name);
}
예제 #2
0
const char *MSG_environment_as_get_property_value(msg_as_t as, const char *name)
{
  xbt_dict_t dict = static_cast<xbt_dict_t> (xbt_lib_get_or_null(as_router_lib, MSG_environment_as_get_name(as),
                                                                 ROUTING_PROP_ASR_LEVEL));
  if (dict==nullptr)
    return nullptr;
  return static_cast<const char*>(xbt_dict_get_or_null(dict, name));
}
예제 #3
0
JNIEXPORT jobject JNICALL
Java_org_simgrid_msg_As_getName(JNIEnv * env, jobject jas) {
  msg_as_t as = jas_get_native(env, jas);
  return env->NewStringUTF(MSG_environment_as_get_name(as));
}