//return An ActivitySummary object with random values
        private ActivitySummary GetActivitySummary()
        {
            ActivitySummary activitySummary = new ActivitySummary();
            PaceSummary     paceSummary     = new PaceSummary();

            paceSummary.AvgPace  = (Java.Lang.Double) 247.27626;
            paceSummary.BestPace = (Java.Lang.Double) 212.0;
            IDictionary <string, Java.Lang.Double> britishPaceMap = new Dictionary <string, Java.Lang.Double>();

            britishPaceMap.Add("50001893", (Java.Lang.Double) 365.0);
            paceSummary.BritishPaceMap = britishPaceMap;
            IDictionary <string, Java.Lang.Double> partTimeMap = new Dictionary <string, Java.Lang.Double>();

            partTimeMap.Add("1.0", (Java.Lang.Double) 456.0);
            paceSummary.PartTimeMap = partTimeMap;
            IDictionary <string, Java.Lang.Double> paceMap = new Dictionary <string, Java.Lang.Double>();

            paceMap.Add("1.0", (Java.Lang.Double) 263.0);
            paceSummary.PaceMap = paceMap;
            IDictionary <string, Java.Lang.Double> britishPartTimeMap = new Dictionary <string, Java.Lang.Double>();

            britishPartTimeMap.Add("1.0", (Java.Lang.Double) 263.0);
            paceSummary.BritishPartTimeMap = britishPartTimeMap;
            IDictionary <string, Java.Lang.Double> sportHealthPaceMap = new Dictionary <string, Java.Lang.Double>();

            sportHealthPaceMap.Add("102802480", (Java.Lang.Double) 535.0);
            paceSummary.SportHealthPaceMap = sportHealthPaceMap;
            activitySummary.PaceSummary    = paceSummary;
            return(activitySummary);
        }
        // Print the ActivitySummary object as an output.
        public void PrintActivitySummary(ActivitySummary activitySummary)
        {
            DateFormat          timeFormat  = DateFormat.TimeInstance;
            IList <SamplePoint> dataSummary = activitySummary.DataSummary;

            Logger("\nActivitySummary\n\t DataSummary: ");
            foreach (SamplePoint samplePoint in dataSummary)
            {
                Logger("\n\t samplePoint: \n\t DataCollector " + samplePoint.DataCollector.DataCollectorName + "\n\t DataType "
                       + samplePoint.DataType.Name + "\n\t StartTime " + timeFormat.Format(samplePoint.GetStartTime(TimeUnit.Milliseconds))
                       + "\n\t EndTime " + timeFormat.Format(samplePoint.GetEndTime(TimeUnit.Milliseconds)) + "\n\t SamplingTime "
                       + timeFormat.Format(samplePoint.GetSamplingTime(TimeUnit.Milliseconds)) + "\n\t FieldValues"
                       + ShowDictionaryValues(samplePoint.FieldValues));
            }
            // Printing PaceSummary
            PaceSummary paceSummary = activitySummary.PaceSummary;

            Logger("\n\t PaceSummary: \n\t AvgPace" + paceSummary.AvgPace + "\n\t BestPace" + paceSummary.BestPace
                   + "\n\t PaceMap" + ShowDictionaryValues(paceSummary.PaceMap) + "\n\t PartTimeMap" + ShowDictionaryValues(paceSummary.PartTimeMap) + "\n\t BritishPaceMap" + ShowDictionaryValues(paceSummary.BritishPaceMap) + "\n\t BritishPartTimeMap"
                   + ShowDictionaryValues(paceSummary.BritishPartTimeMap) + "\n\t SportHealthPaceMap" + ShowDictionaryValues(paceSummary.SportHealthPaceMap));
        }