SUMO - Simulation of Urban MObility
RORDGenerator_ODAmounts::FlowDef Class Reference

#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< SUMOTimemyDepartures
 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.
RORouteDefmyRoute
 (description of) the route to use
ROVehiclemyVehicle
 (description of) the vehicle to insert
unsigned int myVehicle2InsertNumber
 The number of vehicles to insert within the described interval.
SUMOVTypeParametermyVehicleType
 (description of) the vehicle type to use

Detailed Description

The definition of a flow.

Definition at line 109 of file RORDGenerator_ODAmounts.h.


Constructor & Destructor Documentation

RORDGenerator_ODAmounts::FlowDef::FlowDef ( ROVehicle vehicle,
SUMOVTypeParameter type,
RORouteDef route,
SUMOTime  intBegin,
SUMOTime  intEnd,
unsigned int  vehicles2insert,
bool  randomize 
)

Destructor.

Definition at line 86 of file RORDGenerator_ODAmounts.cpp.


Member Function Documentation

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().

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().


Field Documentation

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().

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.

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.


The documentation for this class was generated from the following files:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines