edu.iu.iv.modeling.tarl.input.impl
Class DefaultTopicParameters

java.lang.Object
  |
  +--edu.iu.iv.modeling.tarl.input.impl.DefaultTopicParameters
All Implemented Interfaces:
TopicParameters

public class DefaultTopicParameters
extends java.lang.Object
implements TopicParameters

This class defines a default implementation of the TopicParametersInterface interface. It defines model parameters which are related to Topics and methods to access them. This class is directly used by the DefaultTopicManager class.

Author:
Jeegar T Maru
See Also:
DefaultTopicManager, DefaultExecuterParameters

Constructor Summary
DefaultTopicParameters()
          Creates a new default instance for TopicParameters.
 
Method Summary
 int getNumTopics()
          Returns the number of topics for the model
 void initializeDefault()
          Initializes the TopicParameters with default values
 void setNumTopics(int numTopics)
          Stores the number of topics for the model
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTopicParameters

public DefaultTopicParameters()
Creates a new default instance for TopicParameters. The default values are the values mentioned in the PNAS paper.

Method Detail

initializeDefault

public void initializeDefault()
Initializes the TopicParameters with default values

Specified by:
initializeDefault in interface TopicParameters

getNumTopics

public int getNumTopics()
Returns the number of topics for the model

Specified by:
getNumTopics in interface TopicParameters
Returns:
the number of topics for the model

setNumTopics

public void setNumTopics(int numTopics)
                  throws TarlException
Stores the number of topics for the model

Specified by:
setNumTopics in interface TopicParameters
Parameters:
numTopics - the number of topics for the Model
Throws:
TarlException - if the field is set with an invalid value