package businessmodel.statistics;

import businessmodel.OrderManager;

public class StatisticsManager {

	private CarStatistics carStatistics;
	
	private OrderStatistics orderStatistics;
	
	public StatisticsManager(OrderManager ordermanager){
		this.carStatistics = new CarStatistics(ordermanager.getScheduler());
		this.orderStatistics = new OrderStatistics(ordermanager);
	}
	
	public CarStatistics getCarStatistics() {
		return carStatistics;
	}

	public OrderStatistics getOrderStatistics() {
		return orderStatistics;
	}

}

@@ -68,41 +68,219 @@
 r;%0A%0A
-public class StatisticsManager %7B%0A
+/**%0A * Class representing a statistics manager for the system, which holds the statistics objects.%0A * %0A * @author SWOP team 10 2013-2014%0A *%0A */%0Apublic class StatisticsManager %7B%0A%0A%09/**%0A%09 * The car statistics.%0A%09 */
 %0A%09pr
@@ -316,16 +316,52 @@
 tics;%0A%09%0A
+%09/**%0A%09 * The order statistics.%0A%09 */%0A
 %09private
@@ -401,267 +401,837 @@
 %0A%09%0A%09
-public StatisticsManager(OrderManager ordermanager)%7B%0A%09%09this.carStatistics = new CarStatistics(ordermanager.getScheduler());%0A%09%09this.orderStatistics = new OrderStatistics(ordermanager);%0A%09%7D%0A%09%0A%09public CarStatistics getCarStatistics() %7B%0A%09%09return carStatistics;%0A%09%7D%0A
+/**%0A%09 * Creates a new statistics manager with a given order manager.%0A%09 * %0A%09 * @param %09ordermanager%0A%09 * %09%09%09The order manager.%0A%09 * @throws%09IllegalArgumentException%0A%09 * %09%09%09%7C If the order manager is equal to 'null'%0A%09 * %09%09%09%7C ordermanager == null%0A%09 */%0A%09public StatisticsManager(OrderManager ordermanager) throws IllegalArgumentException %7B%0A%09%09if (ordermanager == null) throw new IllegalArgumentException(%22Bad order manager!%22);%0A%09%09this.carStatistics = new CarStatistics(ordermanager.getScheduler());%0A%09%09this.orderStatistics = new OrderStatistics(ordermanager);%0A%09%7D%0A%09%0A%09/**%0A%09 * Returns the car statistics of the order manager.%0A%09 * %0A%09 * @return%09The car statistics.%0A%09 */%0A%09public CarStatistics getCarStatistics() %7B%0A%09%09return carStatistics;%0A%09%7D%0A%0A%09/**%0A%09 * Returns the order statistics of the order manager.%0A%09 * %0A%09 * @return%09The order statistics.%0A%09 */
 %0A%09pu

update doc