code: public void addConstantFactor(String factorName, Factor factor) {
      constantFactors.add(ReplicatedFactor.fromFactor(factor));
      constantFactorNames.add(factorName);
    }
docs: Adds an unparameterized factor to the model under construction.
  
  @param factor