SUMO - Simulation of Urban MObility
GNECalibrator::GNECalibratorFlow Class Reference

calibrator flow More...

#include <GNECalibrator.h>

Collaboration diagram for GNECalibrator::GNECalibratorFlow:
Collaboration graph

Public Member Functions

const std::string & getArrivalLane () const
 get arrival lane More...
 
const std::string & getArrivalPos () const
 get arrival position More...
 
const std::string & getArrivalSpeed () const
 get arrival speed More...
 
SUMOReal getBegin () const
 get begin time step More...
 
GNECalibrator * getCalibratorParent () const
 get pointer to calibrator parent More...
 
const std::string & getColor () const
 get color of flow More...
 
int getContainerNumber () const
 get number of containers More...
 
const std::string & getDepartLane () const
 get depart lane More...
 
const std::string & getDepartPos () const
 get depart position More...
 
const std::string & getDepartSpeed () const
 get arrival speed More...
 
SUMOReal getEnd () const
 get end time step More...
 
const std::string & getLine () const
 get line of busStop/containerStop More...
 
int getNumber () const
 get number of vehicles More...
 
SUMOReal getPeriod () const
 get period of vehicle More...
 
int getPersonNumber () const
 get number of persons More...
 
SUMOReal getProbability () const
 get probability of vehicle More...
 
const std::string & getRoute () const
 get route in which this flow is used More...
 
const std::string & getType () const
 get type of vehicle More...
 
SUMOReal getVehsPerHour () const
 get vehicles per hour More...
 
 GNECalibratorFlow (GNECalibrator *calibratorParent, std::string type, std::string route)
 constructor More...
 
 GNECalibratorFlow (GNECalibrator *calibratorParent, std::string type, std::string route, std::string color, std::string departLane, std::string departPos, std::string departSpeed, std::string arrivalLane, std::string arrivalPos, std::string arrivalSpeed, std::string line, int personNumber, int containerNumber, SUMOReal begin, SUMOReal end, SUMOReal vehsPerHour, SUMOReal period, SUMOReal probability, int number)
 parameter constructor More...
 
bool setArrivalLane (std::string arrivalLane)
 set arrival lane More...
 
bool setArrivalPos (std::string arrivalPos)
 set arrival position More...
 
bool setArrivalSpeed (std::string arrivalSpeed)
 set arrival speed More...
 
bool setBegin (SUMOReal begin)
 set begin step More...
 
bool setColor (std::string color)
 set color of flow More...
 
bool setContainerNumber (int containerNumber)
 set number of container More...
 
bool setDepartLane (std::string departLane)
 set depart lane More...
 
bool setDepartPos (std::string departPos)
 set depart position More...
 
bool setDepartSpeed (std::string departSpeed)
 set depart speed More...
 
bool setEnd (SUMOReal end)
 set end step More...
 
bool setLine (std::string line)
 set line of busStop/containerStop More...
 
bool setNumber (int number)
 set number of vehicles More...
 
bool setPeriod (SUMOReal period)
 set period of vehicles More...
 
bool setPersonNumber (int personNumber)
 set number of persons More...
 
bool setProbability (SUMOReal probability)
 set probability of vehicle More...
 
bool setRoute (std::string route)
 set route in which this flow is used More...
 
bool setType (std::string type)
 set type of vehicle More...
 
bool setVehsPerHour (SUMOReal vehsPerHour)
 set vehicles per hour More...
 
 ~GNECalibratorFlow ()
 destructor More...
 

Private Member Functions

 GNECalibratorFlow (const GNECalibratorFlow &)
 Invalidated copy constructor. More...
 
GNECalibratorFlow & operator= (const GNECalibratorFlow &)
 Invalidated assignment operator. More...
 

Private Attributes

std::string myArrivalLane
 arrival lane More...
 
std::string myArrivalPos
 arrival pos More...
 
std::string myArrivalSpeed
 arrival speed More...
 
SUMOReal myBegin
 time step begin More...
 
