edu.pdx.cs399J.family
Interface RemotePerson

All Superinterfaces:
Remote

public interface RemotePerson
extends Remote

This interface models a Person that is accessed remotely using Java Remote Method Invocation.


Method Summary
 Date getDateOfBirth()
          Returns this person's date of birth
 Date getDateOfDeath()
          Returns this person's date of death
 String getDescription()
          Returns a string describing this person
 int getFatherId()
          Returns the id of this person's father
 String getFirstName()
          Returns this person's first name
 Person.Gender getGender()
          Returns this person's gender (either Person.MALE or Person.FEMALE.
 int getId()
          Returns this person's unique id
 String getLastName()
          Returns this person's last name
 String getMiddleName()
          Returns this person's middle name
 int getMotherId()
          Returns the id of this person's mother
 void setDateOfBirth(Date dob)
          Sets this person's date of birth
 void setDateOfDeath(Date dod)
          Sets this person's date of death
 void setFatherId(int fatherId)
          Sets the id of this person's father
 void setFirstName(String firstName)
          Sets this person's first name
 void setLastName(String lastName)
          Sets this person's last name
 void setMiddleName(String middleName)
          Sets this person's middle name
 void setMotherId(int motherId)
          Sets the id of this person's mother
 

Method Detail

getId

int getId()
          throws RemoteException
Returns this person's unique id

Throws:
RemoteException

getGender

Person.Gender getGender()
                        throws RemoteException
Returns this person's gender (either Person.MALE or Person.FEMALE.

Throws:
RemoteException

getFirstName

String getFirstName()
                    throws RemoteException
Returns this person's first name

Throws:
RemoteException

setFirstName

void setFirstName(String firstName)
                  throws RemoteException
Sets this person's first name

Throws:
RemoteException

getMiddleName

String getMiddleName()
                     throws RemoteException
Returns this person's middle name

Throws:
RemoteException

setMiddleName

void setMiddleName(String middleName)
                   throws RemoteException
Sets this person's middle name

Throws:
RemoteException

getLastName

String getLastName()
                   throws RemoteException
Returns this person's last name

Throws:
RemoteException

setLastName

void setLastName(String lastName)
                 throws RemoteException
Sets this person's last name

Throws:
RemoteException

getFatherId

int getFatherId()
                throws RemoteException
Returns the id of this person's father

Throws:
RemoteException

setFatherId

void setFatherId(int fatherId)
                 throws RemoteException
Sets the id of this person's father

Throws:
FamilyTreeException - The person with the given id cannot be found or the person with that id is not Person.MALE
RemoteException

getMotherId

int getMotherId()
                throws RemoteException
Returns the id of this person's mother

Throws:
RemoteException

setMotherId

void setMotherId(int motherId)
                 throws RemoteException
Sets the id of this person's mother

Throws:
FamilyTreeException - The person with the given id cannot be found or the person with that id is not Person.FEMALE
RemoteException

getDateOfBirth

Date getDateOfBirth()
                    throws RemoteException
Returns this person's date of birth

Throws:
RemoteException

setDateOfBirth

void setDateOfBirth(Date dob)
                    throws RemoteException
Sets this person's date of birth

Throws:
RemoteException

getDateOfDeath

Date getDateOfDeath()
                    throws RemoteException
Returns this person's date of death

Throws:
RemoteException

setDateOfDeath

void setDateOfDeath(Date dod)
                    throws RemoteException
Sets this person's date of death

Throws:
RemoteException

getDescription

String getDescription()
                      throws RemoteException
Returns a string describing this person

Throws:
RemoteException


Copyright © 2000-2009 Portland State University. All Rights Reserved.