public class Person
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static long |
ID_COUNTER |
used to determine a unique id
|
Constructor | Description |
---|---|
Person() |
|
Person(java.lang.String name,
java.util.Date date_of_birth,
java.util.Date date_of_death,
Sex sex) |
Constructor for the person
|
Modifier and Type | Method | Description |
---|---|---|
void |
addRelationship(Relationship relationship) |
|
float |
getCurrentDOI() |
|
java.util.Date |
getDate_of_birth() |
|
java.util.Date |
getDate_of_death() |
|
long |
getID() |
|
static long |
getIdCounter() |
|
static long |
getIDCounter() |
|
java.lang.String |
getName() |
|
java.util.LinkedList<Relationship> |
getRelationships() |
|
Sex |
getSex() |
|
boolean |
isBirthDateApproximated() |
|
boolean |
isDeathDateApproximated() |
|
boolean |
isDoiVisited() |
|
boolean |
isVisited() |
|
void |
setBirthDateApproximated(boolean birthDateApproximated) |
|
void |
setCurrentDOI(float currentDOI) |
|
void |
setDate_of_birth(java.util.Date date_of_birth) |
|
void |
setDate_of_death(java.util.Date date_of_death) |
|
void |
setDeathDateApproximated(boolean deathDateApproximated) |
|
void |
setDoiVisited(boolean doiVisited) |
|
void |
setID(long ID) |
|
static void |
setIdCounter(long idCounter) |
|
void |
setName(java.lang.String name) |
|
void |
setSex(Sex sex) |
|
void |
setVisited(boolean visited) |
|
java.lang.String |
toString() |
public Person()
public Person(java.lang.String name, java.util.Date date_of_birth, java.util.Date date_of_death, Sex sex)
name
- the name of the persondate_of_birth
- birthdate of the persondate_of_death
- death date of the personsex
- the sex of the personpublic boolean isVisited()
public boolean isDoiVisited()
public void setDoiVisited(boolean doiVisited)
public void setVisited(boolean visited)
public java.util.LinkedList<Relationship> getRelationships()
public void addRelationship(Relationship relationship)
public static long getIDCounter()
public static long getIdCounter()
public static void setIdCounter(long idCounter)
public boolean isBirthDateApproximated()
public void setBirthDateApproximated(boolean birthDateApproximated)
public float getCurrentDOI()
public void setCurrentDOI(float currentDOI)
public boolean isDeathDateApproximated()
public void setDeathDateApproximated(boolean deathDateApproximated)
public long getID()
public void setID(long ID)
public java.lang.String getName()
public void setName(java.lang.String name)
public java.util.Date getDate_of_birth()
public void setDate_of_birth(java.util.Date date_of_birth)
public java.util.Date getDate_of_death()
public void setDate_of_death(java.util.Date date_of_death)
public Sex getSex()
public void setSex(Sex sex)
public java.lang.String toString()
toString
in class java.lang.Object