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); }
public CriterionNode(string name, decimal localPriority) : base(name, localPriority) { _subcriterionNodes = new CriterionNodeCollection(ChildNodes); _alternativeNodes = new AlternativeNodeCollection(ChildNodes); }