import java.rmi.Remote; import java.rmi.RemoteException; import java.io.ObjectOutputStream; interface Agenda extends Remote { public Session login(String user, String pass) throws RemoteException, AgendaException; public void logout(Session ses) throws RemoteException; public PlageJournee plageDisponible(Session ses, Plage p, int duree) throws RemoteException, AgendaException; public void prendreRDV(Session ses, RendezVous rdv) throws RemoteException, AgendaException; public void modifierRDV(Session ses, RendezVous oldrdv, RendezVous newrdv) throws RemoteException, AgendaException; public RendezVous periodeVersRDV(Session ses, int sem, int jour, int heure) throws RemoteException, AgendaException; public void annulerRDV(Session ses, RendezVous rdv) throws RemoteException, AgendaException; public String afficher(Session ses, Plage p) throws RemoteException, AgendaException; public Semaine[] repliquer(Session ses) throws RemoteException, AgendaException; }