def METHOD_NAME(self, schedule):
    """
    Set the LambdaSchedule used to control how different forcefield
    parameters will be changed with lambda
    """
    if self._lambda_lever is None:
        raise ValueError("Cannot set the schedule in a null context!")
    self._lambda_lever.set_schedule(schedule)