|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectro.polak.multilevelcarpark.generic.ParkingPlace
public class ParkingPlace
Representation of parking place. Each parking ring consists of a certain number of parking places
| Constructor Summary | |
|---|---|
ParkingPlace()
|
|
| Method Summary | |
|---|---|
void |
free()
Frees the resources |
Car |
getCar()
Returns the current car |
boolean |
insertCar(Car car)
Places the car. |
boolean |
isFree()
Tells thenever the place is free |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParkingPlace()
| Method Detail |
|---|
public boolean insertCar(Car car)
throws IllegalOperationException
car - a car to be placed
IllegalOperationExceptionpublic Car getCar()
public void free()
public boolean isFree()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||