code: public void setWeightList(List<? extends Object> varValues, double weight) {
      Preconditions.checkNotNull(varValues);
      Preconditions.checkArgument(getVars().size() == varValues.size());
      setWeight(vars.outcomeToAssignment(varValues), weight);
    }
docs: Convenience wrapper for {@link #setWeight(Assignment, double)}.
  {@code varValues} is the list of values to construct an assignment out of,
  sorted in order of variable number.
  
  @param varValues
  @param weight