Exemplo n.º 1
0
        public WholeViewModel()
        {
            generateHistory  = new BackTestGenerateHistoryVM();
            pricingViewModel = new VanillaCallPricingVM();
            Facade facade = new Facade(generateHistory.GenerateHistory, pricingViewModel.Pricing);

            viewFacade = new ViewFacade(facade);
        }
Exemplo n.º 2
0
        /**
         * see AbstractOptionCombobox.setPricer
         **/
        public override void setPricer(IPricingViewModel myPricingVM, IGenerateHistoryViewModel myGenHistoryVM)
        {
            myPricingVM.Pricing.oMaturity = oMaturity;
            myPricingVM.Pricing.oName     = oName;
            myPricingVM.Pricing.oShares   = oShares;
            myPricingVM.Pricing.oStrike   = oStrike;

            myGenHistoryVM.GenerateHistory.endTime          = oMaturity;
            myGenHistoryVM.GenerateHistory.strike           = oStrike;
            myGenHistoryVM.GenerateHistory.underlyingShares = oShares;
            myGenHistoryVM.GenerateHistory.vanillaCallName  = oName;
            myGenHistoryVM.GenerateHistory.weight           = oWeight;
        }
Exemplo n.º 3
0
 /**
  *
  *  Method used to inform the pricer and the historical generator
  *  of the specification of the selected Option
  *
  **/
 abstract public void setPricer(IPricingViewModel myPricingVM, IGenerateHistoryViewModel myGenHistoryVM);