|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.leeds.ccg.andyt.projects.genesis.society.organisations.Family
public class Family
A family is individual to a person. It is made up of indivuals and collections of people with special roles or relationships to the individual. A family includes parents. These may also be guardians, but guardians are represented separately and these may change, but parents do not. There may be siblings who can share all, one or no parents or guardians. There may also be children who reciprocate the parent relationship. Often these are dependents, although dependents are represented separately. (Every guardian does not necessarily have the same set of dependents.) Next of kin relationships for the individual is stored here. Spouse relationship is also stored here (this is reciprocal). Family history is stored with dates of changes in the relationships. Every person has a family even if it is not defined.
Constructor Summary | |
---|---|
Family(Person _Person)
|
Method Summary | |
---|---|
void |
_Add_Guardian(Person _Guardian)
After an individuals family is initilised, a guardian may be added during simulation. |
void |
_Add_Parent(Person _Parent)
Parents are not necessarily guardians. |
void |
_Add_Sibling(Person _Sibling)
Once a sibling, always a sibling. |
void |
_Add_Spouse(Person _Spouse)
|
void |
_Remove_Guardian(Person _Guardian)
A guardian may be removed during simulation. |
void |
_Remove_Spouse(Person _Spouse)
This is like divorce, but that could be more complicated? |
java.util.HashSet |
get_Children()
|
java.util.HashSet |
get_Dependents()
|
java.util.HashSet |
get_Guardians()
|
Person |
get_NextOfKin()
|
int |
get_Order()
|
java.util.HashSet |
get_Parents()
|
java.util.HashSet |
get_People()
|
java.util.HashSet |
get_Siblings()
|
Person |
get_Spouse()
|
void |
set_Children(java.util.HashSet _Children)
|
void |
set_Dependents(java.util.HashSet _Dependents)
|
void |
set_Guardians(java.util.HashSet _Guardians)
|
void |
set_NextOfKin(Person _NextOfKin)
|
void |
set_Order(int _Order)
|
void |
set_Parents(java.util.HashSet _Parents)
|
void |
set_Siblings(java.util.HashSet _Siblings)
|
void |
set_Spouse(Person _Spouse)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Family(Person _Person)
Method Detail |
---|
public void _Add_Parent(Person _Parent)
public void _Add_Sibling(Person _Sibling)
_Sibling
- public void _Add_Guardian(Person _Guardian)
_Guardian
- public void _Remove_Guardian(Person _Guardian)
_Guardian
- public void _Add_Spouse(Person _Spouse)
_Spouse
- public void _Remove_Spouse(Person _Spouse)
_Spouse
- public java.lang.String toString()
toString
in class java.lang.Object
public java.util.HashSet get_People()
public java.util.HashSet get_Parents()
public void set_Parents(java.util.HashSet _Parents)
public java.util.HashSet get_Guardians()
public void set_Guardians(java.util.HashSet _Guardians)
public java.util.HashSet get_Siblings()
public void set_Siblings(java.util.HashSet _Siblings)
public java.util.HashSet get_Dependents()
public void set_Dependents(java.util.HashSet _Dependents)
public java.util.HashSet get_Children()
public void set_Children(java.util.HashSet _Children)
public Person get_NextOfKin()
public void set_NextOfKin(Person _NextOfKin)
public Person get_Spouse()
public void set_Spouse(Person _Spouse)
public int get_Order()
public void set_Order(int _Order)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |