/**
 * Record that contains information about a UFO sighting
 *   @author Dave Reed
 *   @version 3/8/17
 */
public class UFOsighting {
    private String date;
    private String state;
    private String city;

    /**
     * Constructs a UFO sighting object.
     *   @param dateString the date of the sighting (e.g., "1997/10/17") 
     *   @param stateString the state where the sighting occurred (e.g., "NE")
     *   @param cityString the city where the sighting occurred (e.g., "Omaha")
     */
    public UFOsighting(String dateString, String stateString, String cityString) {
        this.date = dateString;
        this.state = stateString;
        this.city = cityString;
    }

    /**
     * Accessor for the sighting date.
     *   @return the date of the sighting
     */
    public String getDate() {
        return this.date;
    }

    /**
     * Accessor for the sighting state.
     *   @return the state where the sighting took place
     */
    public String getState() {
        return this.state;
    }
    
    /**
     * Accessor for the sighting city.
     *   @return the city where the sighting took place
     */
    public String getCity() {
        return this.city;
    }

    /**
     * Converts the sighting to a String.
     *   @return the string representation of the sighting (e.g., "1997/10/17 NE Omaha")
     */
    public String toString() {
        return this.date + " " + this.state + " " + this.city; 
    }
}
