public static void main(String[] args) throws VehicleException, SimulationException {
		CarPark cp = new CarPark();
		Simulator s = null;
		Log l = null; 
		try {
			s = new Simulator();
			l = new Log();
		} catch (IOException | SimulationException e1) {
			e1.printStackTrace();
			System.exit(-1);
		}
		
		if(args.length != 0){
			if(args.length == 10){
				cp = new CarPark(Integer.parseInt(args[0]), Integer.parseInt(args[1]), Integer.parseInt(args[2]), Integer.parseInt(args[3]));
				s = new Simulator(Integer.parseInt(args[4]), Double.parseDouble(args[8]), Double.parseDouble(args[9]), 
						Double.parseDouble(args[5]), Double.parseDouble(args[6]), Double.parseDouble(args[7]));
			}else if(args.length < 10){
				System.err.println("Not enough arguments");
			}
		}

		SimulationRunner sr = new SimulationRunner(cp,s,l);
		try {
			sr.runSimulation();
		} catch (Exception e) {
			e.printStackTrace();
			System.exit(-1);
		} 
	}