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. | |
void | addSingleRoute (RONet &net, SUMOTime time) |
Adds a single route to start within the given time into the given net. | |
bool | applicableForTime (SUMOTime time) const |
Returns the information whether this flow includes the given time. | |
FlowDef (ROVehicle *vehicle, SUMOVTypeParameter *type, RORouteDef *route, SUMOTime intBegin, SUMOTime intEnd, unsigned int vehicles2insert, bool randomize) | |
Constructor. | |
SUMOTime | getIntervalEnd () const |
Returns the end of the period this FlowDef describes. | |
~FlowDef () | |
Destructor. | |
Private Attributes | |
std::vector< SUMOTime > | myDepartures |
The list of generated departure times in the case randomized departures are used. | |
unsigned int | myInserted |
The number of vehicles already inserted. | |
SUMOTime | myIntervalBegin |
The begin of the described interval. | |
SUMOTime | myIntervalEnd |
The end of the described interval. | |
bool | myRandom |
Information whether randomized departures are used. | |
RORouteDef * | myRoute |
(description of) the route to use | |
ROVehicle * | myVehicle |
(description of) the vehicle to insert | |
unsigned int | myVehicle2InsertNumber |
The number of vehicles to insert within the described interval. | |
SUMOVTypeParameter * | myVehicleType |
(description of) the vehicle type to use |
The definition of a flow.
Definition at line 109 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().
Destructor.
Definition at line 86 of file RORDGenerator_ODAmounts.cpp.
void RORDGenerator_ODAmounts::FlowDef::addRoutes | ( | RONet & | net, |
SUMOTime | time | ||
) |
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().
void RORDGenerator_ODAmounts::FlowDef::addSingleRoute | ( | RONet & | net, |
SUMOTime | time | ||
) |
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(), RORouteDef::copy(), and ROVehicle::copy().
bool RORDGenerator_ODAmounts::FlowDef::applicableForTime | ( | SUMOTime | time | ) | const |
Returns the information whether this flow includes the given time.
Definition at line 92 of file RORDGenerator_ODAmounts.cpp.
Referenced by RORDGenerator_ODAmounts::buildForTimeStep().
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().
std::vector<SUMOTime> RORDGenerator_ODAmounts::FlowDef::myDepartures [private] |
The list of generated departure times in the case randomized departures are used.
Definition at line 154 of file RORDGenerator_ODAmounts.h.
Referenced by FlowDef().
unsigned int RORDGenerator_ODAmounts::FlowDef::myInserted [private] |
The number of vehicles already inserted.
Definition at line 151 of file RORDGenerator_ODAmounts.h.
The begin of the described interval.
Definition at line 142 of file RORDGenerator_ODAmounts.h.
Referenced by FlowDef().
The end of the described interval.
Definition at line 145 of file RORDGenerator_ODAmounts.h.
Referenced by FlowDef().
Information whether randomized departures are used.
Definition at line 157 of file RORDGenerator_ODAmounts.h.
Referenced by FlowDef().
(description of) the route to use
Definition at line 139 of file RORDGenerator_ODAmounts.h.
(description of) the vehicle to insert
Definition at line 133 of file RORDGenerator_ODAmounts.h.
unsigned int RORDGenerator_ODAmounts::FlowDef::myVehicle2InsertNumber [private] |
The number of vehicles to insert within the described interval.
Definition at line 148 of file RORDGenerator_ODAmounts.h.
Referenced by FlowDef().
(description of) the vehicle type to use
Definition at line 136 of file RORDGenerator_ODAmounts.h.