-
Notifications
You must be signed in to change notification settings - Fork 1
/
Alley.java
46 lines (38 loc) · 825 Bytes
/
Alley.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
* Alley.java
*
* Version:
* $Id$
*
* Revisions:
* $Log: Alley.java,v $
* Revision 1.4 2003/02/02 20:28:58 ???
* fixed sleep thread bug in lane
*
* Revision 1.3 2003/01/12 22:23:32 ???
* *** empty log message ***
*
* Revision 1.2 2003/01/12 20:44:30 ???
* *** empty log message ***
*
* Revision 1.1 2003/01/12 19:09:12 ???
* Adding Party, Lane, Bowler, and Alley.
*
*/
/**
* Class that is the outer container for the bowling sim
*
*/
public class Alley {
private ControlDesk controldesk;
public Alley( int numLanes ) {
if(numLanes> 0){
controldesk = new ControlDesk( numLanes );
} else {
throw new IllegalArgumentException("Number of lanes must be positive!");
}
}
public ControlDesk getControlDesk() {
return controldesk;
}
}