|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--edu.iu.iv.modeling.tarl.topic.impl.DefaultTopicDatabase
This class defines a default implementation of TopicDatabaseInterface. It uses an instance of DefaultTopicGroup to store all the topics.
DefaultTopic,
DefaultTopicGroup| Constructor Summary | |
DefaultTopicDatabase()
Creates a new instance for a TopicDatabase |
|
| Method Summary | |
void |
addTopic()
Adds a Topic to the list |
Topic |
getNextTopic()
Returns the next Topic in the database |
TopicGroup |
getTopics()
Returns the list of Topics in the Database |
boolean |
hasMoreTopics()
Tests whether the Database has more Topics for iteration |
void |
removeAll()
Removes all the Topics from the database |
void |
resetSearchIndex()
Resets the Search Index so the Database can be searched iteratively |
int |
size()
Returns the number of Topics in the Database |
java.lang.String |
toString()
Returns the details of the TopicDatabase as a String |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DefaultTopicDatabase()
TopicDatabase
| Method Detail |
public void addTopic()
Topic to the list
addTopic in interface TopicDatabasepublic void removeAll()
Topics from the database
removeAll in interface TopicDatabasepublic TopicGroup getTopics()
Topics in the Database
getTopics in interface TopicDatabasepublic int size()
Topics in the Database
size in interface TopicDatabasepublic void resetSearchIndex()
resetSearchIndex in interface TopicDatabasepublic boolean hasMoreTopics()
Topics for iteration
hasMoreTopics in interface TopicDatabase
public Topic getNextTopic()
throws java.util.NoSuchElementException
Topic in the database
getNextTopic in interface TopicDatabasejava.util.NoSuchElementException - if the iteration has no more topicspublic java.lang.String toString()
TopicDatabase as a String
toString in class java.lang.Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||