public void enterParkedState(int parkingTime, int intendedDuration) throws VehicleException {

		
		
		if(vehicleState.contains("P") || vehicleState.get(vehicleState.size() - 1) == "Q")
			throw new VehicleException ("Vehicle is currently either already parked"
					+ " or in the queue to enter the CarPark.\n");
		else if (parkingTime < 0)
			throw new VehicleException ("Vehicle parking time cannot be less than 0\n");
		else if (intendedDuration < Constants.MINIMUM_STAY)
			throw new VehicleException ("Intended duration cannot be less than the" +
					" Minimum Duration\n");
		else {
			this.parkingTime = parkingTime;
			this.intendedDuration = intendedDuration;
			this.vehicleState.add("P");//change state of Vehicle to parked once checked
		}
	}