 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
80 void tryToWork(
double employmentRate, std::vector<AGWorkPosition>* wps);
AGAdult(int age)
Initialises the base class and the own attributes.
void lostWorkPosition()
Called when the adult has lost her job.
void resignFromWorkPosition()
Called when the adult should resign her job.
static AGWorkPosition * randomFreeWorkPosition(std::vector< AGWorkPosition > *wps)
Randomly selects a free work position from the list.
void tryToWork(double employmentRate, std::vector< AGWorkPosition > *wps)
Tries to get a new work position.
bool isWorking() const
States whether this person occupies a work position at present.
const AGWorkPosition & getWorkPosition() const
Provides the work position of the adult.
Base class of every person in the city (adults and children)
void print() const
Puts out a summary of the attributes.
An adult person who can have a job.