Class CarRentalLayer
The
CarRentalLayer capsules the access to all RentalCars.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: SOHCarModel.Rental
Assembly: SOHCarModel.dll
Syntax
public class CarRentalLayer : AbstractLayer, ICarRentalLayer, IModalLayer, ILayer, IModelObject
Properties
| Improve this Doc View SourceCarKeyAttributeName
The
CarRentalLayer capsules the access to all RentalCars.
Declaration
public string CarKeyAttributeName { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
CarValueToMatch
The
CarRentalLayer capsules the access to all RentalCars.
Declaration
public string CarValueToMatch { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
ModalChoice
The
CarRentalLayer capsules the access to all RentalCars.
Declaration
public ModalChoice ModalChoice { get; }
Property Value
| Type | Description |
|---|---|
| ModalChoice |
StreetLayer
Provides access to the ISpatialGraphEnvironment on which the Cars move.
Declaration
public ISpatialGraphLayer StreetLayer { get; set; }
Property Value
| Type | Description |
|---|---|
| ISpatialGraphLayer |
Methods
| Improve this Doc View SourceInitLayer(LayerInitData, RegisterAgent, UnregisterAgent)
The
CarRentalLayer capsules the access to all RentalCars.
Declaration
public override bool InitLayer(LayerInitData layerInitData, RegisterAgent registerAgentHandle = null, UnregisterAgent unregisterAgent = null)
Parameters
| Type | Name | Description |
|---|---|---|
| LayerInitData | layerInitData | |
| RegisterAgent | registerAgentHandle | |
| UnregisterAgent | unregisterAgent |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Overrides
| Improve this Doc View SourceInsert(RentalCar)
The
CarRentalLayer capsules the access to all RentalCars.
Declaration
public bool Insert(RentalCar car)
Parameters
| Type | Name | Description |
|---|---|---|
| RentalCar | car |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Nearest(Position)
The
CarRentalLayer capsules the access to all RentalCars.
Declaration
public RentalCar Nearest(Position position)
Parameters
| Type | Name | Description |
|---|---|---|
| Position | position |
Returns
| Type | Description |
|---|---|
| RentalCar |
Remove(RentalCar)
The
CarRentalLayer capsules the access to all RentalCars.
Declaration
public bool Remove(RentalCar car)
Parameters
| Type | Name | Description |
|---|---|---|
| RentalCar | car |
Returns
| Type | Description |
|---|---|
| System.Boolean |