def METHOD_NAME(self, linearPart, maxTime,
                        distanceWeight, pathWeight, timeWeight):
    """
    Set the parameters used to compute the performance for this segment.
    This method must be called at least once or the performance will not
    be computed.
    linearPart: weight of the linear component of the distance part of
    the performance.
    maxTime: maximum time before the time part of the performance is 0, in
    seconds.
    distanceWeight: weight of the distance part in the performance.
    pathWeight: weight of the path part in the performance.
    timeWeight: weight of the time part in the performance.
    """
    self.linearPart = linearPart
    self.expPart = 1 - linearPart
    self.maxTime = maxTime
    self.distanceWeight = distanceWeight
    self.pathWeight = pathWeight
    self.timeWeight = timeWeight
    self.totalWeight = distanceWeight + pathWeight + timeWeight
    self.performanceInit = True