-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCongressServiceImpl.java
31 lines (23 loc) · 1.01 KB
/
CongressServiceImpl.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import java.rmi.RemoteException;
import java.rmi.server.RemoteServer;
public class CongressServiceImpl extends RemoteServer implements CongressService {
Congress congressObj;
public CongressServiceImpl () throws RemoteException {
congressObj = new Congress(3, 12, 5);
}
@Override
public boolean registerSpeaker(String SpeakerName, int day, int sessionNumber, int participationSlot) throws RemoteException {
return congressObj.registerSpeaker(SpeakerName, day, sessionNumber, participationSlot);
}
@Override
public boolean registerSpeakerOnAnyParticipationSlot(String SpeakerName, int day, int sessionNumber) throws RemoteException {
return congressObj.registerSpeaker(SpeakerName, day, sessionNumber);
}
@Override
public boolean registerSpeakerOnAnySession(String SpeakerName, int day) throws RemoteException {
return congressObj.registerSpeaker(SpeakerName, day);
}
public String getSchedule() {
return congressObj.toString();
}
}