Methods Summary |
---|
public Person | getChildAt(int i)
return (Person)children.elementAt(i);
|
public int | getChildCount() return children.size();
|
public Person | getFather() return father;
|
public int | getIndexOfChild(Person kid)
return children.indexOf(kid);
|
public Person | getMother() return mother;
|
public java.lang.String | getName() return name;
|
public static void | linkFamily(Person pa, Person ma, Person[] kids)Link together all members of a family.
int len = kids.length;
Person kid = null;
for (int i = 0; i < len; i++) {
kid = kids[i];
pa.children.addElement(kid);
ma.children.addElement(kid);
kid.father = pa;
kid.mother = ma;
}
|
public java.lang.String | toString() return name;
|