|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface defines a Topic by defining the necessary functions it should support. Each Author and Publication possess a Topic as an attribute.
All Topics should also support an identification tag that the TopicDatabase provides to enable other classes to distinguish between different Topics.
TopicDatabase| Method Summary | |
boolean |
equals(Topic topicInterface)
Tests whether the current Topic is the same as the specified one. |
int |
getId()
Returns the unique identifier assigned by the TopicDatabaseInterface of the Topic as an integer |
void |
initialize(int id)
Initialize the Topic with the given integer as the unique identifier. |
| Method Detail |
public int getId()
TopicDatabaseInterface of the Topic as an integer
public void initialize(int id)
Topic with the given integer as the unique identifier. This method should be called by a TopicDatabaseInterface just after creating a new Topic.
id - Specifies the unique identifier for the topicpublic boolean equals(Topic topicInterface)
Topic is the same as the specified one. This test should be based on the identification tag that the TopicDatabase has assigned to both the Topics.
topicInterface - Specifies the topic to be equated against
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||