City Based Parking and Routing System API Documentation

Generator Members

Generator overview

Protected Static Fields

cHoursPerDay The number of hours in a day.
cStepsPerHour The number of steps per hour ( each step is one second )

Public Instance Constructors

Generator Constructor Default constructor.

Public Instance Fields

_Counts The number of vehicles still to generate in this hour per type.
_Frequencies The generating frequency associated with each vehicle.
_HourTable The number of vehicles generate per hour.
_InitialSpeed The initial speed given to vehicles once created.
_Quota The quota of vehicles to still to generate in this period.
_Types The type names of the vehicles.

Public Instance Properties

Frequencies Gets or sets the collection of frequencies associated with this generator.
HourTable Gets or sets the hour table for this generator.
InitialSpeed Gets or sets the initial speed assigned to generated vehicles.
TypeNames Gets or sets the collection of type names associated with this generator.

Public Instance Methods

Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
Generate Generates a vehicle based on the time and frequency distribution.
GetFrequency Gets the generating frequency for the specified typename.
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.
GetMaxPerHour Gets the maximum number of vehicles generated per hour for the specified hour.
GetType (inherited from Object)Gets the Type of the current instance.
IsValid Determines if the generator object is valid.
SetFrequency Sets the generating frequency for the specified typename.
SetMaxPerHour Sets the maximum number of vehicles generated per hour for the specified hour.
ToString (inherited from Object)Returns a String that represents the current Object.

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.
GenerateVehicle Generates the vehicle and puts it on the lane.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.
SetQuotas Sets the creation quotas for the current hour.

See Also

Generator Class | CBPRS.Infrastructure Namespace