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

FlowDefoperator= (const FlowDef &s)
 invalidated assignment operator More...
 

Private Attributes

std::vector< SUMOTimemyDepartures
 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...
 

Detailed Description

The definition of a flow.

Definition at line 115 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(), ROVehicle::copy(), and RORouteDef::copyOrigDest().

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

FlowDef& RORDGenerator_ODAmounts::FlowDef::operator= ( const FlowDef s)
private

invalidated assignment operator

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 160 of file RORDGenerator_ODAmounts.h.

Referenced by FlowDef().

unsigned int RORDGenerator_ODAmounts::FlowDef::myInserted
private

The number of vehicles already inserted.

Definition at line 157 of file RORDGenerator_ODAmounts.h.

const SUMOTime RORDGenerator_ODAmounts::FlowDef::myIntervalBegin
private

The begin of the described interval.

Definition at line 148 of file RORDGenerator_ODAmounts.h.

Referenced by FlowDef().

const SUMOTime RORDGenerator_ODAmounts::FlowDef::myIntervalEnd
private

The end of the described interval.

Definition at line 151 of file RORDGenerator_ODAmounts.h.

Referenced by FlowDef().

bool RORDGenerator_ODAmounts::FlowDef::myRandom
private

Information whether randomized departures are used.

Definition at line 163 of file RORDGenerator_ODAmounts.h.

Referenced by FlowDef().

const RORouteDef* const RORDGenerator_ODAmounts::FlowDef::myRoute
private

(description of) the route to use

Definition at line 145 of file RORDGenerator_ODAmounts.h.

const ROVehicle* const RORDGenerator_ODAmounts::FlowDef::myVehicle
private

(description of) the vehicle to insert

Definition at line 139 of file RORDGenerator_ODAmounts.h.

const unsigned int RORDGenerator_ODAmounts::FlowDef::myVehicle2InsertNumber
private

The number of vehicles to insert within the described interval.

Definition at line 154 of file RORDGenerator_ODAmounts.h.

Referenced by FlowDef().

const SUMOVTypeParameter* const RORDGenerator_ODAmounts::FlowDef::myVehicleType
private

(description of) the vehicle type to use

Definition at line 142 of file RORDGenerator_ODAmounts.h.


The documentation for this class was generated from the following files: