updates

@param rule
963473
public void updateRuleIndexByBodyPredicate(CQIE rule) {
		for (Function bodyAtom : rule.getBody()) {

			if (bodyAtom.isDataFunction()) {
				Predicate functionSymbol = bodyAtom.getFunctionSymbol();
				if (!ruleIndexByBodyPredicate.containsEntry(functionSymbol, rule)){
					ruleIndexByBodyPredicate.put(functionSymbol, rule);
				}
			} else if (bodyAtom.isAlgebraFunction() || bodyAtom.isOperation()) {
				updateRuleIndexByBodyPredicate_traverseBodyAtom(rule, bodyAtom);
			// BC: should we reintroduce arithmetic functions?
			//} else if (bodyAtom.isArithmeticFunction() || bodyAtom.isDataTypeFunction()){
			} else if (bodyAtom.isDataTypeFunction()){
				continue;
			} else {
				throw new IllegalStateException("Unknown Function");
			}
		}
	}
1157894
public void saveRule(Rule rule, RuleChange change) {
    	rule.setLastModified(new Date());    	
        Session session1 = getHibernateTemplate().getSessionFactory().openSession();
        Transaction tx = session1.beginTransaction();
        session1.saveOrUpdate(rule);
        session1.save(change);
        tx.commit();
        session1.close();
    }
840076
@Override
    public void visit(@Nonnull SWRLRule rule) {
        for (SWRLAtom atom : rule.getBody()) {
            atom.accept(this);
        }
        for (SWRLAtom atom : rule.getHead()) {
            atom.accept(this);
        }
        processAxiomAnnotations(rule);
    }
669067
private function setRule($rules)
    {
        $this->rules = array_merge_recursive(
            $this->rules, $this->explodeExplicitRule($rules)->rules
        );
    }
1196878
public function updateRule($name, $rule)
	{
		throw new DeprecatedException(__METHOD__);
		return \App::$domain->rbac->rule->updateRule($name, $rule);
	}
247237
private void updateRuleSplitNode(PredicateContentEvent pce) {
		int ruleID = pce.getRuleNumberID();
		for (PassiveRule rule:ruleSet) {
			if (rule.getRuleNumberID() == ruleID) {
				if (pce.getRuleSplitNode() != null)
					rule.nodeListAdd(pce.getRuleSplitNode());
				if (pce.getLearningNode() != null)
					rule.setLearningNode(pce.getLearningNode());
			}
		}
	}
202228
def _update(self, rules: list):
        
        self._rules = rules
        to_store = '\n'.join(
            rule.config_string
            for rule in rules
        )
        sftp_connection = self._sftp_connection
        with sftp_connection.open(self.RULE_PATH, mode='w') as file_handle:
            file_handle.write(to_store)
560347
public void setRules(RuleProvider provider, List<Rule> rules)
    {
        providersToRules.put(provider, rules);
    }
1123541
private RuleDto getRuleDto(RuleUpdate change) {
    try (DbSession dbSession = dbClient.openSession(false)) {
      RuleDto rule = dbClient.ruleDao().selectOrFailByKey(dbSession, change.getOrganization(), change.getRuleKey());
      if (RuleStatus.REMOVED == rule.getStatus()) {
        throw new IllegalArgumentException("Rule with REMOVED status cannot be updated: " + change.getRuleKey());
      }
      return rule;
    }
  }
1360233
public MultipleRuleContext<DPO, RI, RO> check(Rule<RI, RO> rule) {
        if (rule != null) {
            addedRules.add(rule);
        }

        // Stay in the same context and re-use the same instance because no type has changed
        return this;
    }
967512
def update(self, **kwargs):
        """"""
        self._check_exclusive_parameters(**kwargs)
        return super(Rule, self)._update(**kwargs)
990020
def addRule( self, rule ):
        
        self._rules[rule.term()] = rule
        self.updateRules()
237554
public void setRules(List rules) {
        Assert.notNull(rules);
        if (logger.isDebugEnabled()) {
            logger.debug("Configuring rules in source...");
        }
        getRuleContext(DEFAULT_CONTEXT_ID).clear();
        for (Iterator i = rules.iterator(); i.hasNext();) {
            addRules((Rules) i.next());
        }
    }
1363538
def update(self, other):
        """"""
        Cluster.update(self, other)
        self.rules.extend(other.rules)
317639
def update(self, title, rulegroups):
        """"""
        body = {
            "Title": title,
            "RuleGroups": rulegroups}
        response = self._put("/segments/%s.json" %
                             self.segment_id, json.dumps(body))
651183
public void updateFilter(String filter) {
    if (isInitialized) {
      LynxConfig lynxConfig = lynx.getConfig();
      lynxConfig.setFilter(filter);
      lynx.setConfig(lynxConfig);
      clearView();
      restartLynx();
    }
  }
428525
private void updatePredicateDependencyGraph(CQIE rule) {

		List<Predicate> dependencyList = new LinkedList<>();

		for (Function bodyAtom : rule.getBody()) {

			if (bodyAtom.isDataFunction()) {
				dependencyList.add(bodyAtom.getFunctionSymbol());
			} else if (bodyAtom.isAlgebraFunction() || bodyAtom.isOperation()) {
				updatePredicateDependencyGraph_traverseBodyAtom(dependencyList, bodyAtom);
				//} else if (bodyAtom.isArithmeticFunction() || bodyAtom.isDataTypeFunction() {
			} else if (bodyAtom.isDataTypeFunction()) {
					continue;
				} else {
					throw new IllegalStateException("Unknown Function");
				}
		}

		Predicate headPred = rule.getHead().getFunctionSymbol();
		predicateDependencyGraph.addVertex(headPred);

		for (Predicate dependentPred : dependencyList) {
			predicateDependencyGraph.addVertex(dependentPred);
			predicateDependencyGraph.addEdge(headPred, dependentPred);
		}
	}