City Based Parking and Routing System API Documentation

ILane Members

ILane overview

Public Instance Properties

Direction The direction in which vehicles can travel once the reach the end of the lane.
GetEndBlockOfLane Gets or sets the end of lane block number
GetFirstVehicle Gets the IVehicle object that is closest to the beginning of the lane.
GetFirstVehicleNode Gets the linked list node containing the first vehicle on the lane.
GetLastVehicle Gets the IVehicle object that is closest to the end of the lane.
GetLastVehicleNode Gets the linked list node containing the last vehicle on the lane.
GetStartBlockOfLane Gets or sets the start block number of the lane.
Length Gets or sets length of the lane in blocks.
Parent The parent IRoad parent of this lane.
VehicleList Gets the linked list object that contains all vehicles currently on this lane.
Vehicles The number of vehicles currently on the lane.

Public Instance Methods

AddVehicle Adds a vehicle to the collection of vehicles.
BackwardGapOverloaded. The gap between the specified position and the previous vehicle, or lane beginning.
EntryGap Gets the number of blocks free at the beginning of the lane.
ForwardGapOverloaded. The gap between the specified position and the next vehicle, or lane end.
GetVehicle Gets the vehicle that occupies the specified position.
GetVehicleBehindOf Gets the vehicle in behind of the specified position.
GetVehicleInFrontOf Gets the vehicle in front of the specified position.
GetVehicleNode Gets a linked list node containing the vehicle at the specified position.
InsertVehicle Inserts a vehicle at the specified position.
IsOccupied Determines if a specified collection of blocks is occupied.
IsValidLaneDirection Determines if the specified turn direction is valid for this lane.
LaneChanges Gives vehicles on this lane the chance to change lanes.
LeftLane The ILane directly to the right of the current.
MoveVehicles Moves the vehicles on the lane to their next position.
RemoveVehicle Removes a vehicle from the collection of vehicle for this lane.
RightLane The ILane directly to the right of the current.

See Also

ILane Interface | CBPRS.Infrastructure Namespace