JMU
logoQuAQI.png
The AQIReport Class


Introduction

Purpose: A mutable encapsulation of an Air Quality Index report.

Details
Attributes:
This class must, at a minimum, contain the following private attributes:

    pollutant - A String containing the pollutant (e.g., "CO")
    aqi - An int containing the air quality index (e.g., 89)
    description - A String containing a description of the AQI (e.g., "Moderate")

It may contain other private attributes as well.

The Explicit Value Constructor:
This class must implement the following explicit value constructor:
    /**
     * Explicit Value Constructor
     *
     * @param pollutant     The pollutant (e.g., "CO")
     * @param aqi           The air quality index (e.g., 89)
     * @param description   The description of the air quality (e.g., "Moderate")
     */
    public AQIReport(String pollutant, int aqi, String description)
    {
    }
    
Accessors:
This class must implement the following accessors:
    public int getAQI()
    public String getDescription()
    public String getPollutant()
    
Mutators:
This class must implement the following mutators:
    public void setAQI(int aqi)
    public void setDescription(String description)
    public void setPollutant(String pollutant)
    

Copyright 2013