Interface ICarRentalLayer
The
ICarRentalLayer
capsules the access to all
RentalCar
s.
Assembly: SOHCarModel.dll
Syntax
public interface ICarRentalLayer : IModalLayer, ILayer, IModelObject
Methods
|
Improve this Doc
View Source
Insert(RentalCar)
Inserts the given rentalCar at its current position.
Declaration
bool Insert(RentalCar rentalCar)
Parameters
Type |
Name |
Description |
RentalCar |
rentalCar |
That is to be inserted. |
Returns
Type |
Description |
System.Boolean |
True, if insertion was successful, false otherwise. |
|
Improve this Doc
View Source
Nearest(Position)
Tries to find the nearest
RentalCar
for given parameters.
Declaration
RentalCar Nearest(Position position)
Parameters
Type |
Name |
Description |
Position |
position |
Start point to search by range. |
Returns
Type |
Description |
RentalCar |
The corresponding RentalCar if one is found, null otherwise. |
|
Improve this Doc
View Source
Remove(RentalCar)
Removes the given rentalCar from the index.
Declaration
bool Remove(RentalCar rentalCar)
Parameters
Type |
Name |
Description |
RentalCar |
rentalCar |
That is to be removed. |
Returns
Type |
Description |
System.Boolean |
True, if remove was successful, false otherwise. |