Example #1
0
 /**
  * The main body of this process.
  */
 public void run()
 {
     while (true)
     {
         Out.write(In.read() + 1);
         //Console.WriteLine("After adding value in Successor");
     }
 }
Example #2
0
 /**
  * The main body of this process.
  */
 public void run()
 {
     //Console.WriteLine("Inside identity int");
     while (true)
     {
         //Out.write(In.read());
         var a = In.read();
         //Console.WriteLine("Prefix  identityInt is " + a.ToString());
         Out.write(a);
     }
 }
Example #3
0
        public void run()
        {
            int i = 1000;

            while (i > 0)
            {
                i = (int)inChannel.read();
                Console.WriteLine("\nThe input was " + i);
            }
            Console.WriteLine("Finished!");
        }
Example #4
0
        /**
         * The main body of this process.
         */
        public void run()
        {
            ProcessWriteInt[] parWrite = { new ProcessWriteInt(Out0), new ProcessWriteInt(Out1) };
            CSPParallel       par      = new CSPParallel(parWrite);

            while (true)
            {
                int value = In.read();
                parWrite[0].value = value;
                parWrite[1].value = value;
                par.run();
                //Console.WriteLine("Read values in Delta. ProcessWrite finished");
            }
        }