Example #1
0
        /// <summary>
        /// Sets values for non existing periods from a previous instance
        /// </summary>
        /// <remarks>Used to fill-forward values from previous dates</remarks>
        /// <param name="previous">The previous instance</param>
        public void UpdateValues(EarningRatios previous)
        {
            if (previous == null)
            {
                return;
            }

            if (DilutedEPSGrowth != null)
            {
                DilutedEPSGrowth.UpdateValues(previous.DilutedEPSGrowth);
            }
            if (DilutedContEPSGrowth != null)
            {
                DilutedContEPSGrowth.UpdateValues(previous.DilutedContEPSGrowth);
            }
            if (DPSGrowth != null)
            {
                DPSGrowth.UpdateValues(previous.DPSGrowth);
            }
            if (EquityPerShareGrowth != null)
            {
                EquityPerShareGrowth.UpdateValues(previous.EquityPerShareGrowth);
            }
            if (RegressionGrowthofDividends5Years != null)
            {
                RegressionGrowthofDividends5Years.UpdateValues(previous.RegressionGrowthofDividends5Years);
            }
        }
Example #2
0
 /// <summary>
 /// Creates an instance of the EarningRatios class
 /// </summary>
 public EarningRatios()
 {
     DilutedEPSGrowth     = new DilutedEPSGrowth();
     DilutedContEPSGrowth = new DilutedContEPSGrowth();
     DPSGrowth            = new DPSGrowth();
     EquityPerShareGrowth = new EquityPerShareGrowth();
     RegressionGrowthofDividends5Years = new RegressionGrowthofDividends5Years();
 }
Example #3
0
 /// <summary>
 /// Sets values for non existing periods from a previous instance
 /// </summary>
 /// <remarks>Used to fill-forward values from previous dates</remarks>
 /// <param name="previous">The previous instance</param>
 public void UpdateValues(EarningRatios previous)
 {
     DilutedEPSGrowth.UpdateValues(previous.DilutedEPSGrowth);
     DilutedContEPSGrowth.UpdateValues(previous.DilutedContEPSGrowth);
     DPSGrowth.UpdateValues(previous.DPSGrowth);
     EquityPerShareGrowth.UpdateValues(previous.EquityPerShareGrowth);
     RegressionGrowthofDividends5Years.UpdateValues(previous.RegressionGrowthofDividends5Years);
 }
Example #4
0
 /// <summary>
 /// Creates an instance of the EarningRatios class
 /// </summary>
 public EarningRatios()
 {
     DilutedEPSGrowth     = new DilutedEPSGrowth();
     DilutedContEPSGrowth = new DilutedContEPSGrowth();
     DPSGrowth            = new DPSGrowth();
     EquityPerShareGrowth = new EquityPerShareGrowth();
     RegressionGrowthofDividends5Years = new RegressionGrowthofDividends5Years();
     FCFPerShareGrowth          = new FCFPerShareGrowth();
     BookValuePerShareGrowth    = new BookValuePerShareGrowth();
     NormalizedDilutedEPSGrowth = new NormalizedDilutedEPSGrowth();
     NormalizedBasicEPSGrowth   = new NormalizedBasicEPSGrowth();
 }
Example #5
0
        /// <summary>
        /// Applies updated values from <paramref name="update"/> to this instance
        /// </summary>
        /// <remarks>Used to apply data updates to the current instance. This WILL overwrite existing values. Default update values are ignored.</remarks>
        /// <param name="update">The next data update for this instance</param>
        public void UpdateValues(EarningRatios update)
        {
            if (update == null)
            {
                return;
            }

            DilutedEPSGrowth?.UpdateValues(update.DilutedEPSGrowth);
            DilutedContEPSGrowth?.UpdateValues(update.DilutedContEPSGrowth);
            DPSGrowth?.UpdateValues(update.DPSGrowth);
            EquityPerShareGrowth?.UpdateValues(update.EquityPerShareGrowth);
            RegressionGrowthofDividends5Years?.UpdateValues(update.RegressionGrowthofDividends5Years);
            FCFPerShareGrowth?.UpdateValues(update.FCFPerShareGrowth);
            BookValuePerShareGrowth?.UpdateValues(update.BookValuePerShareGrowth);
            NormalizedDilutedEPSGrowth?.UpdateValues(update.NormalizedDilutedEPSGrowth);
            NormalizedBasicEPSGrowth?.UpdateValues(update.NormalizedBasicEPSGrowth);
        }
Example #6
0
        /// <summary>
        /// Sets values for non existing periods from a previous instance
        /// </summary>
        /// <remarks>Used to fill-forward values from previous dates</remarks>
        /// <param name="previous">The previous instance</param>
        public void UpdateValues(EarningRatios previous)
        {
            if (previous == null)
            {
                return;
            }

            if (DilutedEPSGrowth != null)
            {
                DilutedEPSGrowth.UpdateValues(previous.DilutedEPSGrowth);
            }
            if (DilutedContEPSGrowth != null)
            {
                DilutedContEPSGrowth.UpdateValues(previous.DilutedContEPSGrowth);
            }
            if (DPSGrowth != null)
            {
                DPSGrowth.UpdateValues(previous.DPSGrowth);
            }
            if (EquityPerShareGrowth != null)
            {
                EquityPerShareGrowth.UpdateValues(previous.EquityPerShareGrowth);
            }
            if (RegressionGrowthofDividends5Years != null)
            {
                RegressionGrowthofDividends5Years.UpdateValues(previous.RegressionGrowthofDividends5Years);
            }
            if (FCFPerShareGrowth != null)
            {
                FCFPerShareGrowth.UpdateValues(previous.FCFPerShareGrowth);
            }
            if (BookValuePerShareGrowth != null)
            {
                BookValuePerShareGrowth.UpdateValues(previous.BookValuePerShareGrowth);
            }
            if (NormalizedDilutedEPSGrowth != null)
            {
                NormalizedDilutedEPSGrowth.UpdateValues(previous.NormalizedDilutedEPSGrowth);
            }
            if (NormalizedBasicEPSGrowth != null)
            {
                NormalizedBasicEPSGrowth.UpdateValues(previous.NormalizedBasicEPSGrowth);
            }
        }