if (type == SimulationParameters.TYPES.CLOUD) {
            this.tasksFailedCloud++;
        } else if (type == SimulationParameters.TYPES.EDGE_DATACENTER) {
            this.tasksFailedEdge++;
        } else if (type == SimulationParameters.TYPES.EDGE_DEVICE) {