Class SkiResort

java.lang.Object
  extended bySkiResort

public class SkiResort
extends Object

This class models a CSE 142 ski resort.


Constructor Summary
SkiResort(String name, String tag, Trail tA, Trail tB, Trail tC)
          Create a new SkiResort object using the given name, tagline and trails.
 
Method Summary
 Trail getEasyTrail()
          Get easiest trail based on the difficulty level.
 Trail getHardTrail()
          Get hardest trail based on the difficulty level.
 String getName()
          Get the name of this resort.
 String getTagLine()
          Get the current tagline.
 void setTagLine(String tag)
          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.
 String toString()
          Return a String description of this ski resort.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SkiResort

public SkiResort(String name,
                 String tag,
                 Trail tA,
                 Trail tB,
                 Trail tC)
Create a new SkiResort object using the given name, tagline and trails. None of the parameters should be null, as this will lead to problems later. There is no particular order for the 3 Trail objects provided to this constructor. They are not sorted by name or difficulty level.

Parameters:
name - the name of this ski resort
tag - an inspiring String that describes today's opportunity
tA - one of the three Trails at this resort.
tB - one of the three Trails at this resort.
tC - one of the three Trails at this resort.
Method Detail

getEasyTrail

public Trail getEasyTrail()
Get easiest trail based on the difficulty level.

Returns:
the trail that has the lowest difficulty level.

getHardTrail

public Trail getHardTrail()
Get hardest trail based on the difficulty level.

Returns:
the trail that has the highest difficulty level.

getName

public String getName()
Get the name of this resort.

Returns:
the name of this resort.

setTagLine

public void setTagLine(String tag)
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.

Parameters:
tag - an inspiring String that describes today's opportunity

getTagLine

public String getTagLine()
Get the current tagline.

Returns:
the String that describes today's skiing opportunity

toString

public String toString()
Return a String description of this ski resort.

Returns:
a String description of this ski resort.