Пример #1
0
 //
 public static void CheckBldObjects(KnowledgeBase KB)
 {
     KBDoctorOutput.StartSection("KBDoctor - Check bld objects in KB");
     Dictionary<string, KBObject> hash_mains = Objects.GetHashMainObjectsQNames(KB.DesignModel);
     Objects.CheckBldObjects(KB, hash_mains);
     KBDoctorOutput.EndSection("KBDoctor - Check bld objects in KB");
 }
Пример #2
0
 //
 public static void AttributeAsOutput(KnowledgeBase KB, List<KBObject> objs, out List<string[]> output_list)
 {
     KBDoctorOutput.StartSection("KBDoctor - Get Objects With Attribute/Domain as Output");
     output_list = new List<string[]>();
     foreach (KBObject obj in objs)
     {
         Objects.AttributeAsOutput(KB, obj, out output_list);
     }
     KBDoctorOutput.EndSection("KBDoctor - Get Objects With Attribute/Domain as Output");
 }
Пример #3
0
 //
 public static void CheckVariableUsages(KnowledgeBase KB, List<KBObject> objs, ref string recommendations, out int cant)
 {
     int cant_aux;
     cant = 0;
     KBDoctorOutput.StartSection("KBDoctor - Check variable usages");
     foreach(KBObject obj in objs)
     {
         KBDoctorOutput.Message("Checking object: " + obj.QualifiedName);
         Objects.CheckVariableUsages(KB.DesignModel, obj, ref recommendations, out cant_aux);
         cant += cant_aux;
     }
     KBDoctorOutput.EndSection("KBDoctor - Check variable usages");
 }
Пример #4
0
 public static void VariablesNotBasedOnAttributes(KnowledgeBase KB, List<KBObject> objs, out List<string[]> lineswriter, out int cant)
 {
     lineswriter = new List<string[]>();
     int cant_aux;
     cant = 0;
     KBDoctorOutput.StartSection("KBDoctor - Check variables not based on attributes with the same name");
     foreach (KBObject obj in objs)
     {
         List<string[]> lines_aux = new List<string[]>();
         Objects.VariablesNotBasedOnAttributes(KB.DesignModel, obj, out lines_aux, out cant_aux);
         lineswriter.AddRange(lines_aux);
         cant += cant_aux;
     }
     KBDoctorOutput.EndSection("KBDoctor - Check variables not based on attributes with the same name");
 }