public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.BondInformation serial_BondInformation = serial_Class as FpmlSerializedCSharp.BondInformation;

            this.irFrequency_ = serial_BondInformation.IrFrequency_.ValueStr;

            this.notional_ = serial_BondInformation.Notional_.ValueStr;

            this.issueDate_ = StringConverter.xmlDateToDateTime(serial_BondInformation.IssueDate_.ValueStr);

            this.maturityDate_ = StringConverter.xmlDateToDateTime(serial_BondInformation.MaturityDate_.ValueStr);

            this.dayCounter_ = serial_BondInformation.DayCounter_.ValueStr;

            this.businessDayConvention_ = serial_BondInformation.BusinessDayConvention_.ValueStr;

            this.calendar_ = serial_BondInformation.Calendar_.ValueStr;
        }
Example #2
0
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.FixedBondInstrument serial_FixedBondInstrument = serial_Class as FpmlSerializedCSharp.FixedBondInstrument;

            FpmlSerializedCSharp.BondInformation serial_bondInformation = serial_FixedBondInstrument.BondInformation_;
            string bondInformationtype = serial_bondInformation.Excel_type_.ValueStr;

            this.bondInformationViewModel_ = BondInformationViewModel.CreateBondInformation(bondInformationtype);
            this.bondInformationViewModel_.setFromSerial(serial_bondInformation);

            FpmlSerializedCSharp.BondCouponInfo serial_bondCouponInfo = serial_FixedBondInstrument.BondCouponInfo_;
            string bondCouponInfotype = serial_bondCouponInfo.Excel_type_.ValueStr;

            this.bondCouponInfoViewModel_ = BondCouponInfoViewModel.CreateBondCouponInfo(bondCouponInfotype);
            this.bondCouponInfoViewModel_.setFromSerial(serial_bondCouponInfo);

            FpmlSerializedCSharp.PayoffInfoAnalytic serial_payoffInfoAnalytic = serial_FixedBondInstrument.PayoffInfoAnalytic_;
            string payoffInfoAnalytictype = serial_payoffInfoAnalytic.Excel_type_.ValueStr;

            this.payoffInfoAnalyticViewModel_ = PayoffInfoAnalyticViewModel.CreatePayoffInfoAnalytic(payoffInfoAnalytictype);
            this.payoffInfoAnalyticViewModel_.setFromSerial(serial_payoffInfoAnalytic);
        }