#include "Graf.h" /** * the constructor * * @param i the processor's index * @param c the processor's cost */ Procesor::Procesor(int i, int c) : Nod(i,c) { nr_tasks = 0; nr_procs = 1; queue = NULL; time = 0; cost_comm = NULL; } /** * method adding the communication costs for the specified number of processors * * @param v the list of communication costs * @param n the number of processors */ void Procesor::addCosts(int v[], int n){ nr_procs = n; cost_comm = (int *)calloc(n,sizeof(int)); for (int i=0;i