public void tryProcessNewVehicles(int time,Simulator sim) throws VehicleException, SimulationException {
		if(time > Constants.CLOSING_TIME || time < 0)
			throw new VehicleException("Time violate constraints");
		// try create new vehicle
		if(sim.newCarTrial()){
			if(sim.smallCarTrial()){
				count++;
				Car sc = new Car("C"+ count, time, true);
				processVehicle(time, sim, sc);
			}else{
				count++;
				Car car = new Car("C" + count, time, false);
				processVehicle(time, sim, car);
			}
		}

		if(sim.motorCycleTrial()){
			count++;
			MotorCycle mc = new MotorCycle("MC" + count, time);
			processVehicle(time, sim, mc);
		}
	}