Set a parameter.
431452
def set_parameter(self, name, value):
        """"""
        self.lib.tdSetDeviceParameter(self.id, name, str(value))
703054
public void setParameter(String parameterName, String parameterValue) {
        log.trace("enter PostMethod.setParameter(String, String)");

        removeParameter(parameterName);
        addParameter(parameterName, parameterValue);
    }
1096133
private void setParameter(String key, Object value){
        if (value == null){
            parameters.remove(key);
        }     
        else{
            parameters.put(key, value);
        }
    }
614083
public function setParameter($parameter, $value)
    {
        if (is_bool($value)) {
            $value = $value ? '1' : '0';
        }

        $this->parameters[$parameter] = $value;
    }
652899
public RequestBuilder<T,ID> setParameter(String name,String value)
    {
        parameters.set(name, value);
        return this;
    }
1272460
public void setParameter(final String key, final String value) {
		parameters.put(key, new String[]{value});
	}
366446
public void setParameters(Map<String, String> parameters) {
        if (parameters == null || parameters.isEmpty()) {
            this.parameterItemRuleMap = null;
        } else {
            ItemRuleMap itemRuleMap = new ItemRuleMap();
            for (Map.Entry<String, String> entry : parameters.entrySet()) {
                ItemRule ir = new ItemRule();
                ir.setTokenize(false);
                ir.setName(entry.getKey());
                ir.setValue(entry.getValue());
                itemRuleMap.putItemRule(ir);
            }
            this.parameterItemRuleMap = itemRuleMap;
        }
    }
421706
def set_parameter(param_num, new_val)
      raise JSS::NoSuchItemError, 'Parameter numbers must be from 4-11' unless (4..11).cover? param_num
      pkey = "parameter#{param_num}".to_sym
      raise JSS::InvalidDataError, 'parameter values must be strings or nil' unless new_val.nil? || new_val.is_a?(String)
      return nil if new_val == @parameters[pkey]
      @parameters[pkey] = new_val
      @need_to_update = true
    end
106309
def set(self, value):
        """"""
        if self.validate(value):
            #print "Parameter " + self.id + " successfully set to " + repr(value)
            self.hasvalue = True
            if isinstance(value, float):
                self.value = round(value)
            else:
                self.value = int(value)
            return True
        else:
            #print "Parameter " + self.id + " COULD NOT BE set to " + repr(value)
            return False
613760
def set_parameters(self, parameters_dict):
        
        DB.set_hash_value(self._key, 'parameters', parameters_dict)
        self.publish("parameters_updated")
289001
def set_parameters(self, **args):
        """"""
        not_used = set()
        not_given = set()
        for p in self.processors:
            nu, ng = p.set_parameters(**args)
            not_used = not_used.union(nu)
            not_given = not_given.union(ng)
        return not_used, not_given
411822
def set_params(self, params):
        
        for k,v in params.iteritems():
            self.set_param(k,v)
522391
public void setParameters(String nameParam, String typeParam, String value) {
        this.parameters.put(nameParam, typeParam);
        this.parametersValue.add(value);
    }
840300
public Request setParam(String name, String value) {
        this.params.put(name, value);
        return this;
    }
935000
private function setPayloadParameter(string $parameter, $value): void
    {
        $this->checkParameterType($value);

        $this->defaultSetPayloadParameter($parameter, $value);
    }
138371
def set_param(self, key, value):
        
        self.__dict__[key] = value
        self._parameters[key] = value
71759
def _set_params(self, x):
        """"""
        assert x.size == self.num_params
        self.varianceU = x[0]
        self.varianceY = x[1]
        self.lengthscaleU = x[2]
        self.lengthscaleY = x[3]