GNECalibrator * myCalibratorParent
 pointer to calibrator parent More...
 
std::string myColor
 color of flow More...
 
int myContainerNumber
 number of container More...
 
std::string myDepartLane
 depart lane More...
 
std::string myDepartPos
 depart position More...
 
std::string myDepartSpeed
 depart speed More...
 
SUMOReal myEnd
 time step end More...
 
std::string myLine
 line of bus/container stop More...
 
int myNumber
 number of vehicle More...
 
SUMOReal myPeriod
 period More...
 
int myPersonNumber
 number of person More...
 
SUMOReal myProbability
 probability More...
 
std::string myRoute
 route in which this flow is used More...
 
std::string myType
 type of flow More...
 
SUMOReal myVehsPerHour
 vehicles per hour More...
 

Detailed Description

calibrator flow

Definition at line 52 of file GNECalibrator.h.

Constructor & Destructor Documentation

GNECalibrator::GNECalibratorFlow::GNECalibratorFlow ( GNECalibrator *  calibratorParent,
std::string  type,
std::string  route 
)

constructor

Definition at line 414 of file GNECalibrator.cpp.

GNECalibrator::GNECalibratorFlow::GNECalibratorFlow ( GNECalibrator *  calibratorParent,
std::string  type,
std::string  route,
std::string  color,
std::string  departLane,
std::string  departPos,
std::string  departSpeed,
std::string  arrivalLane,
std::string  arrivalPos,
std::string  arrivalSpeed,
std::string  line,
int  personNumber,
int  containerNumber,
SUMOReal  begin,
SUMOReal  end,
SUMOReal  vehsPerHour,
SUMOReal  period,
SUMOReal  probability,
int  number 
)
GNECalibrator::GNECalibratorFlow::~GNECalibratorFlow ( )

destructor

Definition at line 447 of file GNECalibrator.cpp.

GNECalibrator::GNECalibratorFlow::GNECalibratorFlow ( const GNECalibratorFlow &  )
private

Invalidated copy constructor.

Member Function Documentation

const std::string & GNECalibrator::GNECalibratorFlow::getArrivalLane ( ) const

get arrival lane

Definition at line 493 of file GNECalibrator.cpp.

References myArrivalLane.

const std::string & GNECalibrator::GNECalibratorFlow::getArrivalPos ( ) const

get arrival position

Definition at line 499 of file GNECalibrator.cpp.

References myArrivalPos.

const std::string & GNECalibrator::GNECalibratorFlow::getArrivalSpeed ( ) const

get arrival speed

Definition at line 505 of file GNECalibrator.cpp.

References myArrivalSpeed.

SUMOReal GNECalibrator::GNECalibratorFlow::getBegin ( ) const

get begin time step

Definition at line 529 of file GNECalibrator.cpp.

References myBegin, and SUMOReal.

GNECalibrator * GNECalibrator::GNECalibratorFlow::getCalibratorParent ( ) const

get pointer to calibrator parent

Definition at line 451 of file GNECalibrator.cpp.

References myCalibratorParent.

const std::string & GNECalibrator::GNECalibratorFlow::getColor ( ) const

get color of flow

Definition at line 469 of file GNECalibrator.cpp.

References myColor.

int GNECalibrator::GNECalibratorFlow::getContainerNumber ( ) const

get number of containers

Definition at line 523 of file GNECalibrator.cpp.

References myContainerNumber, and SUMOReal.

const std::string & GNECalibrator::GNECalibratorFlow::getDepartLane ( ) const

get depart lane

Definition at line 475 of file GNECalibrator.cpp.

References myDepartLane.

const std::string & GNECalibrator::GNECalibratorFlow::getDepartPos ( ) const

get depart position

Definition at line 481 of file GNECalibrator.cpp.

References myDepartPos.

const std::string & GNECalibrator::GNECalibratorFlow::getDepartSpeed ( ) const

get arrival speed

Definition at line 487 of file GNECalibrator.cpp.

