Lecture 32: ChatApp Design
Ambient Temperature: 74.3oF
Concepts
- Dr. Wong’s talking points:
- Mini-MVCs: Consider making an MVC for a “chat room,” and then having your ChatApp add those MVCs as you join chat rooms. This could be a helpful delegation of tasks in your design.
- Equality of Stubs: When you call .equals() on a Stub, there’s no guarantee that it will use the .equals() provided in the actual object that the stub points to. This is because the Stub is also a Java Object, and its .equals() will get used instead. Dr. Wong suggests wrapping all received stubs in a class that properly implement comparison methods (compareTo, equals, and hashCode) based on the available data in the stub.
- Class Design Decisions
- None
Resources
- Lecture 32 webpage: http://www.clear.rice.edu/comp310/f12/lectures/lec32/
- Dr. Wong’s ProxyUser equality wrapper: http://www.clear.rice.edu/comp310/JavaResources/RMI/compare.html
- Completed HW08 public API with working chat room reference implementation: https://comp310.blogs.rice.edu/hw08-public-api/