edu.iu.iv.modeling.tarl.topic.impl
Class DefaultTopicManager

java.lang.Object
  |
  +--edu.iu.iv.modeling.tarl.topic.impl.DefaultTopicManager
All Implemented Interfaces:
TopicManager

public class DefaultTopicManager
extends java.lang.Object
implements TopicManager

This class defines a default implementation of the TopicManagerInterface. It uses the default implementations of the standard interfaces for its cause.

Author:
Jeegar T Maru
See Also:
DefaultTopicDatabase, TopicManager

Constructor Summary
DefaultTopicManager()
          Creates a new instance of the TopicManager
 
Method Summary
 void cleanUpTopic()
          Removes every Topic from its database
 Topic getRandomTopic()
          Returns a random Topic from the database
 TopicGroup getTopics()
          Returns the group of all the Topics in the system
 void initializeTopics(TopicParameters topicParameters)
          Initializes the Topic environment to enable various operations on the Topics.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTopicManager

public DefaultTopicManager()
Creates a new instance of the TopicManager

Method Detail

initializeTopics

public void initializeTopics(TopicParameters topicParameters)
Initializes the Topic environment to enable various operations on the Topics. Creates new topics based on the model parameters of the topic environment.

Specified by:
initializeTopics in interface TopicManager
Parameters:
topicParameters - Specifies the model parameters related to topics

getRandomTopic

public Topic getRandomTopic()
Returns a random Topic from the database

Specified by:
getRandomTopic in interface TopicManager
Returns:
a random topic

getTopics

public TopicGroup getTopics()
Returns the group of all the Topics in the system

Specified by:
getTopics in interface TopicManager
Returns:
Group of all the topics

cleanUpTopic

public void cleanUpTopic()
Removes every Topic from its database

Specified by:
cleanUpTopic in interface TopicManager