Package org.worldbank.transport.tamt.shared

Examples of org.worldbank.transport.tamt.shared.TrafficCountReport


    String tagName = tagDetails.getName();
   
    // get the name of the region
    String regionId = tagDetails.getRegion().getId();
   
    TrafficCountReport trafficCountReport = new TrafficCountReport();
   
    /* The LONG version (ie, broken out by vehicle type
    ArrayList<TrafficCountRecord> weekdayCounts = getTrafficCountReportLong(tagName, regionName, TrafficCountRecord.DAYTYPE_WEEKDAY);
    trafficCountReport.setWeekdayCounts(weekdayCounts);
   
    ArrayList<TrafficCountRecord> saturdayCounts = getTrafficCountReportLong(tagName, regionName, TrafficCountRecord.DAYTYPE_SATURDAY);
    trafficCountReport.setSaturdayCounts(saturdayCounts);
   
    ArrayList<TrafficCountRecord> sundayHolidayCounts = getTrafficCountReportLong(tagName, regionName, TrafficCountRecord.DAYTYPE_SUNDAY_HOLIDAY);
    trafficCountReport.setSundayHolidayCounts(sundayHolidayCounts);
    */
   
    // The short version, where we have totals just by tag/hour of day
    ArrayList<Integer> weekdayTotals = getTrafficCountReportShort(tagName, regionId, TrafficCountRecord.DAYTYPE_WEEKDAY);
    trafficCountReport.setWeekdayTotals(weekdayTotals);
   
    ArrayList<Integer> saturdayTotals = getTrafficCountReportShort(tagName, regionId, TrafficCountRecord.DAYTYPE_SATURDAY);
    trafficCountReport.setSaturdayTotals(saturdayTotals);
   
    ArrayList<Integer> sundayHolidayTotals = getTrafficCountReportShort(tagName, regionId, TrafficCountRecord.DAYTYPE_SUNDAY_HOLIDAY);
    trafficCountReport.setSundayHolidayTotals(sundayHolidayTotals);
   
    return trafficCountReport;
  }
View Full Code Here

TOP

Related Classes of org.worldbank.transport.tamt.shared.TrafficCountReport

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.