public void enterParkedState(int parkingTime, int intendedDuration)
			throws VehicleException {
		exitTime = parkingTime + intendedDuration;

		this.parkingTime = parkingTime;
		// this.intendedDuration = intendedDuration;

		if (isParked() == true) {
			throw new VehicleException("Vehicle is already parked.");
		}
		if (isQueued() == true) {
			throw new VehicleException("Vehicle is queueing");
		}
		if (parkingTime <= 0) {
			throw new VehicleException("Parking time must be positive.");
		}
		if (intendedDuration < Constants.MINIMUM_STAY) {
			throw new VehicleException(
					"Vehicle must park longer than minimum time limit.");
		}

		// Used for the isParked() method.
		parked = true;

		// Defines the vehicles state as parked.
		vehicleState = "parked";
	}