|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectro.polak.multilevelcarpark.generic.ParkingRing
public class ParkingRing
Representation of parking ring
| Field Summary | |
|---|---|
ParkingPlace[] |
parkingPlaces
A vector of parking places |
| Constructor Summary | |
|---|---|
ParkingRing()
The default constructor |
|
ParkingRing(int capacity)
Creates parking ring of the given capacity |
|
| Method Summary | |
|---|---|
int |
getFreeParkingPlace()
Returns the index of the first found parking place |
void |
makeGate()
This makes the ring "having" the gate as the first place |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public ParkingPlace[] parkingPlaces
| Constructor Detail |
|---|
public ParkingRing(int capacity)
capacity - capacity of the parking ringpublic ParkingRing()
| Method Detail |
|---|
public int getFreeParkingPlace()
public void makeGate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||