![]() |
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. More... | |
| virtual int | getAge () const |
| Provides the age of the person. More... | |
| 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. More... | |
| bool | setSchool (AGSchool *school) |
Protected Attributes | |
| int | age |
Private Attributes | |
| AGSchool * | school |
| bool AGChild::allocateASchool | ( | std::list< AGSchool > * | schools, |
| AGPosition | housePos | ||
| ) |
| schools | school vector from City object |
| housepos | Position of the households habitation |
Definition at line 57 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 55 of file AGPerson.cpp.
References RandHelper::rand().
Referenced by AGAdult::tryToWork().
|
virtualinherited |
Provides the age of the person.
Definition at line 49 of file AGPerson.cpp.
References AGPerson::age.
| int AGChild::getSchoolClosing | ( | ) | const |
Definition at line 95 of file AGChild.cpp.
References AGSchool::getClosingHour(), and school.
| AGPosition AGChild::getSchoolLocation | ( | ) | const |
Definition at line 90 of file AGChild.cpp.
References AGSchool::getPosition(), and school.
| int AGChild::getSchoolOpening | ( | ) | const |
Definition at line 100 of file AGChild.cpp.
References AGSchool::getOpeningHour(), and school.
| bool AGChild::haveASchool | ( | ) | const |
Definition at line 85 of file AGChild.cpp.
References school.
| bool AGChild::leaveSchool | ( | ) |
Definition at line 75 of file AGChild.cpp.
References AGSchool::removeChild(), and school.
|
virtual |
Puts out a summary of the class properties.
Reimplemented from AGPerson.
Definition at line 40 of file AGChild.cpp.
References AGPerson::age, and school.
| bool AGChild::setSchool | ( | AGSchool * | school | ) |
Definition at line 45 of file AGChild.cpp.
References AGSchool::addNewChild(), and school.
Referenced by allocateASchool().
|
protectedinherited |
Definition at line 64 of file AGPerson.h.
Referenced by allocateASchool(), AGPerson::getAge(), print(), AGAdult::print(), and AGPerson::print().
|
private |
Definition at line 63 of file AGChild.h.
Referenced by getSchoolClosing(), getSchoolLocation(), getSchoolOpening(), haveASchool(), leaveSchool(), print(), and setSchool().