-
Notifications
You must be signed in to change notification settings - Fork 6
Individual class API
39xdgy edited this page Sep 25, 2020
·
4 revisions
- id: str
- _husband: Individual
- _wife: Individual
- _marriedDate: tuple
- _divorced: tuple
- _children: list
init(self, id: str, name: str = None, gender: str = None, birth_date: str = None, death_date: str = None, family = [], parent_family = None):
This is the class for individual.
id is the only variable that is required. If other variable does not exist, it would return None
every element of family is a Family variable
parent_family is a Family variable
if family does not exist, it would return a empty list
all date value are passed in as str, and saved as tuple with formate (year, month, day)
all get and set would not display here.
this function Would take the string input and covert into a int tuple:(year, month, day)