Beispiel #1
0
        /// <summary>
        /// Adds decision option history to list. Can be used for not site oriented agents.
        /// </summary>
        /// <param name="history"></param>
        public void AddDecisionOptionsHistory(DecisionOptionsHistory history)
        {
            if (IsSiteOriented)
            {
                throw new SosielAlgorithmException("Couldn't add decision options history without site. It isn't possible for site oriented agents.");
            }

            DecisionOptionsHistories.Add(Site.DefaultSite, history);
        }
Beispiel #2
0
 /// <summary>
 /// Adds decision options history to list. Can be used for site oriented agents.
 /// </summary>
 /// <param name="history"></param>
 /// <param name="site"></param>
 public void AddDecisionOptionsHistory(DecisionOptionsHistory history, TSite site)
 {
     DecisionOptionsHistories.Add(site, history);
 }
Beispiel #3
0
 /// <summary>
 /// Adds decision option history to list. Can be used for not site oriented agents.
 /// </summary>
 /// <param name="defaultSite">The default site.</param>
 /// <param name="history">The history.</param>
 public void AddDecisionOptionsHistory(TSite defaultSite, DecisionOptionsHistory history)
 {
     DecisionOptionsHistories.Add(defaultSite, history);
 }