src/TrafficCoordinator.py
def conflicts_in_interval_bool(self, interval, i, j, time_matrix_intervals):
        ''' Checks if an interval of time (start_time,end_time) conflicts at location (i,j) in time_matrix_intervals dictionary '''
        new_start, new_end, new_agent_id = interval
        epsilon = 0.001
        for (start, end, agent_id) in time_matrix_intervals[i][j]:
            if new_agent_id != agent_id:
                if (start-epsilon < new_start < end+epsilon) or (start-epsilon < new_end < end+epsilon):
                    return True
        return False
 Checks if an interval of time (start_time,end_time) conflicts at location (i,j) in time_matrix_intervals dictionary 
Checks if an interval of time (start_time,end_time) conflicts at location (i,j) in time_matrix_intervals dictionary
Checks if an interval of time ( start_time end_time ) conflicts at location ( i j ) in time_matrix_intervals dictionary
def conflicts_in_interval_bool(self, interval, i, j, time_matrix_intervals):
        new_start, new_end, new_agent_id = interval
        epsilon = 0.001
        for (start, end, agent_id) in time_matrix_intervals[i][j]:
            if new_agent_id != agent_id:
                if (start-epsilon < new_start < end+epsilon) or (start-epsilon < new_end < end+epsilon):
                    return True
        return False
def conflicts_in_interval_bool ( self , interval , i , j , time_matrix_intervals ) : new_start , new_end , new_agent_id = interval epsilon = 0.001 for ( start , end , agent_id ) in time_matrix_intervals [ i ] [ j ] : if new_agent_id != agent_id : if ( start - epsilon < new_start < end + epsilon ) or ( start - epsilon < new_end < end + epsilon ) : return True return False
Checks if an interval of time (start_time,end_time) conflicts at location (i,j) in time_matrix_intervals dictionary
Checks if an interval of time ( start_time end_time ) conflicts at location ( i j ) in time_matrix_intervals dictionary
''' Checks if an interval of time (start_time,end_time) conflicts at location (i,j) in time_matrix_intervals dictionary '''
self
interval
i
j
time_matrix_intervals