Eclipse SUMO - Simulation of Urban MObility
|
#include <AGWorkPosition.h>
Public Member Functions | |
AGWorkPosition (AGDataAndStatistics *ds, const AGStreet &inStreet) | |
AGWorkPosition (AGDataAndStatistics *ds, const AGStreet &inStreet, double pos) | |
int | getClosing () const |
int | getOpening () const |
AGPosition | getPosition () const |
bool | isTaken () const |
void | let () |
void | print () const |
void | take (AGAdult *ad) |
~AGWorkPosition () | |
Static Private Member Functions | |
static int | generateClosingTime (const AGDataAndStatistics &ds) |
static int | generateOpeningTime (const AGDataAndStatistics &ds) |
Private Attributes | |
AGAdult * | myAdult |
int | myClosingTime |
AGPosition | myLocation |
int | myOpeningTime |
AGDataAndStatistics * | myStatData |
Definition at line 46 of file AGWorkPosition.h.
AGWorkPosition::AGWorkPosition | ( | AGDataAndStatistics * | ds, |
const AGStreet & | inStreet | ||
) |
Definition at line 40 of file AGWorkPosition.cpp.
References AGDataAndStatistics::workPositions.
AGWorkPosition::AGWorkPosition | ( | AGDataAndStatistics * | ds, |
const AGStreet & | inStreet, | ||
double | pos | ||
) |
Definition at line 50 of file AGWorkPosition.cpp.
References AGDataAndStatistics::workPositions.
AGWorkPosition::~AGWorkPosition | ( | ) |
Definition at line 59 of file AGWorkPosition.cpp.
|
staticprivate |
Definition at line 90 of file AGWorkPosition.cpp.
References AGDataAndStatistics::endWorkHours, and RandHelper::rand().
|
staticprivate |
Definition at line 73 of file AGWorkPosition.cpp.
References AGDataAndStatistics::beginWorkHours, and RandHelper::rand().
int AGWorkPosition::getClosing | ( | ) | const |
Definition at line 139 of file AGWorkPosition.cpp.
References myClosingTime.
int AGWorkPosition::getOpening | ( | ) | const |
Definition at line 145 of file AGWorkPosition.cpp.
References myOpeningTime.
AGPosition AGWorkPosition::getPosition | ( | ) | const |
Definition at line 133 of file AGWorkPosition.cpp.
References myLocation.
bool AGWorkPosition::isTaken | ( | ) | const |
Definition at line 106 of file AGWorkPosition.cpp.
References myAdult.
Referenced by print().
void AGWorkPosition::let | ( | ) |
Definition at line 112 of file AGWorkPosition.cpp.
References AGAdult::lostWorkPosition(), myAdult, myStatData, and AGDataAndStatistics::workPositions.
Referenced by AGAdult::resignFromWorkPosition(), and AGAdult::tryToWork().
void AGWorkPosition::print | ( | ) | const |
Definition at line 65 of file AGWorkPosition.cpp.
References isTaken(), myClosingTime, myLocation, myOpeningTime, and AGPosition::print().
void AGWorkPosition::take | ( | AGAdult * | ad | ) |
Definition at line 122 of file AGWorkPosition.cpp.
References myAdult, myStatData, TL, and AGDataAndStatistics::workPositions.
Referenced by AGAdult::tryToWork().
|
private |
Definition at line 69 of file AGWorkPosition.h.
|
private |
Definition at line 71 of file AGWorkPosition.h.
Referenced by getClosing(), and print().
|
private |
Definition at line 68 of file AGWorkPosition.h.
Referenced by getPosition(), and print().
|
private |
Definition at line 70 of file AGWorkPosition.h.
Referenced by getOpening(), and print().
|
private |
Definition at line 67 of file AGWorkPosition.h.