|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface describes some characteristics of the relationships between relatives of a familly. The goal was to have a simple model supporting various kind of relationships (1-1, 1-n, n-n) and a wide range of field types.
Method Summary | |
double |
getAverageAnnualVisits()
Get the relative's average of annual visits to other relatives |
java.util.Date |
getBirthdate()
Get the relative's birthdate |
java.lang.String |
getFullName()
Get the relative's name |
boolean |
getIsMale()
Get the relative's sex |
int |
getLuckyNumber()
Get the relative's lucky number |
java.util.Set |
getSibblings()
Get all sibblings (brothers and sisters) for this relative. |
RelativeLocal |
getSpouse()
Get the (unique) spouse for this relative. |
java.util.Set |
getVisitedRelatives()
Get all relatives that has been visited by this relative. |
void |
setAverageAnnualVisits(double averageAnnualVisits)
Set the relative's average of annual visits to other relatives |
void |
setBirthdate(java.util.Date birthdate)
Set the relative's birthdate |
void |
setFullName(java.lang.String name)
Set the relative's name |
void |
setIsMale(boolean isMale)
Set the relative's sex |
void |
setLuckyNumber(int luckyNumber)
Set the relative's age |
void |
setSibblings(java.util.Set sibblings)
Set the sibblings for this relative |
void |
setSpouse(RelativeLocal spouse)
Set the spouse for this relative |
void |
setVisitedRelatives(java.util.Set sibblings)
Set the relatives that has been visited by this relative. |
Method Detail |
public java.lang.String getFullName()
public void setFullName(java.lang.String name)
public boolean getIsMale()
public void setIsMale(boolean isMale)
public int getLuckyNumber()
public void setLuckyNumber(int luckyNumber)
public double getAverageAnnualVisits()
public void setAverageAnnualVisits(double averageAnnualVisits)
public java.util.Date getBirthdate()
public void setBirthdate(java.util.Date birthdate)
public RelativeLocal getSpouse()
public void setSpouse(RelativeLocal spouse)
public java.util.Set getSibblings()
public void setSibblings(java.util.Set sibblings)
public java.util.Set getVisitedRelatives()
public void setVisitedRelatives(java.util.Set sibblings)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |