コード例 #1
0
ファイル: TestData.cs プロジェクト: kjohann/MasterThesis
        public Chart AverageLatencyPrSecond(int spacing, List<TestDataEntity> entities, int[] clientData)
        {
            var chart = new Chart
            {
                Title = Titles.AverageLatency,
                XAxis = BuildXAxis(spacing, clientData.Length),
                YAxisTitle = "Average milliseconds"
            };

            var averages = GetAverageLatencyData(entities, clientData);

            var series = new List<ISeries>
            {
                new Series<double>
                {
                    Name = Titles.AverageLatencySeries,
                    Data = averages
                }
            };

            chart.Series = series;

            return chart;
        }
コード例 #2
0
ファイル: TestData.cs プロジェクト: kjohann/MasterThesis
        public Chart MessagesSentByServerPrSecond(int spacing, int[] dataSet)
        {
            var xAxis = BuildXAxis(spacing, dataSet.Length);
            var chart = new Chart
            {
                Title = Titles.MessagesSentFromServerPrSecond,
                XAxis = xAxis,
                YAxisTitle = "Messages"
            };

            var series = new List<ISeries>
            {
                new Series<int>
                {
                    Name = Titles.GeneralMessagesSeries,
                    Data = dataSet
                }
            };

            chart.Series = series;

            return chart;
        }
コード例 #3
0
ファイル: TestData.cs プロジェクト: kjohann/MasterThesis
        public Chart MessagesReceivedAtServerAndSentFromClientsPrSecond(int spacing, int[] serverSet, int[] clientSet)
        {
            var xAxis = BuildXAxis(spacing, serverSet.Length);
            var chart = new Chart
            {
                Title = Titles.MessagesSentFromClientsAndReceivedByServerPrSecond,
                XAxis = xAxis,
                YAxisTitle = "Messages"
            };
            var series = new List<ISeries>
            {
                new Series<int>
                {
                    Name = Titles.MessagesReceivedByServerPrSecondSeries,
                    Data = serverSet
                },
                new Series<int>
                {
                    Name = Titles.MessagesSentFromClientsPrSecondSeries,
                    Data = clientSet
                }
            };

            chart.Series = series;
            return chart;
        }