SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
)
RORDGenerator_ODAmounts::FlowDef::~FlowDef ( )

Destructor.

Definition at line 86 of file RORDGenerator_ODAmounts.cpp.

Member Function Documentation

void RORDGenerator_ODAmounts::FlowDef::addRoutes ( RONet net,
SUMOTime  time 
)
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().

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

Field Documentation

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.

SUMOTime RORDGenerator_ODAmounts::FlowDef::myIntervalBegin
private

The begin of the described interval.

Definition at line 142 of file RORDGenerator_ODAmounts.h.

Referenced by FlowDef().

SUMOTime RORDGenerator_ODAmounts::FlowDef::myIntervalEnd
private

The end of the described interval.

Definition at line 145 of file RORDGenerator_ODAmounts.h.

Referenced by FlowDef().

bool RORDGenerator_ODAmounts::FlowDef::myRandom
private

Information whether randomized departures are used.

Definition at line 157 of file RORDGenerator_ODAmounts.h.

Referenced by FlowDef().

RORouteDef* RORDGenerator_ODAmounts::FlowDef::myRoute
private

(description of) the route to use

Definition at line 139 of file RORDGenerator_ODAmounts.h.

ROVehicle* RORDGenerator_ODAmounts::FlowDef::myVehicle
private

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

SUMOVTypeParameter* RORDGenerator_ODAmounts::FlowDef::myVehicleType
private

(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: