Beispiel #1
0
        /// <summary>
        /// Adds rule to prototype rules and then assign one to the rule list of current agent.
        /// Also copies anticipated influence to the agent.
        /// </summary>
        /// <param name="newRule"></param>
        /// <param name="layer"></param>
        /// <param name="anticipatedInfluence"></param>
        public void AddRule(Rule newRule, RuleLayer layer, Dictionary <Goal, double> anticipatedInfluence)
        {
            Prototype.AddNewRule(newRule, layer);

            AssignNewRule(newRule, anticipatedInfluence);
        }
Beispiel #2
0
        /// <summary>
        /// Adds rule to prototype rules and then assign one to the rule list of current agent.
        /// </summary>
        /// <param name="newRule"></param>
        /// <param name="layer"></param>
        public void AddRule(Rule newRule, RuleLayer layer)
        {
            Prototype.AddNewRule(newRule, layer);

            AssignNewRule(newRule);
        }