/// <summary> /// Adds rule history to list. Can be used for not site oriented agents. /// </summary> /// <param name="history"></param> public void AddRuleHistory(RuleHistory history) { if (IsSiteOriented) { throw new SosielAlgorithmException("Couldn't add rule history without site. It isn't possible for site oriented agents."); } RuleHistories.Add(default(ActiveSite), history); }
/// <summary> /// Adds rule history to list. Can be used for site oriented agents. /// </summary> /// <param name="history"></param> /// <param name="site"></param> public void AddRuleHistory(RuleHistory history, ActiveSite site) { RuleHistories.Add(site, history); }