City Based Parking and Routing System API Documentation

Obstacle Members

Obstacle overview

Public Instance Constructors

Obstacle Constructor Default constructor

Public Instance Properties

Behind (inherited from Vehicle) Gets the position directly behind the vehicle.
Color Transparent
Id (inherited from Vehicle) Gets the id of the vehicle.
IsBraking (inherited from Vehicle) Gets a boolean indicating if the car is braking.
Lane (inherited from Vehicle) The Lane the vehicle is currently driving on.
Length Gets the length of the obstacle in blocks.
MaxSpeed Gets the maximum the obstacle can travel at.
MustChangeLanes (inherited from Vehicle) Gets or sets a boolean that indicates that the vehicle must change lanes to reach its destination.
Position (inherited from Vehicle) The cell the vehicle is currently occupying on the Lane.
Route (inherited from Vehicle) Gets or sets the route the vehicle is currently following.
Speed (inherited from Vehicle) The speed at which the vehicle is currently traveling.
TimeToLive Gets or sets the time to live field
TurnIndicator (inherited from Vehicle) Gets the current status of the turn signal of the vehicle

Public Instance Methods

BackwardGap (inherited from Vehicle) Calculates the backward gap between the current and the specified vehicle.
ChangeLanes An obstacle does not change lanes.
ChangeTo (inherited from Vehicle) Executes the actual lane changing procedure. lane change.
ChangeToLeft (inherited from Vehicle) Attempts a lane change from current lane to the lane on the left.
ChangeToRight (inherited from Vehicle) Attempts a lane change from current lane to the lane on the right.
CriticalZoneChange (inherited from Vehicle) Allows vehicles to change lanes that have entered the critical zone.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
ForwardGap (inherited from Vehicle) Calculates the forward gap between the current and specified 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 No route required.
Move An obstacle does not move.
PreCriticalZoneChange (inherited from Vehicle) Allows the vehicle to change lanes before entering the critical zone.
Reset (inherited from Vehicle) Resets the vehicle to is post constructor state.
ResolveLaneChangeDeadLock (inherited from Vehicle) Resolves a deadlock situation where two vehicles want to change to each others lane and are stopped in the critical zone.
ToString (inherited from Object)Returns a String that represents the current Object.
UpdateRoute No updates to route.

Protected Instance Fields

_Braking (inherited from Vehicle) Indicates if the vehicle is braking.
_Id (inherited from Vehicle) The Id number of the vehicle
_Lane (inherited from Vehicle) The Lane on which the vechicle is currently driving.
_MustChange (inherited from Vehicle) Boolean indicating that the vehicle must change lanes before proceeding (Deadlock) detection.
_Position (inherited from Vehicle) The position the vehicle is currently at.
_Route (inherited from Vehicle) The Route the vehicle is currently following.
_Speed (inherited from Vehicle) The speed (in cells) at which the vehicle is currently moving.
_TailLight (inherited from Vehicle) The taillight status of the vehicle.

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 Vehicle) Moves The vehicle towards forward on the current lane.
SetTailLight (inherited from Vehicle) Sets the taillight of the vehicle based on the route.

See Also

Obstacle Class | CBPRS.Infrastructure Namespace