Ejemplo n.º 1
0
 /// <summary>
 /// Populate Subscriber data
 /// </summary>
 /// <param name="dr">
 /// rowset for query
 /// </param>
 /// <param name="colnbr">
 /// dictionary mapping column labels to numbers
 /// </param>
 public TripsBySubscriberRow(TripsByWeekdayRow weekday, DataRow dr, Dictionary <string, int> colnbr)
 {
     Weekday    = weekday;
     Subscriber = new SubscriberDimension(dr, colnbr);
     Bikes      = new BikesMeasure(dr, colnbr);
     TripHours  = new TripsByHourList();
 }
Ejemplo n.º 2
0
 public TripsByWeekdayRow(TripsByDistDurCatRow distanceDurationCategory, DataRow dr, Dictionary <string, int> colnbr)
 {
     DistanceDurationCategory = distanceDurationCategory;
     WeekdayName    = new WeekdayNameDimension(dr, colnbr);
     Bikes          = new BikesMeasure(dr, colnbr);
     SubscriberList = new TripsBySubscriberList();
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Constructor for row
        /// </summary>
        /// <param name="dr">
        /// rowset for record
        /// </param>
        /// <param name="colnbr">
        /// dictionary mapping column names to numbers
        /// </param>
        public TripsByDistDurCatRow(DataRow dr, Dictionary <string, int> colnbr)
        {
            DistanceCategory = new DistanceCategoryDimension(dr, colnbr);
            DurationCategory = new DurationCategoryDimension(dr, colnbr);
            DistanceQtrMi    = new DistanceQtrMileDimension(dr, colnbr);
            Bikes            = new BikesMeasure(dr, colnbr);

            WeekdayList = new TripsByWeekdayList();
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Constructor for hour record
 /// </summary>
 /// <param name="dr">
 /// Dataset row
 /// </param>
 /// <param name="colnbr">
 /// Dictionary of column headings in dataset
 /// </param>
 /// <param name="subs">
 /// back reference to subscriber with this list
 /// </param>
 public TripsByHourRow(TripsBySubscriberRow subs, DataRow dr, Dictionary <string, int> colnbr)
 {
     Hour2OfDay = new Hour2OfDayDimension(dr, colnbr);
     Bikes      = new BikesMeasure(dr, colnbr);
     Subscriber = subs;
 }