Ejemplo n.º 1
0
        public override void Update(int scenario)
        {
            if (tipografico != 2)
            {
                Series.Clear();



                List <DataSeriesViewModel> dataSeriesList;
                try
                {
                    dataSeriesList = ResultsDataProvider.GetMarginalCostsByBlocksDataSeries(scenario, tipografico);
                }
                catch
                {
                    throw;
                }

                Series.Add(ChartSeriesCreator.CreateLineSeries(dataSeriesList[0], seriesColors[0], false, true));

                for (int position = 1; position < dataSeriesList.Count; position++)
                {
                    try
                    {
                        Series.Add(ChartSeriesCreator.CreateLineSeries(dataSeriesList[position], seriesColors[position], false, false));
                    }
                    catch (System.Exception)
                    {
                        throw;
                    }
                }
            }
        }
Ejemplo n.º 2
0
        public override void Update(int scenario, string selectedReservoir)
        {
            if (tipografico != 0)
            {
                Series.Clear();

                List <DataSeriesViewModel> dataSeriesList;
                try
                {
                    dataSeriesList = ResultsDataProvider.GetReservoirEvolutionDataSeries(scenario, selectedReservoir);
                }
                catch
                {
                    throw;
                }

                Series.Add(ChartSeriesCreator.CreateAreaSeries(dataSeriesList[0], seriesColors[0], true));
                Series.Add(ChartSeriesCreator.CreateLineSeries(dataSeriesList[1], seriesColors[1], true, false));

                LineSeries generationSeries = ChartSeriesCreator.CreateLineSeries(dataSeriesList[2], seriesColors[2], false, false);
                generationSeries.VerticalAxis = new LinearAxis()
                {
                    HorizontalLocation = AxisHorizontalLocation.Right,
                    Title   = "Generación en MWh / Etapa",
                    Minimum = 0
                };
                Series.Add(generationSeries);
            }
        }
Ejemplo n.º 3
0
        public override void Update(int scenario)
        {
            if (tipografico != 0)
            {
                Series.Clear();

                List <DataSeriesViewModel> dataSeriesList;
                try
                {
                    dataSeriesList = ResultsDataProvider.GetSINGenerationDataSeries(scenario, generationType);
                }
                catch
                {
                    throw;
                }

                Series.Add(ChartSeriesCreator.CreateAreaSeries(dataSeriesList[0], seriesColors[0], true));

                int position;
                for (position = 1; position < dataSeriesList.Count - 2; position++)
                {
                    Series.Add(ChartSeriesCreator.CreateAreaSeries(dataSeriesList[position], seriesColors[position], false));
                }

                Series.Add(ChartSeriesCreator.CreateLineSeries(dataSeriesList[position], seriesColors[position], false, false));
                position++;

                LineSeries marginalCostSeries = ChartSeriesCreator.CreateLineSeries(dataSeriesList[position], seriesColors[position], true, false);
                marginalCostSeries.VerticalAxis = new LinearAxis()
                {
                    HorizontalLocation = AxisHorizontalLocation.Right,
                    Title   = "$/MWh",
                    Minimum = 0
                };
                Series.Add(marginalCostSeries);
            }
        }
Ejemplo n.º 4
0
        public override void Update(int scenario)
        {
            if (tipografico != 0)
            {
                Series.Clear();

                List <DataSeriesViewModel> dataSeriesList;
                try
                {
                    dataSeriesList = ResultsDataProvider.GetSINReservoirsEvolutionDataSeries(scenario);
                }
                catch
                {
                    throw;
                }

                Series.Add(ChartSeriesCreator.CreateLineSeries(dataSeriesList[0], seriesColors[0], false, true));

                for (int position = 1; position < dataSeriesList.Count; position++)
                {
                    Series.Add(ChartSeriesCreator.CreateLineSeries(dataSeriesList[position], seriesColors[position], false, false));
                }
            }
        }