SUMO - Simulation of Urban MObility
|
#include <RORDGenerator_ODAmounts.h>
Public Member Functions | |
void | addRoutes (RONet &net, SUMOTime time) |
Adds routes to start within the given time into the given net. More... | |
void | addSingleRoute (RONet &net, SUMOTime time) |
Adds a single route to start within the given time into the given net. More... | |
bool | applicableForTime (SUMOTime time) const |
Returns the information whether this flow includes the given time. More... | |
FlowDef (ROVehicle *vehicle, SUMOVTypeParameter *type, RORouteDef *route, SUMOTime intBegin, SUMOTime intEnd, unsigned int vehicles2insert, bool randomize) | |
Constructor. More... | |
SUMOTime | getIntervalEnd () const |
Returns the end of the period this FlowDef describes. More... | |
~FlowDef () | |
Destructor. More... | |
Private Member Functions | |
FlowDef & | operator= (const FlowDef &s) |
invalidated assignment operator More... | |
Private Attributes | |
std::vector< SUMOTime > | myDepartures |
The list of generated departure times in the case randomized departures are used. More... | |
unsigned int | myInserted |
The number of vehicles already inserted. More... | |
const SUMOTime | myIntervalBegin |
The begin of the described interval. More... | |
const SUMOTime | myIntervalEnd |
The end of the described interval. More... | |
bool | myRandom |
Information whether randomized departures are used. More... | |
const RORouteDef *const | myRoute |
(description of) the route to use More... | |
const ROVehicle *const | myVehicle |
(description of) the vehicle to insert More... | |
const unsigned int | myVehicle2InsertNumber |
The number of vehicles to insert within the described interval. More... | |
const SUMOVTypeParameter *const | myVehicleType |
(description of) the vehicle type to use More... | |
The definition of a flow.
Definition at line 115 of file RORDGenerator_ODAmounts.h.
RORDGenerator_ODAmounts::FlowDef::FlowDef | ( | ROVehicle * | vehicle, |
SUMOVTypeParameter * | type, | ||
RORouteDef * | route, | ||
SUMOTime | intBegin, | ||
SUMOTime | intEnd, | ||
unsigned int | vehicles2insert, | ||
bool | randomize | ||
) |
Constructor.
Definition at line 62 of file RORDGenerator_ODAmounts.cpp.
References DELTA_T, myDepartures, myIntervalBegin, myIntervalEnd, myRandom, myVehicle2InsertNumber, and RandHelper::rand().
RORDGenerator_ODAmounts::FlowDef::~FlowDef | ( | ) |
Destructor.
Definition at line 86 of file RORDGenerator_ODAmounts.cpp.
Adds routes to start within the given time into the given net.
Definition at line 98 of file RORDGenerator_ODAmounts.cpp.
References DELTA_T, RORDGenerator_ODAmounts::myIntervalBegin, RORDGenerator_ODAmounts::myIntervalEnd, RORDGenerator_ODAmounts::myRandom, RORDGenerator_ODAmounts::myVehicle2InsertNumber, and SUMOReal.
Referenced by RORDGenerator_ODAmounts::buildForTimeStep().
Adds a single route to start within the given time into the given net.
Definition at line 120 of file RORDGenerator_ODAmounts.cpp.
References RONet::addRouteDef(), RONet::addVehicle(), ROVehicle::copy(), and RORouteDef::copyOrigDest().
Returns the information whether this flow includes the given time.
Definition at line 92 of file RORDGenerator_ODAmounts.cpp.
Referenced by RORDGenerator_ODAmounts::buildForTimeStep().
SUMOTime RORDGenerator_ODAmounts::FlowDef::getIntervalEnd | ( | ) | const |
Returns the end of the period this FlowDef describes.
Definition at line 131 of file RORDGenerator_ODAmounts.cpp.
References RORDGenerator_ODAmounts::myIntervalEnd.
Referenced by RORDGenerator_ODAmounts::buildForTimeStep().
invalidated assignment operator
|
private |
The list of generated departure times in the case randomized departures are used.
Definition at line 160 of file RORDGenerator_ODAmounts.h.
Referenced by FlowDef().
|
private |
The number of vehicles already inserted.
Definition at line 157 of file RORDGenerator_ODAmounts.h.
|
private |
The begin of the described interval.
Definition at line 148 of file RORDGenerator_ODAmounts.h.
Referenced by FlowDef().
|
private |
The end of the described interval.
Definition at line 151 of file RORDGenerator_ODAmounts.h.
Referenced by FlowDef().
|
private |
Information whether randomized departures are used.
Definition at line 163 of file RORDGenerator_ODAmounts.h.
Referenced by FlowDef().
|
private |
(description of) the route to use
Definition at line 145 of file RORDGenerator_ODAmounts.h.
|
private |
(description of) the vehicle to insert
Definition at line 139 of file RORDGenerator_ODAmounts.h.
|
private |
The number of vehicles to insert within the described interval.
Definition at line 154 of file RORDGenerator_ODAmounts.h.
Referenced by FlowDef().
|
private |
(description of) the vehicle type to use
Definition at line 142 of file RORDGenerator_ODAmounts.h.