001package edu.pdx.cs410J.family;
002
003import java.rmi.*;
004import java.util.*;
005
006/**
007 * This interface models a {@link edu.pdx.cs410J.family.Marriage}
008 * that is accessed remotely using Java Remote Method Invocation.
009 */
010public interface RemoteMarriage extends Remote {
011
012  /**
013   * Returns the id of the husband in the marriage
014   */
015  public int getHusbandId() throws RemoteException;
016
017  /**
018   * Returns the id of the wife in the marriage
019   */
020  public int getWifeId() throws RemoteException;
021
022  /**
023   * Returns the date on which the husband and wife were married
024   */
025  public Date getDate() throws RemoteException;
026
027  /**
028   * Sets the date on which the husband and wife were married
029   */
030  public void setDate(Date date) throws RemoteException;
031
032  /**
033   * Returns the location at which the husband and wife were married
034   */
035  public String getLocation() throws RemoteException;
036
037  /**
038   * Sets the location at which the husband and wife were married
039   */
040  public void setLocation(String location) throws RemoteException;
041
042  /**
043   * Returns a textual description of this marriage
044   */
045  public String getDescription() throws RemoteException;
046
047}