References myDepartSpeed.

SUMOReal GNECalibrator::GNECalibratorFlow::getEnd ( ) const

get end time step

Definition at line 535 of file GNECalibrator.cpp.

References myEnd, and SUMOReal.

const std::string & GNECalibrator::GNECalibratorFlow::getLine ( ) const

get line of busStop/containerStop

Definition at line 511 of file GNECalibrator.cpp.

References myLine.

int GNECalibrator::GNECalibratorFlow::getNumber ( ) const

get number of vehicles

Definition at line 559 of file GNECalibrator.cpp.

References myNumber.

SUMOReal GNECalibrator::GNECalibratorFlow::getPeriod ( ) const

get period of vehicle

Definition at line 547 of file GNECalibrator.cpp.

References myPeriod, and SUMOReal.

int GNECalibrator::GNECalibratorFlow::getPersonNumber ( ) const

get number of persons

Definition at line 517 of file GNECalibrator.cpp.

References myPersonNumber.

SUMOReal GNECalibrator::GNECalibratorFlow::getProbability ( ) const

get probability of vehicle

Definition at line 553 of file GNECalibrator.cpp.

References myProbability.

const std::string & GNECalibrator::GNECalibratorFlow::getRoute ( ) const

get route in which this flow is used

Definition at line 463 of file GNECalibrator.cpp.

References myRoute.

const std::string & GNECalibrator::GNECalibratorFlow::getType ( ) const

get type of vehicle

Definition at line 457 of file GNECalibrator.cpp.

References myType.

SUMOReal GNECalibrator::GNECalibratorFlow::getVehsPerHour ( ) const

get vehicles per hour

Definition at line 541 of file GNECalibrator.cpp.

References myVehsPerHour, and SUMOReal.

GNECalibratorFlow& GNECalibrator::GNECalibratorFlow::operator= ( const GNECalibratorFlow &  )
private

Invalidated assignment operator.

bool GNECalibrator::GNECalibratorFlow::setArrivalLane ( std::string  arrivalLane)

set arrival lane

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 641 of file GNECalibrator.cpp.

References myDepartLane.

Referenced by GNECalibratorFlow(), GNECalibratorDialog::onCmdAddRow(), and GNEAdditionalHandler::parseCalibratorFlow().

bool GNECalibrator::GNECalibratorFlow::setArrivalPos ( std::string  arrivalPos)

set arrival position

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 656 of file GNECalibrator.cpp.

References myDepartPos, and SUMOReal.

Referenced by GNECalibratorFlow(), GNECalibratorDialog::onCmdAddRow(), and GNEAdditionalHandler::parseCalibratorFlow().

bool GNECalibrator::GNECalibratorFlow::setArrivalSpeed ( std::string  arrivalSpeed)

set arrival speed

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 671 of file GNECalibrator.cpp.

References myDepartSpeed, and SUMOReal.

Referenced by GNECalibratorFlow(), GNECalibratorDialog::onCmdAddRow(), and GNEAdditionalHandler::parseCalibratorFlow().

bool GNECalibrator::GNECalibratorFlow::setBegin ( SUMOReal  begin)

set begin step

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 716 of file GNECalibrator.cpp.

References myBegin.

Referenced by GNECalibratorFlow(), GNECalibratorDialog::onCmdAddRow(), and GNEAdditionalHandler::parseCalibratorFlow().

bool GNECalibrator::GNECalibratorFlow::setColor ( std::string  color)

set color of flow

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 587 of file GNECalibrator.cpp.

References myColor.

Referenced by GNECalibratorFlow(), GNECalibratorDialog::onCmdAddRow(), and GNEAdditionalHandler::parseCalibratorFlow().

bool GNECalibrator::GNECalibratorFlow::setContainerNumber ( int  containerNumber)

set number of container

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 705 of file GNECalibrator.cpp.

References myContainerNumber.

Referenced by GNECalibratorFlow(), GNECalibratorDialog::onCmdAddRow(), and GNEAdditionalHandler::parseCalibratorFlow().

