@@ -200,9 +200,9 @@ public Animal identifyAnimal(String idAnimal)
200200 /**
201201 * Identifies a species by its id.
202202 *
203- * @param idSpecies the id of The Species to identify
204- * @return The Species object with the given id
205- * @throws UnknownSpeciesIdException if The Species with the given id
203+ * @param idSpecies the id of the species to identify
204+ * @return the Species object with the given id
205+ * @throws UnknownSpeciesIdException if the species with the given id
206206 * is not found
207207 */
208208 public Species identifySpecies (String idSpecies )
@@ -232,7 +232,7 @@ public Employee identifyEmployee(String idEmployee)
232232 *
233233 * @param idVet the id of the veterinarian to identify
234234 * @return the veterinarian object with the given id
235- * @throws UnknownVeterinarianIdException
235+ * @throws UnknownEmployeeIdException
236236 * if the veterinarian with the given id is not found
237237 */
238238 public Veterinarian identifyVet (String idVet )
@@ -286,7 +286,7 @@ public Habitat registerHabitat(String id, String name, int area)
286286 * @throws UnknownHabitatIdException if the habitat with the given id
287287 * is not found
288288 * @throws DuplicateAnimalIdException if the id is already used
289- * @throws UnknownSpeciesIdException if The Species with the given id
289+ * @throws UnknownSpeciesIdException if the species with the given id
290290 * is not found
291291 */
292292 public void registerAnimal (String idAnimal , String name , String idSpecies ,
@@ -309,7 +309,7 @@ private boolean animalAlreadyExists(String idAnimal) {
309309 * Checks if a species already exists in the hotel.
310310 *
311311 * @param idSpecies the species' id to check
312- * @return true if The Species already exists, false otherwise
312+ * @return true if the species already exists, false otherwise
313313 */
314314 public boolean speciesAlreadyExists (String idSpecies ) {
315315 return _species .containsKey (idSpecies );
@@ -329,7 +329,7 @@ public void registerSpecies(String id, String name)
329329 throw new DuplicateSpeciesIdException (id );
330330 if (_speciesByName .containsKey (name ))
331331 throw new DuplicateSpeciesNameException (name );
332- // Only adds The Species if both the id and the name are unique
332+ // Only adds the species if both the id and the name are unique
333333 Species newSpecies = new Species (id , name );
334334 _species .put (id , newSpecies );
335335 _speciesByName .put (name , newSpecies );
@@ -372,7 +372,7 @@ public void registerEmployee(String id, String name, String type)
372372 * @param idVaccine the vaccine's unique identifier
373373 * @param name the vaccine's name
374374 * @param speciesIds the species' ids that the vaccine is suitable for
375- * @throws UnknownSpeciesIdException if The Species with the given id
375+ * @throws UnknownSpeciesIdException if the species with the given id
376376 * is not found
377377 * @throws DuplicateVaccineIdException if a vaccine with the same id
378378 * already exists
@@ -404,7 +404,7 @@ public boolean addVaccinationRecord(String idVaccine, String idVet,
404404 Animal animal = identifyAnimal (idAnimal );
405405 _vaccinationRecords .add (vet .vaccinate (identifyVaccine (idVaccine ), animal ));
406406 notifyHotelObservers ();
407- return vaccine .isSpeciesApropriated (animal .species ());
407+ return vaccine .isSpeciesAppropriate (animal .species ());
408408 }
409409
410410 /**
@@ -427,29 +427,31 @@ public String idSpeciesAnimal(String idAnimal) {
427427 * Adds a responsibility to an employee.
428428 *
429429 * @param idEmployee the employee's unique identifier
430- * @param idReponsibility the responsibility's unique identifier
431- * @throws UnknownIdException if the employee with the given id is not found
430+ * @param idResponsibility the responsibility's unique identifier
431+ * @throws UnknownEmployeeIdException if the employee with the given id is
432+ * not found
432433 * @throws UnknownResponsibilityException if responsibility with the given id
433434 * is not found
434435 */
435- public void addResponsibility (String idEmployee , String idReponsibility )
436+ public void addResponsibility (String idEmployee , String idResponsibility )
436437 throws UnknownEmployeeIdException , UnknownResponsibilityIdException {
437- identifyEmployee (idEmployee ).addResponsibility (idReponsibility );
438+ identifyEmployee (idEmployee ).addResponsibility (idResponsibility );
438439 notifyHotelObservers ();
439440 }
440441
441442 /**
442443 * Removes a responsibility of an employee.
443444 *
444445 * @param idEmployee the employee's unique identifier
445- * @param idReponsibility the responsibility's unique identifier
446+ * @param idResponsibility the responsibility's unique identifier
446447 * @throws UnknownIdException if the employee with the given id is not found
447448 * @throws UnknownResponsibilityException if responsibility with the given id
448449 * is not found
449450 */
450- public void removeResponsibility (String idEmployee , String idReponsibility )
451- throws EmployeeNotResponsibleException , UnknownEmployeeIdException , UnknownResponsibilityIdException {
452- identifyEmployee (idEmployee ).removeResponsibility (idReponsibility );
451+ public void removeResponsibility (String idEmployee , String idResponsibility )
452+ throws EmployeeNotResponsibleException , UnknownEmployeeIdException ,
453+ UnknownResponsibilityIdException {
454+ identifyEmployee (idEmployee ).removeResponsibility (idResponsibility );
453455 notifyHotelObservers ();
454456 }
455457
@@ -494,11 +496,11 @@ public void changeHabitatArea(String id, int area)
494496 * Change the influence that a habitat has over a species
495497 *
496498 * @param idHabitat the habitat to add the influence
497- * @param idSpecies The Species it will affected
499+ * @param idSpecies the species it will affected
498500 * @param influence the new influence the habitat will have over the
499501 * species in question
500- * @throws UnknownHabitatIdException if the habitat doesnt exist in the hotel
501- * @throws UnknownSpeciesIdException if The Species doesnt exist
502+ * @throws UnknownHabitatIdException if the habitat doesn't exist in the hotel
503+ * @throws UnknownSpeciesIdException if the species doesn't exist
502504 */
503505 public void changeHabitatInfluence (String idHabitat , String idSpecies ,
504506 String influence ) throws UnknownHabitatIdException ,
@@ -513,7 +515,7 @@ public void changeHabitatInfluence(String idHabitat, String idSpecies,
513515 *
514516 * @param idAnimal the animal to transfer to another habitat
515517 * @param idHabitat the destination habitat
516- * @throws UnknownAnimalIdException if the animal doesnt exist in any of
518+ * @throws UnknownAnimalIdException if the animal doesn't exist in any of
517519 * the habitats in the hotel
518520 * @throws UnknownHabitatIdException if the destination habitat doesnt exist
519521 * in the hotel
@@ -577,7 +579,7 @@ public Collection<Tree> listAllTreesHabitat(String idHabitat)
577579 *
578580 * @param idHabitat the habitat to list all animals from
579581 * @return an unmodifiableCollection of all animals from the habitat
580- * @throws UnknownHabitatIdException if the habitat doesnt exist in this
582+ * @throws UnknownHabitatIdException if the habitat doesn't exist in this
581583 * hotel
582584 */
583585 public Collection <Animal > listAnimalsInHabitat (String idHabitat )
@@ -610,8 +612,8 @@ public Collection<VaccinationRecord> listVaccinationRecords() {
610612 * Lists all vaccination records of vaccines given to a given
611613 * animal in a string containing information about each record.
612614 *
613- * @param animal the animal to list the vaccination records of
614- * @return an unmodifiable List containing the VaccinationRecord objects
615+ * @param id the id of the animal to list the vaccination records of
616+ * @return an unmodifiable List containing the VaccinationRecord objects
615617 * of a specific animal
616618 */
617619 public Collection <VaccinationRecord > listAnimalVaccinationHistory (String id )
@@ -626,7 +628,7 @@ public Collection<VaccinationRecord> listAnimalVaccinationHistory(String id)
626628 * Lists all vaccination records of vaccines administered by a given vet
627629 * in a string containing information about each record.
628630 *
629- * @param vet the veterinarian to list the vaccination records of
631+ * @param id the id of the veterinarian to list the vaccination records of
630632 * @return an unmodifiable List containing the VaccinationRecord object
631633 * of all vaccination records of vaccines administered by the given vet
632634 */
0 commit comments