father->type->name,
src->type->name, src->type->id,
dst->type->name, dst->type->id);
father->type->name,
src->type->name, src->type->id,
dst->type->name, dst->type->id);
- link_type = PJ_type_link_new (link_typename, father->type, src->type, dst->type);
+ link_type = Type::linkNew (link_typename, father->type, src->type, dst->type);
- PJ_type_state_new ("MPI_STATE", mpi);
- PJ_type_link_new ("MPI_LINK", PJ_type_get_root(), mpi, mpi);
+ Type::stateNew ("MPI_STATE", mpi);
+ Type::linkNew ("MPI_LINK", PJ_type_get_root(), mpi, mpi);
container_t container = PJ_container_new(link.name(), INSTR_LINK, father);
if ((TRACE_categorized() || TRACE_uncategorized() || TRACE_platform()) && (not TRACE_disable_link())) {
container_t container = PJ_container_new(link.name(), INSTR_LINK, father);
if ((TRACE_categorized() || TRACE_uncategorized() || TRACE_platform()) && (not TRACE_disable_link())) {
}
new SetVariableEvent(0, container, bandwidth, bandwidth_value);
new SetVariableEvent(0, container, latency, latency_value);
}
if (TRACE_uncategorized()) {
}
new SetVariableEvent(0, container, bandwidth, bandwidth_value);
new SetVariableEvent(0, container, latency, latency_value);
}
if (TRACE_uncategorized()) {
container_t container = PJ_container_new(host.getCname(), INSTR_HOST, father);
if ((TRACE_categorized() || TRACE_uncategorized() || TRACE_platform()) && (not TRACE_disable_speed())) {
container_t container = PJ_container_new(host.getCname(), INSTR_HOST, father);
if ((TRACE_categorized() || TRACE_uncategorized() || TRACE_platform()) && (not TRACE_disable_speed())) {
}
double current_speed_state = host.getSpeed();
new SetVariableEvent (0, container, speed, current_speed_state);
}
if (TRACE_uncategorized()){
}
double current_speed_state = host.getSpeed();
new SetVariableEvent (0, container, speed, current_speed_state);
}
if (TRACE_uncategorized()){
- mpi = PJ_type_container_new("MPI", container->type);
- PJ_type_state_new ("MPI_STATE", mpi);
+ mpi = Type::containerNew("MPI", container->type);
+ Type::stateNew ("MPI_STATE", mpi);
- msg_process = PJ_type_container_new("MSG_PROCESS", container->type);
- type_t state = PJ_type_state_new ("MSG_PROCESS_STATE", msg_process);
+ msg_process = Type::containerNew("MSG_PROCESS", container->type);
+ type_t state = Type::stateNew ("MSG_PROCESS_STATE", msg_process);
value PJ_value("suspend", "1 0 1", state);
value::get_or_new("sleep", "1 1 0", state);
value::get_or_new("receive", "1 0 0", state);
value::get_or_new("send", "0 0 1", state);
value::get_or_new("task_execute", "0 1 1", state);
value PJ_value("suspend", "1 0 1", state);
value::get_or_new("sleep", "1 1 0", state);
value::get_or_new("receive", "1 0 0", state);
value::get_or_new("send", "0 0 1", state);
value::get_or_new("task_execute", "0 1 1", state);
- PJ_type_link_new ("MSG_PROCESS_LINK", PJ_type_get_root(), msg_process, msg_process);
- PJ_type_link_new ("MSG_PROCESS_TASK_LINK", PJ_type_get_root(), msg_process, msg_process);
+ Type::linkNew ("MSG_PROCESS_LINK", PJ_type_get_root(), msg_process, msg_process);
+ Type::linkNew ("MSG_PROCESS_TASK_LINK", PJ_type_get_root(), msg_process, msg_process);
- msg_vm = PJ_type_container_new("MSG_VM", container->type);
- type_t state = PJ_type_state_new ("MSG_VM_STATE", msg_vm);
+ msg_vm = Type::containerNew("MSG_VM", container->type);
+ type_t state = Type::stateNew ("MSG_VM_STATE", msg_vm);
value PJ_value("suspend", "1 0 1", state);
value::get_or_new("sleep", "1 1 0", state);
value::get_or_new("receive", "1 0 0", state);
value::get_or_new("send", "0 0 1", state);
value::get_or_new("task_execute", "0 1 1", state);
value PJ_value("suspend", "1 0 1", state);
value::get_or_new("sleep", "1 1 0", state);
value::get_or_new("receive", "1 0 0", state);
value::get_or_new("send", "0 0 1", state);
value::get_or_new("task_execute", "0 1 1", state);
- PJ_type_link_new ("MSG_VM_LINK", PJ_type_get_root(), msg_vm, msg_vm);
- PJ_type_link_new ("MSG_VM_PROCESS_LINK", PJ_type_get_root(), msg_vm, msg_vm);
+ Type::linkNew ("MSG_VM_LINK", PJ_type_get_root(), msg_vm, msg_vm);
+ Type::linkNew ("MSG_VM_PROCESS_LINK", PJ_type_get_root(), msg_vm, msg_vm);
if (not strcmp(root->name, "HOST")) {
char tnstr[INSTR_DEFAULT_STR_SIZE];
snprintf (tnstr, INSTR_DEFAULT_STR_SIZE, "p%s", new_typename);
if (not strcmp(root->name, "HOST")) {
char tnstr[INSTR_DEFAULT_STR_SIZE];
snprintf (tnstr, INSTR_DEFAULT_STR_SIZE, "p%s", new_typename);
}
if (not strcmp(root->name, "MSG_VM")) {
char tnstr[INSTR_DEFAULT_STR_SIZE];
snprintf (tnstr, INSTR_DEFAULT_STR_SIZE, "p%s", new_typename);
}
if (not strcmp(root->name, "MSG_VM")) {
char tnstr[INSTR_DEFAULT_STR_SIZE];
snprintf (tnstr, INSTR_DEFAULT_STR_SIZE, "p%s", new_typename);
}
if (not strcmp(root->name, "LINK")) {
char tnstr[INSTR_DEFAULT_STR_SIZE];
snprintf (tnstr, INSTR_DEFAULT_STR_SIZE, "b%s", new_typename);
}
if (not strcmp(root->name, "LINK")) {
char tnstr[INSTR_DEFAULT_STR_SIZE];
snprintf (tnstr, INSTR_DEFAULT_STR_SIZE, "b%s", new_typename);
static void recursiveNewUserVariableType (const char *father_type, const char *new_typename, const char *color, type_t root)
{
if (not strcmp(root->name, father_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)) {
static void recursiveNewUserStateType (const char *father_type, const char *new_typename, type_t root)
{
if (not strcmp(root->name, father_type)) {
static void recursiveNewUserStateType (const char *father_type, const char *new_typename, type_t root)
{
if (not strcmp(root->name, father_type)) {