コード例 #1
0
        public void Run(Clock clock, IMarginalEmissionState state, IDimensions dimensions)
        {
            var t = clock.Current;
            var s = state;

            if ((t.Value >= s.emissionperiod.Value) && (t.Value < (s.emissionperiod.Value + s.impulselength)))
            {
                s.modemission[t] = s.emission[t] + 1;
            }
            else
                s.modemission[t] = s.emission[t];
        }
コード例 #2
0
        public void Run(Clock clock, IMarginalEmissionState state, IDimensions dimensions)
        {
            var t = clock.Current;
            var s = state;

            if ((t.Value >= s.emissionperiod.Value) && (t.Value < (s.emissionperiod.Value + s.impulselength)))
            {
                s.modemission[t] = s.emission[t] + 1;
            }
            else
            {
                s.modemission[t] = s.emission[t];
            }
        }
コード例 #3
0
        public void Run(Clock clock, IMarginalEmissionState state, IDimensions dimensions)
        {
            var t = clock.Current;
            var s = state;

            if (clock.IsFirstTimestep)
            {

            }
            else
            {
                if ((t.Value >= s.emissionperiod.Value) && (t.Value < (s.emissionperiod.Value + 10)))
                {
                    s.modemission[t] = s.emission[t] + 1;
                }
                else
                    s.modemission[t] = s.emission[t];
            }
        }
コード例 #4
0
        public void Run(Clock clock, IMarginalEmissionState state, IDimensions dimensions)
        {
            var t = clock.Current;
            var s = state;

            if (clock.IsFirstTimestep)
            {
            }
            else
            {
                if ((t.Value >= s.emissionperiod.Value) && (t.Value < (s.emissionperiod.Value + 10)))
                {
                    s.modemission[t] = s.emission[t] + 1;
                }
                else
                {
                    s.modemission[t] = s.emission[t];
                }
            }
        }