Package edu.pdx.cs410J.family
Interface RemotePerson
- All Superinterfaces:
Remote
- All Known Implementing Classes:
RemotePersonImpl
This interface models a
Person
that is accessed remotely using Java Remote Method Invocation.-
Method Summary
Modifier and TypeMethodDescriptionReturns this person's date of birthReturns this person's date of deathReturns a string describing this personintReturns the id of this person's fatherReturns this person's first nameReturns this person's gender (eitherPerson.MALEorPerson.FEMALE.intgetId()Returns this person's unique idReturns this person's last nameReturns this person's middle nameintReturns the id of this person's mothervoidsetDateOfBirth(Date dob) Sets this person's date of birthvoidsetDateOfDeath(Date dod) Sets this person's date of deathvoidsetFatherId(int fatherId) Sets the id of this person's fathervoidsetFirstName(String firstName) Sets this person's first namevoidsetLastName(String lastName) Sets this person's last namevoidsetMiddleName(String middleName) Sets this person's middle namevoidsetMotherId(int motherId) Sets the id of this person's mother
-
Method Details
-
getId
Returns this person's unique id- Throws:
RemoteException
-
getGender
Returns this person's gender (eitherPerson.MALEorPerson.FEMALE.- Throws:
RemoteException
-
getFirstName
Returns this person's first name- Throws:
RemoteException
-
setFirstName
Sets this person's first name- Throws:
RemoteException
-
getMiddleName
Returns this person's middle name- Throws:
RemoteException
-
setMiddleName
Sets this person's middle name- Throws:
RemoteException
-
getLastName
Returns this person's last name- Throws:
RemoteException
-
setLastName
Sets this person's last name- Throws:
RemoteException
-
getFatherId
Returns the id of this person's father- Throws:
RemoteException
-
setFatherId
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 notPerson.MALERemoteException
-
getMotherId
Returns the id of this person's mother- Throws:
RemoteException
-
setMotherId
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 notPerson.FEMALERemoteException
-
getDateOfBirth
Returns this person's date of birth- Throws:
RemoteException
-
setDateOfBirth
Sets this person's date of birth- Throws:
RemoteException
-
getDateOfDeath
Returns this person's date of death- Throws:
RemoteException
-
setDateOfDeath
Sets this person's date of death- Throws:
RemoteException
-
getDescription
Returns a string describing this person- Throws:
RemoteException
-