public static void Main(string[] args)
 {
     IFuzzyfier fuzzyfier = new SingletonFuzzyfier();
     IDefuzzyfier defuzzyfier = new CenterOfAreaDefuzzyfier();
     BaseInferenceSystem system = new LarsenSystem(fuzzyfier, defuzzyfier);
     while (true)
     {
         string inLine = Console.ReadLine();
         if (inLine == "KRAJ")
         {
             break;
         }
         string outLine = system.Calculate(inLine);
         Console.WriteLine(outLine);
         Console.Out.Flush();
     }
 }
Beispiel #2
0
        public static void Main(string[] args)
        {
            IFuzzyfier          fuzzyfier   = new SingletonFuzzyfier();
            IDefuzzyfier        defuzzyfier = new CenterOfAreaDefuzzyfier();
            BaseInferenceSystem system      = new LarsenSystem(fuzzyfier, defuzzyfier);

            while (true)
            {
                string inLine = Console.ReadLine();
                if (inLine == "KRAJ")
                {
                    break;
                }
                string outLine = system.Calculate(inLine);
                Console.WriteLine(outLine);
                Console.Out.Flush();
            }
        }