|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectSkiResort
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 |
public SkiResort(String name,
String tag,
Trail tA,
Trail tB,
Trail tC)
name - the name of this ski resorttag - an inspiring String that describes today's opportunitytA - 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 |
public Trail getEasyTrail()
public Trail getHardTrail()
public String getName()
public void setTagLine(String tag)
tag - an inspiring String that describes today's opportunitypublic String getTagLine()
public String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||