COMP 310
Fall 2012
|
Lec31: ChatApp
Interfaces...
|
 |
For reference, be sure to keep in mind the
design principles we discussed last time.
Considerations for today:
- To one person, in terms of RMI, what is another person (user) that the
first person can send a message (data packet) to?
- What is a chat room anyway?
- What does it mean to send a message to everyone in a chat room?
- Connection Use Case: What happens when we first attempt to
connect to another computer?
- What must be true about the target computer before it is connected
to?
- What must be known about the Registry on the target computer?
- What if the target computer has not connected to anyone else yet?
- How does this change our initial connection use case?
- What sorts of data packet types does everyone need to know about?
(One possible answer is much smaller than you think!)
A "comp310f12" package will be made
available as soon as possible.
Weekend advice:
- Copy the latest comp310f12.rmiChat
interfaces over to your own rmiChat package
and build your code off of that.
- Add/modify methods, interfaces as you think are necessary to make the
chat system work. Remember that any changes will have to be
eventually applied to everyone in the class!
- Post change and modification ideas to discussion board and send out
e-mail telling everyone to please look at your suggestions.
- Discuss on Monday and agreed upon changes will be committed to the
comp310f12.rmiChat package.
- The above process may need to be repeated.
- In the end, simply change the import statements from your
rmiChat package to the
comp310f12.rmiChat package.
© 2012 by Stephen Wong