|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectStore
public class Store
The Store class models the checkout section of a grocery store; specifically, it does so by modeling an array of Lane objects. Your simulation will create a Store class and interact with it when determining which Lane to place newly-arriving Customers in.
| Constructor Summary | |
|---|---|
Store(int lanes)
Creates a Store object with the specified number of lanes; initializes each CheckoutLane to a newly-constructed CheckoutLane |
|
| Method Summary | |
|---|---|
CheckoutLane |
getLane(int laneNum)
Returns the CheckoutLane object with the given lane number. |
int |
getNumLanes()
Returns the number of checkout lanes in this Store. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Store(int lanes)
lanes - the number of lanes in this store.| Method Detail |
|---|
public int getNumLanes()
public CheckoutLane getLane(int laneNum)
laneNum - the lane number
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||