private int getTripID()
        {
            switch (SelectedComboBoxIndex)
            {
            case 0:
                return(SemanticHistogramDatum.GetEnergyMinTripID(this.SemanticLink, this.TripDirection));

            case 1:
                return(SemanticHistogramDatum.GetEnergyMedianTripID(this.SemanticLink, this.TripDirection));

            case 2:
                return(SemanticHistogramDatum.GetEnergyMaxTripID(this.SemanticLink, this.TripDirection));

            case 3:
                return(SemanticHistogramDatum.GetTimeMinTripID(this.SemanticLink, this.TripDirection));

            case 4:
                return(SemanticHistogramDatum.GetTimeMedianTripID(this.SemanticLink, this.TripDirection));

            case 5:
                return(SemanticHistogramDatum.GetTimeMaxTripID(this.SemanticLink, this.TripDirection));

            default:
                return(-1);
            }
        }
コード例 #2
0
        public async void DisplayGraph()
        {
            #region 代表トリップ検索
            TripIDs = new List <int>();
            await Task.Run(() =>
            {
                int tripID;
                switch (this.CurrentTripCategory)
                {
                case DetailCompareGraphType.TripCategory.EnergyRepresentativeTrips:

                    tripID = SemanticHistogramDatum.GetEnergyMinTripID(SelectedSemanticLink, TripDirection);
                    TripIDs.Add(tripID);

                    tripID = SemanticHistogramDatum.GetEnergyMedianTripID(SelectedSemanticLink, TripDirection);
                    TripIDs.Add(tripID);

                    tripID = SemanticHistogramDatum.GetEnergyMaxTripID(SelectedSemanticLink, TripDirection);
                    TripIDs.Add(tripID);

                    break;

                case DetailCompareGraphType.TripCategory.TimeRepresentativeTrips:

                    tripID = SemanticHistogramDatum.GetTimeMinTripID(SelectedSemanticLink, TripDirection);
                    TripIDs.Add(tripID);

                    tripID = SemanticHistogramDatum.GetTimeMedianTripID(SelectedSemanticLink, TripDirection);
                    TripIDs.Add(tripID);

                    tripID = SemanticHistogramDatum.GetTimeMaxTripID(SelectedSemanticLink, TripDirection);
                    TripIDs.Add(tripID);

                    break;
                }
            });

            #endregion

            switch (CurrentGraphType)
            {
            case DetailCompareGraphType.GraphTypes.SpeedTransitionGraph:

                createSpeedGraphModels();

                break;

            case DetailCompareGraphType.GraphTypes.AccTransitionGraph:

                createAccGraphModels();

                break;

            case DetailCompareGraphType.GraphTypes.EnergyStackGraph:

                createStackedEnergyGraphModels();

                break;
            }
        }