City Based Parking and Routing System API Documentation

RoadSystem Members

RoadSystem overview

Public Static Methods

GetInstance Returns the single instance of the road system.

Public Instance Properties

GeneratorCount The number of generators in the infrastructure.
GetGeneratorEnum Gets an enumerator for the generator list.
GetIntersectionCount The number of intersections in the infrastructure.
GetIntersectionEnum Gets an enumerator for the intersection list.
GetIntersectionList Gets the intersection list.
GetLayer Gets the layer on which subsystem objects are supposed to draw on.
GetVehicleTypeStatEnum Gets an iterator over all the types of vehicles stored.
IntersectionFactory Gets or sets the factory used for the creation of Intersection objects.
IntersectionIdFactory Gets or sets the IIdFactory for Intersection objects.
LaneFactory Gets or sets the factory used for the creation of Lane objects.
RoadFactory Gets or sets the factory used for the creation of Road objects.
RoadIdFactory Gets or sets the IIdFactory for Road objects.
VehichleFactory Gets or sets the factory used for the creation of IVehicle objects.
VehicleIdFactory Gets or sets the IIdFactory for IVehicle objects.

Public Instance Methods

AddGenerator Adds an generator to the collection of intersections.
AddIntersection Adds an intersection to the collection of intersections.
AddVehicleTypeStatistics Adds vehicle type stats.
CreateConsecutiveIds Resets the id of the intersection so that they create a consecutive id range.
CreateIntersection Creates a new Intersection object based on the specified type.
CreateLane Creates a new Lane object based on the specified type.
CreateObstacle Creates a timed obstacle to be placed on a lane.
CreateRoad Creates a new Road object.
CreateVehicle Creates a new IVehicle object based on the specified type.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetGenerator Retrieves a generator from the collection of intersections.
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.
GetIntersection Retrieves a intersection form the collection of intersections.
GetObjectData Populates a SerializationInfo with the data needed to serialize the target object.
GetRandomGeneratorOverloaded. Retrieves a randomly chosen generator.
GetRandomIntersection Gets a randomly chosen intersection that is not the current.
GetRoadsList Creates a Dictionary containing all roads
GetType (inherited from Object)Gets the Type of the current instance.
GetVehicleTypeStatistics Gets the statistics for a certain type of vehicle.
RegisterSurrogate Registers a surrogate with the specified surrogate selector
RemoveGenerator Removes a generator from the collection of generators.
RemoveIntersection Removes an intersection from the collection of intersections.
RemoveRoad Removes a road from the road network.
RemoveVehicleTypeStatitics Removes a vehicle type stats.
Reset Reverts the Road System to its starting position.
SetObjectData Populates the singleton with the data stored in the SerializationInfo class.
TextDumpGenerators Writes the configuration of each generator to disk.
ToString (inherited from Object)Returns a String that represents the current Object.

See Also

RoadSystem Class | CBPRS.Infrastructure Namespace