/** * This class models a ski resort. */ public class SkiResort { /** name of this ski resort */ private String resortName; /** inspiring tagline */ private String tagLine; /** temperature in degrees F */ private double degF; /** depth in inches */ private double depth; //-------------------------------------------------------------------- /** * Create a new SkiResort object using the given name. * Set the tagline to default adspeak. * Set the temperature and snow depth to 0. */ public SkiResort(String name) { resortName = name; tagLine = "Heavy powder, break out the fat skis or snowboard."; degF = 0; depth = 0; } /** * Get the name of this resort. * @return the name of this resort. */ public String getName() { return resortName; } /** * Set the tag line that is intended to get people to get off the couch * and drive out in the freezing cold to slide down a slippery slope. * @param tag an inspiring String that describes today's opportunity */ public void setTagLine(String tag) { tagLine = tag; } /** * Get the current tagline. * @return the String that describes today's skiing opportunity */ public String getTagLine() { return tagLine; } /** * Set the temperature in degrees F. * @param t the new temperature value in degrees F */ public void setTempF(double t) { degF = t; } /** * Set the snow depth in inches. * @param d the new snow depth in inches */ public void setDepthInches(double d) { depth = d; } /** * Get the temperature in degrees F. * @return the current temperature value in degrees F */ public double getTempF() { return degF; } /** * Get the snow depth in inches. * @return the current snow depth in inches */ public double getDepthInches() { return depth; } }