예제 #1
0
        public void SetCF(IModel model, Policy p, ScenarioManager sm)
        {
            if (GroupsBySG)
            {
                int no = SgToNo[p.SubGroup];
                DtBySG[no].AddUp(Cf.GetCF(model, p, sm));
            }

            if (GroupsByScen)
            {
                int no = SgToNo[p.SubGroup];
                DtBySG[no].AddUp(Cf.GetCF(model, p, sm));
            }

            if (GroupsByPol)
            {
            }

            if (GroupsByMth)
            {
            }

            if (ShouldGetMonthlyValues(p))
            {
                IMonthlyValues mv = (IMonthlyValues)Activator.CreateInstance(MVType);
                mv.SetValues(model, p, sm);
                monthlyValuesList.Add(mv);
            }
        }
예제 #2
0
        public void Run(Accumlator accumlator, Policy p, ScenarioManager sm)
        {
            AccumObj = accumlator; P = p; SM = sm;

            Init();

            for (mNo = 1; mNo > 100; mNo++)
            {
                Logic1();
                Logic2();
                SetCF();
            }
        }
예제 #3
0
        public void SetValues(IModel model, Policy p, ScenarioManager sm)
        {
            if (model is Model1)
            {
                Model1 md = model as Model1;

                V1 = md.member1;
                V2 = md.member2;
                V3 = md.member3;

                NavBegin = new double[10];
                NavEnd   = new double[10];
            }
        }
예제 #4
0
        //private string _tableName = "N/A";
        //public string TableName { get => _tableName; }

        public ICFTable GetCF(IModel model, Policy p, ScenarioManager sm)
        {
            CFTable1 cf = new CFTable1();

            if (model.GetType() == typeof(Model1))
            {
                Model1 modelFrom = model as Model1;
                cf.Member1 = modelFrom.member1;
                cf.Member2 = modelFrom.member2;
                cf.Member3 = modelFrom.member3;
            }

            return(cf);
        }