static type_t s_type_get_or_null (const char *name, type_t father);
static type_t s_type_container_new (const char *name, type_t father);
static type_t s_type_event_new (const char *name, type_t father);
+ static type_t s_type_variable_new (const char *name, const char *color, type_t father);
};
//--------------------------------------------------
XBT_PRIVATE void PJ_type_release ();
XBT_PUBLIC(type_t) PJ_type_get_root ();
type_t PJ_type_link_new (const char *name, type_t father, type_t source, type_t dest);
-XBT_PRIVATE XBT_PRIVATE type_t PJ_type_variable_new (const char *name, const char *color, type_t father);
XBT_PRIVATE type_t PJ_type_state_new (const char *name, type_t father);
XBT_PUBLIC(type_t) PJ_type_get (const char *name, const type_t father);
XBT_PRIVATE XBT_PRIVATE void PJ_type_free (type_t type);
if ((TRACE_categorized() || TRACE_uncategorized() || TRACE_platform()) && (not TRACE_disable_link())) {
type_t bandwidth = s_type::s_type_get_or_null("bandwidth", container->type);
if (bandwidth == nullptr) {
- bandwidth = PJ_type_variable_new("bandwidth", nullptr, container->type);
+ bandwidth = s_type::s_type_variable_new("bandwidth", nullptr, container->type);
}
type_t latency = s_type::s_type_get_or_null("latency", container->type);
if (latency == nullptr) {
- latency = PJ_type_variable_new("latency", nullptr, container->type);
+ latency = s_type::s_type_variable_new("latency", nullptr, container->type);
}
new SetVariableEvent(0, container, bandwidth, bandwidth_value);
new SetVariableEvent(0, container, latency, latency_value);
if (TRACE_uncategorized()) {
type_t bandwidth_used = s_type::s_type_get_or_null("bandwidth_used", container->type);
if (bandwidth_used == nullptr) {
- PJ_type_variable_new("bandwidth_used", "0.5 0.5 0.5", container->type);
+ s_type::s_type_variable_new("bandwidth_used", "0.5 0.5 0.5", container->type);
}
}
}
if ((TRACE_categorized() || TRACE_uncategorized() || TRACE_platform()) && (not TRACE_disable_speed())) {
type_t speed = s_type::s_type_get_or_null ("power", container->type);
if (speed == nullptr){
- speed = PJ_type_variable_new ("power", nullptr, container->type);
+ speed = s_type::s_type_variable_new ("power", nullptr, container->type);
}
double current_speed_state = host.getSpeed();
if (TRACE_uncategorized()){
type_t speed_used = s_type::s_type_get_or_null ("power_used", container->type);
if (speed_used == nullptr){
- PJ_type_variable_new ("power_used", "0.5 0.5 0.5", container->type);
+ s_type::s_type_variable_new ("power_used", "0.5 0.5 0.5", container->type);
}
}
if (not strcmp(root->name, "HOST")) {
char tnstr[INSTR_DEFAULT_STR_SIZE];
snprintf (tnstr, INSTR_DEFAULT_STR_SIZE, "p%s", new_typename);
- PJ_type_variable_new (tnstr, color, root);
+ s_type::s_type_variable_new (tnstr, color, root);
}
if (not strcmp(root->name, "MSG_VM")) {
char tnstr[INSTR_DEFAULT_STR_SIZE];
snprintf (tnstr, INSTR_DEFAULT_STR_SIZE, "p%s", new_typename);
- PJ_type_variable_new (tnstr, color, root);
+ s_type::s_type_variable_new (tnstr, color, root);
}
if (not strcmp(root->name, "LINK")) {
char tnstr[INSTR_DEFAULT_STR_SIZE];
snprintf (tnstr, INSTR_DEFAULT_STR_SIZE, "b%s", new_typename);
- PJ_type_variable_new (tnstr, color, root);
+ s_type::s_type_variable_new (tnstr, color, root);
}
xbt_dict_cursor_t cursor = nullptr;
type_t child_type;
static void recursiveNewUserVariableType (const char *father_type, const char *new_typename, const char *color, type_t root)
{
if (not strcmp(root->name, father_type)) {
- PJ_type_variable_new (new_typename, color, root);
+ s_type::s_type_variable_new (new_typename, color, root);
}
xbt_dict_cursor_t cursor = nullptr;
type_t child_type;