|
SUMO - Simulation of Urban MObility
|
#include <AGWorkPosition.h>
Public Member Functions | |
| AGWorkPosition (const AGStreet &inStreet, AGDataAndStatistics *ds) | |
| AGWorkPosition (const AGStreet &inStreet, SUMOReal pos, AGDataAndStatistics *ds) | |
| int | getClosing () const |
| int | getOpening () const |
| AGPosition | getPosition () const |
| bool | isTaken () const |
| void | let () |
| void | print () const |
| void | take (AGAdult *ad) throw (std::runtime_error) |
| ~AGWorkPosition () | |
Static Private Member Functions | |
| static int | generateClosingTime (const AGDataAndStatistics &ds) |
| static int | generateOpeningTime (const AGDataAndStatistics &ds) |
Private Attributes | |
| AGAdult * | adult |
| int | closingTime |
| AGDataAndStatistics * | ds |
| AGPosition | location |
| int | openingTime |
Definition at line 55 of file AGWorkPosition.h.
| AGWorkPosition::AGWorkPosition | ( | const AGStreet & | inStreet, |
| AGDataAndStatistics * | ds | ||
| ) |
Definition at line 48 of file AGWorkPosition.cpp.
References AGDataAndStatistics::workPositions.
| AGWorkPosition::AGWorkPosition | ( | const AGStreet & | inStreet, |
| SUMOReal | pos, | ||
| AGDataAndStatistics * | ds | ||
| ) |
Definition at line 59 of file AGWorkPosition.cpp.
References AGDataAndStatistics::workPositions.
| AGWorkPosition::~AGWorkPosition | ( | ) |
Definition at line 68 of file AGWorkPosition.cpp.
|
staticprivate |
Definition at line 102 of file AGWorkPosition.cpp.
References AGDataAndStatistics::endWorkHours, RandHelper::rand(), and SUMOReal.
|
staticprivate |
Definition at line 84 of file AGWorkPosition.cpp.
References AGDataAndStatistics::beginWorkHours, RandHelper::rand(), and SUMOReal.
| int AGWorkPosition::getClosing | ( | ) | const |
Definition at line 156 of file AGWorkPosition.cpp.
References closingTime.
| int AGWorkPosition::getOpening | ( | ) | const |
Definition at line 163 of file AGWorkPosition.cpp.
References openingTime.
| AGPosition AGWorkPosition::getPosition | ( | ) | const |
Definition at line 149 of file AGWorkPosition.cpp.
References location.
| bool AGWorkPosition::isTaken | ( | ) | const |
| void AGWorkPosition::let | ( | ) |
Definition at line 126 of file AGWorkPosition.cpp.
References adult, ds, AGAdult::lostWorkPosition(), and AGDataAndStatistics::workPositions.
Referenced by AGAdult::resignFromWorkPosition(), and AGAdult::tryToWork().
| void AGWorkPosition::print | ( | ) | const |
Definition at line 75 of file AGWorkPosition.cpp.
References closingTime, isTaken(), location, openingTime, and AGPosition::print().
| void AGWorkPosition::take | ( | AGAdult * | ad | ) | throw (std::runtime_error) |
Definition at line 137 of file AGWorkPosition.cpp.
Referenced by AGAdult::tryToWork().
|
private |
Definition at line 74 of file AGWorkPosition.h.
|
private |
Definition at line 77 of file AGWorkPosition.h.
Referenced by getClosing(), and print().
|
private |
Definition at line 73 of file AGWorkPosition.h.
Referenced by let().
|
private |
Definition at line 75 of file AGWorkPosition.h.
Referenced by getPosition(), and print().
|
private |
Definition at line 76 of file AGWorkPosition.h.
Referenced by getOpening(), and print().