Class SkiWeekend

java.lang.Object
  extended bySkiWeekend

public class SkiWeekend
extends Object

This class models a skiing weekend at a CSE 142 ski resort.


Constructor Summary
SkiWeekend()
          Establish the details about the resort for this weekend event.
 
Method Summary
 void saturday()
          This method controls the events that take place at the SkiResort on the first day of a SkiWeekend.
 void sunday()
          This method controls the events that take place at the SkiResort on the second day of a SkiWeekend.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SkiWeekend

public SkiWeekend()
Establish the details about the resort for this weekend event.

In order to create a new SkiResort object, you need to define all the parameters for the SkiResort constructor. This includes three Trail objects. The Trails each require a Lift. So this constructor builds several Lifts (of different types), then uses those to build Trails (with varying difficulty levels), then uses the new Trails to build a SkiResort.

Keep a reference to the new SkiResort object in an instance variable so that you can use it later in the saturday() and sunday() methods.

Method Detail

saturday

public void saturday()
This method controls the events that take place at the SkiResort on the first day of a SkiWeekend. The project description asks that you use this saturday() method to do the basic testing of your classes to make sure that everything works correctly. Use the sunday() method to have a holiday with Skiers going up and down the slopes.


sunday

public void sunday()
This method controls the events that take place at the SkiResort on the second day of a SkiWeekend. In our model of a SkiResort, we can do several things.