Microscopic Traffic Simulator
|
Represents generator of cars. More...
Public Member Functions | |
virtual TimeSpan | GetTimeToNextAction (Random random) |
Returns time to generation of new ticket. More... | |
virtual void | PerformAction (Random random) |
Generate new car. More... | |
Protected Member Functions | |
void | GenerateTicket (int initialSpeed) |
Generate new ticket. In case that current number of tickets is zero add generator to set of generators with tickets. More... | |
Properties | |
bool | IsPauseScheduled [get] |
Checks whether the generator has the pause scheduled. Not used so returns always false. More... | |
int | Priority [get] |
Generator priority as the simulation action generator. More... | |
![]() | |
bool | IsPauseScheduled [get] |
Check whether the simulation action generator has the pause scheduled. More... | |
int | Priority [get] |
Priority determining the rank of the events which have the same time. More... | |
Represents generator of cars.
Definition at line 13 of file Generator.cs.
|
protected |
Generate new ticket. In case that current number of tickets is zero add generator to set of generators with tickets.
initialSpeed | Initial speed of car to be generated from new ticket. |
Definition at line 114 of file Generator.cs.
|
virtual |
Returns time to generation of new ticket.
random | Random instance used if generator is dependent on the random variables. |
Implements Microscopic_Traffic_Simulator___Model.SimulationControl.ISimulationEventsGenerator.
Reimplemented in Microscopic_Traffic_Simulator___Model.TrafficObjects.Sensor.
Definition at line 95 of file Generator.cs.
|
virtual |
Generate new car.
random | Random instance which is not used. |
Implements Microscopic_Traffic_Simulator___Model.SimulationControl.ISimulationEventsGenerator.
Reimplemented in Microscopic_Traffic_Simulator___Model.TrafficObjects.Sensor.
Definition at line 104 of file Generator.cs.
|
get |
Checks whether the generator has the pause scheduled. Not used so returns always false.
Definition at line 18 of file Generator.cs.
|
get |
Generator priority as the simulation action generator.
Definition at line 42 of file Generator.cs.