示例#1
0
        public GoalNode(Hierarchy hierarchy, string name)
            : base(name, 1M)
        {
            if (hierarchy == null)
            {
                throw new ArgumentNullException("hierarchy");
            }

            if (hierarchy.GoalNode != null)
            {
                throw new ArgumentException("Uninitialized hierarchy with null GoalNode expected.");
            }

            Hierarchy       = hierarchy;
            _criterionNodes = new CriterionNodeCollection(ChildNodes);
        }
示例#2
0
 public CriterionNode(string name, decimal localPriority)
     : base(name, localPriority)
 {
     _subcriterionNodes = new CriterionNodeCollection(ChildNodes);
     _alternativeNodes  = new AlternativeNodeCollection(ChildNodes);
 }