Пример #1
0
        public RuleCondorcet(int countVar, List <User> users)
        {
            this.users           = users;
            noRepeatPreference   = new List <User>();
            countVotesPreference = new List <int>();
            pairs              = new List <Pair>();
            resultPairs        = new List <Pair>();
            this.countVar      = countVar;
            countVotesVariants = new int[countVar];

            simpson = new RuleSimpson(noRepeatPreference, countVotesPreference, countVar);

            NameRuleCondorcet = "Правило Кондорсе";
            NameRuleCoplend   = "Правило Копленда";
            NameRuleSimpson   = simpson.NameRule;
        }