City Based Parking and Routing System API Documentation

Lane Members

Lane overview

Public Static Methods

Create Creates a new instance of a Lane object

Public Instance Constructors

Lane Overloaded. Initializes a new instance of the Lane class.

Public Instance Properties

Direction Returns the direction in which this allows vehicles to cross the intersection.
GetEndBlockOfLane Gets the end block of the current lane.
GetFirstVehicle Gets the first vehicle on the lane.
GetFirstVehicleNode Gets the linked list node containing the first vehicle on the lane.
GetLastVehicle Gets the last vehicle on the lane.
GetLastVehicleNode Gets the linked list node containing the last vehicle on the lane.
GetStartBlockOfLane Gets the start block of the current lane.
Id The psuedo unique id of the lane.
Length Gets the length of the lane in blocks.
Parent Gets or sets the parent road of this lane.
VehicleList Gets the linked list object that contains all vehicles currently on this lane.
Vehicles Returns the number of vehicles currently on the lane.

Public Instance Methods

AddVehicle Adds a vehicle to the beginning of the lane.
BackwardGapOverloaded. Calculates the gap behind the vehicle at the specified position.
EntryGap Calculates the gap at the beginning of the lane.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
ForwardGapOverloaded. Calculates the gap that is in front of the specified position.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetObjectData Populates the provided SerializationInfo with the data needed to serialize the object.
GetType (inherited from Object)Gets the Type of the current instance.
GetVehicle Gets a vehicle at the specified position.
GetVehicleBehindOf Retrieves the first vehicle at or behind of the specified position.
GetVehicleInFrontOf Retrieves the first vehicle at or in front of the specified position.
GetVehicleNode Gets a vehicle at the specified position.
InsertVehicle Inserts a vehicle in the lane at the specified position.
IsOccupied Determine if an specified area is occupied by a vehicle.
IsValidLaneDirection Determines if the specified direction is a valid on for the current lane.
LaneChanges Gives vehicles on this lane the chance to change lanes.
LeftLane Gets the lane directly to the left of the current lane.
MoveVehicles Moves the vehicles on the lane to their next position.
RemoveVehicle Removes a vehicle from the collection of vehicles.
Reset Resets the lanes.
RightLane Gets the lane directly to the right of the current lane.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Fields

_Direction The direction in which this lane allows the road user to travel on the next intersection.
_Id The Id number of the lane in the simulation.
_Road The parent Road of this Lane.
_Vehicles A linked list of vehicles currently driving on this lane.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

Lane Class | CBPRS.Infrastructure Namespace