bool GNECalibrator::GNECalibratorFlow::setDepartLane ( std::string  departLane)

set depart lane

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 594 of file GNECalibrator.cpp.

References myDepartLane.

Referenced by GNECalibratorFlow(), GNECalibratorDialog::onCmdAddRow(), and GNEAdditionalHandler::parseCalibratorFlow().

bool GNECalibrator::GNECalibratorFlow::setDepartPos ( std::string  departPos)

set depart position

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 610 of file GNECalibrator.cpp.

References myDepartPos, and SUMOReal.

Referenced by GNECalibratorFlow(), GNECalibratorDialog::onCmdAddRow(), and GNEAdditionalHandler::parseCalibratorFlow().

bool GNECalibrator::GNECalibratorFlow::setDepartSpeed ( std::string  departSpeed)

set depart speed

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 626 of file GNECalibrator.cpp.

References myDepartSpeed, and SUMOReal.

Referenced by GNECalibratorFlow(), GNECalibratorDialog::onCmdAddRow(), and GNEAdditionalHandler::parseCalibratorFlow().

bool GNECalibrator::GNECalibratorFlow::setEnd ( SUMOReal  end)

set end step

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 727 of file GNECalibrator.cpp.

References myEnd.

Referenced by GNECalibratorFlow(), GNECalibratorDialog::onCmdAddRow(), and GNEAdditionalHandler::parseCalibratorFlow().

bool GNECalibrator::GNECalibratorFlow::setLine ( std::string  line)

set line of busStop/containerStop

Returns
true if was sucesfully set, or false if value isn't valid
Todo:
check if line exists

Definition at line 686 of file GNECalibrator.cpp.

References myLine.

Referenced by GNECalibratorFlow(), GNECalibratorDialog::onCmdAddRow(), and GNEAdditionalHandler::parseCalibratorFlow().

bool GNECalibrator::GNECalibratorFlow::setNumber ( int  number)

set number of vehicles

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 770 of file GNECalibrator.cpp.

References myNumber.

Referenced by GNECalibratorFlow(), GNECalibratorDialog::onCmdAddRow(), and GNEAdditionalHandler::parseCalibratorFlow().

bool GNECalibrator::GNECalibratorFlow::setPeriod ( SUMOReal  period)

set period of vehicles

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 749 of file GNECalibrator.cpp.

References myPeriod.

Referenced by GNECalibratorFlow(), GNECalibratorDialog::onCmdAddRow(), and GNEAdditionalHandler::parseCalibratorFlow().

bool GNECalibrator::GNECalibratorFlow::setPersonNumber ( int  personNumber)

set number of persons

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 694 of file GNECalibrator.cpp.

References myPersonNumber.

Referenced by GNECalibratorFlow(), GNECalibratorDialog::onCmdAddRow(), and GNEAdditionalHandler::parseCalibratorFlow().

bool GNECalibrator::GNECalibratorFlow::setProbability ( SUMOReal  probability)

set probability of vehicle

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 759 of file GNECalibrator.cpp.

References myProbability.

Referenced by GNECalibratorFlow(), GNECalibratorDialog::onCmdAddRow(), and GNEAdditionalHandler::parseCalibratorFlow().

bool GNECalibrator::GNECalibratorFlow::setRoute ( std::string  route)

set route in which this flow is used

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 576 of file GNECalibrator.cpp.

References myRoute.

Referenced by GNECalibratorDialog::onCmdAddRow().

bool GNECalibrator::GNECalibratorFlow::setType ( std::string  type)

set type of vehicle

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 565 of file GNECalibrator.cpp.

References myType.

Referenced by GNECalibratorDialog::onCmdAddRow().

bool GNECalibrator::GNECalibratorFlow::setVehsPerHour ( SUMOReal  vehsPerHour)

set vehicles per hour

Returns
true if was sucesfully set, or false if value isn't valid

Definition at line 738 of file GNECalibrator.cpp.

