City Based Parking and Routing System API Documentation

SectorStation Members

SectorStation overview

Public Static Fields

_Random Randomizer (Perhaps a Merssene twister would be better here).

Protected Static Fields

cDefPricePerHour Default price for a parking place ( not a garage these have their own tariff's )

Public Instance Constructors

SectorStation Constructor Default constructor.

Public Instance Properties

GetLampPostEnumerator Gets an enumerator over all lampposts in the collection of the station.
Id Gets the id of the sector station.
LampPosts Gets the number of lampposts in the collection of the current station.

Public Instance Methods

AddLampPost Adds a lamppost to the collection of lampposts operated by the current sector station.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
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.
GetLampPost Gets a lamppost by the specified id.
GetType (inherited from Object)Gets the Type of the current instance.
RemoveLampPost Removes a lamppost from the collection of lampposts.
ReserveParkingPlace Reserves a parking place.
Reset Resets the sector station.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Fields

_Id The pseudo-unique id of the sector station.
_Lampposts The list of lampposts managed by this sector station.
_PlacesFree The number of places free in the sector.
_PlacesOccupied The number of places occupied in the sector.
_PlacesReserved The places reserved in the sector.
_PricePerHour Price per hour of a parking place in the current sector.
Revenue The revenue in the current sector;

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

SectorStation Class | CBPRS.Parking Namespace