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 personint
Returns the id of this person's fatherReturns this person's first nameReturns this person's gender (eitherPerson.MALE
orPerson.FEMALE
.int
getId()
Returns this person's unique idReturns this person's last nameReturns this person's middle nameint
Returns the id of this person's mothervoid
setDateOfBirth
(Date dob) Sets this person's date of birthvoid
setDateOfDeath
(Date dod) Sets this person's date of deathvoid
setFatherId
(int fatherId) Sets the id of this person's fathervoid
setFirstName
(String firstName) Sets this person's first namevoid
setLastName
(String lastName) Sets this person's last namevoid
setMiddleName
(String middleName) Sets this person's middle namevoid
setMotherId
(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.MALE
orPerson.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.MALE
RemoteException
-
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.FEMALE
RemoteException
-
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
-