// TODO: Fix spelling of Madison
/**
 * A TripRecord is an encapsulation of information about an
 * automobile trip.
 *
 * @author Prof. David Bernstein, James Madisn University
 * @version 1.0
 */
public class TripRecord {

    private int passengers;
    private double duration, length;

    /**
     * Explicit Value Constructor.
     *
     * @param passengers The number of passengers
     * @param duration   The duration of the trip (in minutes)
     * @param length     The length of the trip (in miles)
     */
    public TripRecord(int passengers, double duration, double length) {
        this.passengers = passengers;
        this.duration = duration;
        this.length = length;
    }

    /**
     * Get the duration.
     *
     * @return  The duration.
     */
    public double getDuration() {
        return duration;
    }

    /**
     * Get the length.
     *
     * @return  The length.
     */
    public double getLength() {
        return length;
    }

    /**
     * Get the number of passengers.
     *
     * @return  The number of passengers.
     */
    public int getPassengers() {
        return passengers;
    }
}
