Пример #1
0
        public override double CalculateLoss(RMS.Utilities.SimulationMsg cdlMsg, bool bDebug)
        {
            InitCheck();

            this.m_trCoverNode.RootNode.CalculateLoss(cdlMsg, bDebug);

            double payout = this.m_trCoverNode.RootNode.Payout;

            return(payout);
        }
Пример #2
0
        public override double CalculateLoss(RMS.Utilities.SimulationMsg cdlMsg, bool bDebug)
        {
            InitCheck();


            double      payout  = 0.0;
            XmlDocument docTree = this.m_trTermNode.RootNode.BuildXMLRepresentation(cdlMsg, bDebug);

            //DEBUG
            //XmlDocument docTree = new XmlDocument();
            //docTree.Load(@"cdl-tree-test.xml");
            childStringToIntIdMap = new Dictionary <string, int>();
            BuildBuckets(docTree, docTree.ChildNodes);
            docTree.Save(@"cdl-tree.xml");

            this.m_trTermNode.RootNode.CalculateLossMain(cdlMsg, bDebug, this.m_trTermNode.MapIntIdToNode);
            //this.m_trTermNode.RootNode.CalculateLoss(cdlMsg, bDebug);
            this.m_trCoverNode.RootNode.CalculateLoss(cdlMsg, bDebug);

            payout = this.m_trCoverNode.RootNode.Payout;

            return(payout);
        }