Mercurial > hg > Database > Christie-sharp
view Test/Example/OddEven/OddCodeGear.cs @ 49:6d733b2ea461
add OddEvenTest
author | riono <e165729@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 10 Jan 2022 03:16:33 +0900 |
parents | |
children |
line wrap: on
line source
using System; using Christie_net.annotation; using Christie_net.codegear; namespace Christie_net.Test.Example.OddEven { public class OddCodeGear : CodeGear { [Take] public int odd; [Peek] public int finishCount; public override void Run(CodeGearManager cgm) { Console.WriteLine(odd + " : odd"); if (finishCount + 1 != odd) { GetDgm("even").Put("even", odd + 1); cgm.Setup(new OddCodeGear()); } } } }