Exemplo n.º 1
0
        static Personal_characteristic Test_parser_level_3(ref List <Test> TESTS, string name_charact, List <Dictionary <string, double> > Dictionary_of_scales)
        {
            Personal_characteristic characteristic = new Personal_characteristic();

            characteristic.Creat_Personal_characteristic(name_charact);
            characteristic.Name = name_charact;

            List <string> completed_tests = new List <string>();

            for (int i = 0; i < TESTS.Count; i++)
            {
                completed_tests.Add(TESTS[i]._Header.Name);
            }

            characteristic.Remove_links_to_missing_tests(completed_tests);
            characteristic.Calculation_measure_of_expression(Dictionary_of_scales, TESTS);
            return(characteristic);
        }
Exemplo n.º 2
0
        static string Save_All_Groups(Personal_characteristic Personal_characteristics)
        {
            string Characteristics = "";

            for (int i = 0; i < Personal_characteristics.Groups.Count; i++)
            {
                string Manifestation = "";
                for (int j = 0; j < Personal_characteristics.Groups[i].Links.Count; j++)
                {
                    Manifestation += $"Группа {(i + 1)} {Personal_characteristics.Name} - мера принадлежности " +
                                     $"{Convert.ToString(Personal_characteristics.Groups[i].Links[j].Measure_of_expression)}; \r\n";
                    for (int k = 0; k < Personal_characteristics.Groups[i].Links[j].Test_name.Count; k++)
                    {
                        Manifestation += $"{Personal_characteristics.Groups[i].Links[j].Test_name[k]} --- {Personal_characteristics.Groups[i].Links[j].Scale_name[k]}; \r\n";
                    }
                    Manifestation += $"{Personal_characteristics.Groups[i].Manifestation} \r\n\r\n";
                }
                Characteristics += $"{Manifestation} \n\r";
            }
            return(Characteristics);
        }
Exemplo n.º 3
0
        static string Save_Groups(Personal_characteristic Personal_characteristics)
        {
            string Characteristics = "";

            for (int i = 0; i < Personal_characteristics.Groups.Count; i++)
            {
                string Manifestation = "";
                double sum           = 0;
                for (int j = 0; j < Personal_characteristics.Groups[i].Links.Count; j++)
                {
                    sum += Personal_characteristics.Groups[i].Links[j].Measure_of_expression;
                }
                if (Personal_characteristics.Groups[i].Links.Count >= 0)
                {
                    sum = sum / Personal_characteristics.Groups[i].Links.Count;
                    if (Level_of_expression.Return_text_about_of_expression(sum, out Manifestation))
                    {
                        Manifestation = $"{Personal_characteristics.Name} - Группа {(i+1)}\r\n{Manifestation}\r\n{Personal_characteristics.Groups[i].Manifestation}\r\n";
                    }
                }
                Characteristics += Manifestation;
            }
            return(Characteristics);
        }
Exemplo n.º 4
0
 public Personal_characteristic(Personal_characteristic P_CH)
 {
     Name   = P_CH.Name;
     Groups = new List <Group>(P_CH.Groups);
 }