City Based Parking and Routing System API Documentation

Bus Members

Bus overview

Public Static Methods

Create The factory creation method.

Protected Static Fields

cBusLength The length of the bus in blocks
cBusMaxSpeed The maximum speed of the bus
cBusStopWaitingTime The default time a bus waits at a bus stop.

Public Instance Constructors

Bus Constructor Default constructor

Public Instance Properties

Behind (inherited from CBPRS.Infrastructure.Vehicle) 
BusRoute Gets or sets the Bus route for the bus to follow.
Color (inherited from CBPRS.Infrastructure.Vehicle) 
Id (inherited from CBPRS.Infrastructure.Vehicle) 
IsBraking (inherited from CBPRS.Infrastructure.Vehicle) 
Lane (inherited from CBPRS.Infrastructure.Vehicle) 
Length Gets the length of the current vehicle.
MaxSpeed Gets the maximum speed at which this vehicle can travel.
MustChangeLanes (inherited from CBPRS.Infrastructure.Vehicle) 
Position (inherited from CBPRS.Infrastructure.Vehicle) 
Route (inherited from CBPRS.Infrastructure.Vehicle) 
Speed (inherited from CBPRS.Infrastructure.Vehicle) 
TurnIndicator (inherited from CBPRS.Infrastructure.Vehicle) 

Public Instance Methods

BackwardGap (inherited from CBPRS.Infrastructure.Vehicle) 
ChangeLanes (inherited from CBPRS.Infrastructure.Vehicle) 
ChangeTo (inherited from CBPRS.Infrastructure.Vehicle) 
ChangeToLeft (inherited from CBPRS.Infrastructure.Vehicle) 
ChangeToRight (inherited from CBPRS.Infrastructure.Vehicle) 
CriticalZoneChange (inherited from CBPRS.Infrastructure.Vehicle) 
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
ForwardGap (inherited from CBPRS.Infrastructure.Vehicle) 
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.
GetType (inherited from Object)Gets the Type of the current instance.
IntializeRoute Initialize the route.
Move Moves the vehicle along the drive lanes.
PreCriticalZoneChange (inherited from CBPRS.Infrastructure.Vehicle) 
Reset (inherited from CBPRS.Infrastructure.Vehicle) 
ResolveLaneChangeDeadLock (inherited from CBPRS.Infrastructure.Vehicle) 
ToString (inherited from Object)Returns a String that represents the current Object.
UpdateRoute Updates the route of the vehicle by consulting the Dijkstra routing tables.

Protected Instance Fields

_Braking (inherited from CBPRS.Infrastructure.Vehicle) 
_BusRoute The bus route along which the bus travels.
_BusRouteId The Id number of the current BusRoute.
_BusStopStoppageTime The time the bus waits at each bus stop.
_Id (inherited from CBPRS.Infrastructure.Vehicle) 
_Lane (inherited from CBPRS.Infrastructure.Vehicle) 
_MustChange (inherited from CBPRS.Infrastructure.Vehicle) 
_Position (inherited from CBPRS.Infrastructure.Vehicle) 
_Previous The previous lane for ant algorithm delay updating.
_Route (inherited from CBPRS.Infrastructure.Vehicle) 
_Speed (inherited from CBPRS.Infrastructure.Vehicle) 
_TailLight (inherited from CBPRS.Infrastructure.Vehicle) 
_TimeToWait The time the bus is required to wait a the current position.

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.
MoveVehicle (inherited from CBPRS.Infrastructure.Vehicle) 
RouteToNextBusstop Finds the next bus stop on the route and updates the routing.
SetTailLight (inherited from CBPRS.Infrastructure.Vehicle) 
UpdateLinkDelay Updates the registered delay for the current link.

See Also

Bus Class | CBPRS.Parking Namespace