Eclipse SUMO - Simulation of Urban MObility
|
#include <AGChild.h>
Public Member Functions | |
AGChild (int age) | |
bool | allocateASchool (std::list< AGSchool > *schools, AGPosition housePos) |
virtual bool | decide (double probability) const |
Lets the person make a decision. | |
virtual int | getAge () const |
Provides the age of the person. | |
int | getSchoolClosing () const |
AGPosition | getSchoolLocation () const |
int | getSchoolOpening () const |
bool | haveASchool () const |
bool | leaveSchool () |
void | print () const |
Puts out a summary of the class properties. | |
bool | setSchool (AGSchool *school) |
Protected Attributes | |
int | age |
Private Attributes | |
AGSchool * | mySchool |
bool AGChild::allocateASchool | ( | std::list< AGSchool > * | schools, |
AGPosition | housePos | ||
) |
schools | school vector from City object |
housepos | Position of the households habitation |
Definition at line 56 of file AGChild.cpp.
References AGPerson::age, AGPosition::distanceTo(), and setSchool().
|
virtualinherited |
Lets the person make a decision.
The higher the degree of belief is, the more likely this method returns true.
[in] | degreeOfBelief | how strong the person beliefs the proposition |
Definition at line 54 of file AGPerson.cpp.
References RandHelper::rand().
Referenced by AGAdult::tryToWork().
|
virtualinherited |
Provides the age of the person.
Definition at line 48 of file AGPerson.cpp.
References AGPerson::age.
int AGChild::getSchoolClosing | ( | ) | const |
Definition at line 94 of file AGChild.cpp.
References AGSchool::getClosingHour(), and mySchool.
AGPosition AGChild::getSchoolLocation | ( | ) | const |
Definition at line 89 of file AGChild.cpp.
References AGSchool::getPosition(), and mySchool.
int AGChild::getSchoolOpening | ( | ) | const |
Definition at line 99 of file AGChild.cpp.
References AGSchool::getOpeningHour(), and mySchool.
bool AGChild::haveASchool | ( | ) | const |
Definition at line 84 of file AGChild.cpp.
References mySchool.
bool AGChild::leaveSchool | ( | ) |
Definition at line 74 of file AGChild.cpp.
References mySchool, and AGSchool::removeChild().
|
virtual |
Puts out a summary of the class properties.
Reimplemented from AGPerson.
Definition at line 39 of file AGChild.cpp.
References AGPerson::age, and mySchool.
bool AGChild::setSchool | ( | AGSchool * | school | ) |
Definition at line 44 of file AGChild.cpp.
References AGSchool::addNewChild(), and mySchool.
Referenced by allocateASchool().
|
protectedinherited |
Definition at line 62 of file AGPerson.h.
Referenced by allocateASchool(), AGPerson::getAge(), AGAdult::print(), print(), and AGPerson::print().
|
private |
Definition at line 61 of file AGChild.h.
Referenced by getSchoolClosing(), getSchoolLocation(), getSchoolOpening(), haveASchool(), leaveSchool(), print(), and setSchool().