22 #include "boost/date_time/gregorian/gregorian.hpp" 23 #include <boost/property_tree/ptree.hpp> 39 Calendar(
const boost::property_tree::ptree& pt_config);
std::size_t getMonth() const
Get the current month.
std::vector< boost::gregorian::date > m_school_holidays
Vector of school holidays.
std::vector< boost::gregorian::date > m_holidays
Vector of general holidays.
std::size_t getDay() const
Get the current day of the month.
Time Dependent Person DataType.
void initializeHolidays(const boost::property_tree::ptree &pt_config)
Class that keeps track of the 'state' of simulated world.
void advanceDay()
Advance the internal calendar by one day.
bool isSchoolHoliday() const
Check if it's a school holiday.
Calendar(const boost::property_tree::ptree &pt_config)
Constructor.
bool isWeekend() const
Check if it's the weekend.
std::size_t getDayOfTheWeek() const
Get the current day of the week (0 (Sunday), ..., 6 (Saturday))
std::size_t m_day
The current simulation day.
std::size_t getYear() const
Get the current year.
std::size_t getSimulationDay() const
Get the current day of the simulation.
bool isHoliday() const
Check if it's a holiday.
boost::gregorian::date m_date
The current simulated day.