Lecture 32: ChatApp Design

Ambient Temperature: 74.3oF

Concepts

  1. Dr. Wong’s talking points:
    1. 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.
    2. 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.
  2. Class Design Decisions
    1. None

Resources

  1. Lecture 32 webpage: http://www.clear.rice.edu/comp310/f12/lectures/lec32/
  2. Dr. Wong’s ProxyUser equality wrapper: http://www.clear.rice.edu/comp310/JavaResources/RMI/compare.html
  3. Completed HW08 public API with working chat room reference implementation: http://comp310.blogs.rice.edu/hw08-public-api/