References myVehsPerHour.

Referenced by GNECalibratorFlow(), GNECalibratorDialog::onCmdAddRow(), and GNEAdditionalHandler::parseCalibratorFlow().

Field Documentation

std::string GNECalibrator::GNECalibratorFlow::myArrivalLane
private

arrival lane

Definition at line 237 of file GNECalibrator.h.

Referenced by getArrivalLane().

std::string GNECalibrator::GNECalibratorFlow::myArrivalPos
private

arrival pos

Definition at line 240 of file GNECalibrator.h.

Referenced by getArrivalPos().

std::string GNECalibrator::GNECalibratorFlow::myArrivalSpeed
private

arrival speed

Definition at line 243 of file GNECalibrator.h.

Referenced by getArrivalSpeed().

SUMOReal GNECalibrator::GNECalibratorFlow::myBegin
private

time step begin

Definition at line 255 of file GNECalibrator.h.

Referenced by getBegin(), and setBegin().

GNECalibrator* GNECalibrator::GNECalibratorFlow::myCalibratorParent
private

pointer to calibrator parent

Definition at line 216 of file GNECalibrator.h.

Referenced by getCalibratorParent().

std::string GNECalibrator::GNECalibratorFlow::myColor
private

color of flow

Definition at line 225 of file GNECalibrator.h.

Referenced by getColor(), and setColor().

int GNECalibrator::GNECalibratorFlow::myContainerNumber
private

number of container

Definition at line 252 of file GNECalibrator.h.

Referenced by getContainerNumber(), and setContainerNumber().

std::string GNECalibrator::GNECalibratorFlow::myDepartLane
private

depart lane

Definition at line 228 of file GNECalibrator.h.

Referenced by getDepartLane(), setArrivalLane(), and setDepartLane().

std::string GNECalibrator::GNECalibratorFlow::myDepartPos
private

depart position

Definition at line 231 of file GNECalibrator.h.

Referenced by getDepartPos(), setArrivalPos(), and setDepartPos().

std::string GNECalibrator::GNECalibratorFlow::myDepartSpeed
private

depart speed

Definition at line 234 of file GNECalibrator.h.

Referenced by getDepartSpeed(), setArrivalSpeed(), and setDepartSpeed().

SUMOReal GNECalibrator::GNECalibratorFlow::myEnd
private

time step end

Definition at line 258 of file GNECalibrator.h.

Referenced by getEnd(), and setEnd().

std::string GNECalibrator::GNECalibratorFlow::myLine
private

line of bus/container stop

Definition at line 246 of file GNECalibrator.h.

Referenced by getLine(), and setLine().

int GNECalibrator::GNECalibratorFlow::myNumber
private

number of vehicle

Definition at line 270 of file GNECalibrator.h.

Referenced by getNumber(), and setNumber().

SUMOReal GNECalibrator::GNECalibratorFlow::myPeriod
private

period

Definition at line 264 of file GNECalibrator.h.

Referenced by getPeriod(), and setPeriod().

int GNECalibrator::GNECalibratorFlow::myPersonNumber
private

number of person

Definition at line 249 of file GNECalibrator.h.

Referenced by getPersonNumber(), and setPersonNumber().

SUMOReal GNECalibrator::GNECalibratorFlow::myProbability
private

probability

Definition at line 267 of file GNECalibrator.h.

Referenced by getProbability(), and setProbability().

std::string GNECalibrator::GNECalibratorFlow::myRoute
private

route in which this flow is used

Definition at line 222 of file GNECalibrator.h.

Referenced by getRoute(), and setRoute().

std::string GNECalibrator::GNECalibratorFlow::myType
private

type of flow

Definition at line 219 of file GNECalibrator.h.

Referenced by getType(), and setType().

SUMOReal GNECalibrator::GNECalibratorFlow::myVehsPerHour
private

vehicles per hour

Definition at line 261 of file GNECalibrator.h.

Referenced by getVehsPerHour(), and setVehsPerHour().


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