public void triggerController() {

		String query = view.getQuery().toLowerCase();

		switch (query) {

		case "temperature":

			view.showDate(WeatherCalculator.getDates().get(0));
			view.showTemperature(WeatherCalculator.getTime(),
					WeatherCalculator.getTemperature());
			break;
		case "pressure":

			view.showDate(WeatherCalculator.getDates().get(0));
			view.showPressure(WeatherCalculator.getTime(),
					WeatherCalculator.getPressure());
			break;
		case "weather":

			view.showDate(WeatherCalculator.getDates().get(0));
			view.showWeather(WeatherCalculator.getTime(),
					WeatherCalculator.getConditions());
			break;
		case "wind":

			view.showDate(WeatherCalculator.getDates().get(0));
			view.showWind(WeatherCalculator.getTime(),
					WeatherCalculator.getWind());
			break;
		case "total precipitation":

			view.showDate(WeatherCalculator.getDates().get(0));
			view.showTotalPrecipitaion(WeatherCalculator
					.getTotalPrecipitation());
			break;
		case "average temperature":

			view.showDate(WeatherCalculator.getDates().get(0));
			view.showAverageTemperature(WeatherCalculator
					.getAverageTemperature());
			break;
		case "pressure trend":

			view.showDate(WeatherCalculator.getDates().get(0));
			view.showPressureTrend(WeatherCalculator.getPressure(),
					WeatherCalculator.getPressureTrend());
			break;
		case "quit":

			view.showQuitMessage();
			return;
		case "graphs":

			view.showGraph(WeatherCalculator.getTemperature(),
					WeatherCalculator.getAverageTemperature(),
					WeatherCalculator.getPressure(),
					WeatherCalculator.getPressureTrend(),
					WeatherCalculator.getWindSpeed(),
					WeatherCalculator.getAverageWindSpeed(),
					WeatherCalculator.getGustSpeed(),
					WeatherCalculator.getAverageGustSpeed(),
					WeatherCalculator.getTotalPrecipitation());
			break;
		}
	}