def METHOD_NAME(self, segment):
    """
    Return the performance for a segment.
    segment: index of the segment
    """
    if (segment < 0 or segment > 3):
        return 0
    return self.segments[segment].getPerformance()