Esempio n. 1
0
            public void Execute(DataSet dataSet)
            {
                GenericIntDataPointSource res = (GenericIntDataPointSource)dataSet.getDataPoint("result").GetSource();

                res.SetVal(val);
                System.Console.WriteLine("Value is : " + this.val.ToString());
            }
Esempio n. 2
0
            public void Execute(DataSet dataSet)
            {
                GenericIntDataPointSource counter = (GenericIntDataPointSource)dataSet.getDataPoint("counter").GetSource();

                if (!this.crossed)
                {
                    counter.SetVal((int)counter.GetValue() + 1);
                    if ((int)counter.GetValue() >= this.boundary)
                    {
                        this.crossed = true;
                        System.Console.WriteLine("Counter is >= " + boundary.ToString());
                    }
                    else
                    {
                        // System.Console.WriteLine("Counter value is now: " + counter.GetValue());
                    }
                }
            }