|
SUMO - Simulation of Urban MObility
|
#include <AGWorkPosition.h>
Public Member Functions | |
| AGWorkPosition (const AGStreet &inStreet, AGDataAndStatistics *ds) throw () | |
| AGWorkPosition (const AGStreet &inStreet, SUMOReal pos, AGDataAndStatistics *ds) throw () | |
| int | getClosing () const throw () |
| int | getOpening () const throw () |
| AGPosition | getPosition () const throw () |
| bool | isTaken () const throw () |
| void | let () throw () |
| void | print () const throw () |
| void | take (AGAdult *ad) throw (std::runtime_error) |
| ~AGWorkPosition () throw () | |
Static Private Member Functions | |
| static int | generateClosingTime (const AGDataAndStatistics &ds) throw () |
| static int | generateOpeningTime (const AGDataAndStatistics &ds) throw () |
Private Attributes | |
| AGAdult * | adult |
| int | closingTime |
| AGDataAndStatistics * | ds |
| AGPosition | location |
| int | openingTime |
Definition at line 52 of file AGWorkPosition.h.
| AGWorkPosition::AGWorkPosition | ( | const AGStreet & | inStreet, |
| AGDataAndStatistics * | ds | ||
| ) | throw () |
Definition at line 44 of file AGWorkPosition.cpp.
| AGWorkPosition::AGWorkPosition | ( | const AGStreet & | inStreet, |
| SUMOReal | pos, | ||
| AGDataAndStatistics * | ds | ||
| ) | throw () |
Definition at line 55 of file AGWorkPosition.cpp.
| AGWorkPosition::~AGWorkPosition | ( | ) | throw () |
Definition at line 64 of file AGWorkPosition.cpp.
| int AGWorkPosition::generateClosingTime | ( | const AGDataAndStatistics & | ds | ) | throw () [static, private] |
Definition at line 98 of file AGWorkPosition.cpp.
References RandHelper::rand(), and SUMOReal.
| int AGWorkPosition::generateOpeningTime | ( | const AGDataAndStatistics & | ds | ) | throw () [static, private] |
Definition at line 80 of file AGWorkPosition.cpp.
References RandHelper::rand(), and SUMOReal.
| int AGWorkPosition::getClosing | ( | ) | const throw () |
Definition at line 152 of file AGWorkPosition.cpp.
References closingTime.
| int AGWorkPosition::getOpening | ( | ) | const throw () |
Definition at line 159 of file AGWorkPosition.cpp.
References openingTime.
| AGPosition AGWorkPosition::getPosition | ( | ) | const throw () |
Definition at line 145 of file AGWorkPosition.cpp.
References location.
| bool AGWorkPosition::isTaken | ( | ) | const throw () |
| void AGWorkPosition::let | ( | ) | throw () |
Definition at line 122 of file AGWorkPosition.cpp.
References adult, ds, AGAdult::lostWorkPosition(), and AGDataAndStatistics::workPositions.
Referenced by AGAdult::resignFromWorkPosition().
| void AGWorkPosition::print | ( | ) | const throw () |
Definition at line 71 of file AGWorkPosition.cpp.
References closingTime, isTaken(), location, openingTime, and AGPosition::print().
| void AGWorkPosition::take | ( | AGAdult * | ad | ) | throw (std::runtime_error) |
Definition at line 133 of file AGWorkPosition.cpp.
Referenced by AGAdult::tryToWork().
AGAdult* AGWorkPosition::adult [private] |
Definition at line 71 of file AGWorkPosition.h.
int AGWorkPosition::closingTime [private] |
Definition at line 74 of file AGWorkPosition.h.
Referenced by getClosing(), and print().
AGDataAndStatistics* AGWorkPosition::ds [private] |
Definition at line 70 of file AGWorkPosition.h.
Referenced by let().
AGPosition AGWorkPosition::location [private] |
Definition at line 72 of file AGWorkPosition.h.
Referenced by getPosition(), and print().
int AGWorkPosition::openingTime [private] |
Definition at line 73 of file AGWorkPosition.h.
Referenced by getOpening(), and print().