source: trunk/src_apollo/org/apollo/mvc/Subject.java@ 315

Last change on this file since 315 was 315, checked in by bjn8, 16 years ago

Apollo spin-off added

File size: 478 bytes
Line 
1package org.apollo.mvc;
2
3/**
4 * A Subject is any object that wants to notify other objects of
5 * changes in its state.
6 *@author Brook Novak
7 */
8public interface Subject {
9
10 /**
11 * Adds an observer to the set of Observers for this subject.
12 * @param ob the Observer to be added.
13 */
14 void addObserver(Observer ob);
15
16 /**
17 * Removes an Observer from the set of Observers for this subject.
18 * @param ob the Observer to be removed.
19 */
20 void removeObserver(Observer ob);
21
22}
Note: See TracBrowser for help on using the repository browser.