Esempio n. 1
0
 public static void Main(System.String[] args)
 {
     bool guiStarted = false;
     bool shellStarted = false;
     Jamocha jamocha = new Jamocha(new Rete());
     if (null != args)
     {
         for (int i = 0; i < args.Length; ++i)
         {
             if (args[i].ToUpper().Equals("-gui".ToUpper()))
             {
                 jamocha.startGui();
                 guiStarted = true;
             }
             else if (args[i].ToUpper().Equals("-shell".ToUpper()))
             {
                 jamocha.startShell();
                 shellStarted = true;
             }
         }
     }
     // if no arguments were given or by another cause neither gui nor shell
     // were started, we show a usage guide.
     if (!shellStarted && !guiStarted)
     {
         jamocha.showUsage();
     }
     else if (!shellStarted)
     {
         jamocha.JamochaGui.ExitOnClose = true;
     }
 }
Esempio n. 2
0
        public static void  Main(System.String[] args)
        {
            bool    guiStarted   = false;
            bool    shellStarted = false;
            Jamocha jamocha      = new Jamocha(new Rete());

            if (null != args)
            {
                for (int i = 0; i < args.Length; ++i)
                {
                    if (args[i].ToUpper().Equals("-gui".ToUpper()))
                    {
                        jamocha.startGui();
                        guiStarted = true;
                    }
                    else if (args[i].ToUpper().Equals("-shell".ToUpper()))
                    {
                        jamocha.startShell();
                        shellStarted = true;
                    }
                }
            }
            // if no arguments were given or by another cause neither gui nor shell
            // were started, we show a usage guide.
            if (!shellStarted && !guiStarted)
            {
                jamocha.showUsage();
            }
            else if (!shellStarted)
            {
                jamocha.JamochaGui.ExitOnClose = true;
            }
        }
Esempio n. 3
0
 private void InitBlock(Jamocha enclosingInstance)
 {
     this.enclosingInstance = enclosingInstance;
 }
Esempio n. 4
0
 public AnonymousClassThread1(Jamocha enclosingInstance)
 {
     InitBlock(enclosingInstance);
 }
Esempio n. 5
0
 private void  InitBlock(Jamocha enclosingInstance)
 {
     this.enclosingInstance = enclosingInstance;
 }
Esempio n. 6
0
 public AnonymousClassThread1(Jamocha enclosingInstance)
 {
     InitBlock(enclosingInstance);
 }