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

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

public class DefaultExecuterParameters
extends java.lang.Object
implements ExecuterParameters

This class defines a default implementation of the ExecuterParametersInterface interface. It defines model parameters which are needed by the TarlExecuter and methods to access them.

Author:
Jeegar T Maru
See Also:
DefaultPublicationParameters, DefaultAuthorParameters, DefaultTopicParameters, DefaultTarlExecuter

Constructor Summary
DefaultExecuterParameters()
          Creates a new default instance of an ExecuterParameters.
 
Method Summary
 AuthorParameters getAuthorParameters()
          Returns the AuthorParameters for the model
 int getNumAuthorsAtStart()
          Returns the number of authors at the start of the Model
 int getNumCreationAuthors()
          Returns the number of authors to be created in numCreationYears years
 int getNumCreationYears()
          Returns the number of years in which creation is supposed to take place
 int getNumPublicationsAtStart()
          Returns the number of publications at the start of the Model
 PublicationParameters getPublicationParameters()
          Returns the PublicationParameters for the model
 TopicParameters getTopicParameters()
          Returns the TopicParameters for the model
 YearInformation getYearInformation()
          Returns the YearInformation for the model
 void initializeDefault()
          Initializes the ExecuterParameters with default values
 void setAuthorParameters(AuthorParameters authorParameters)
          Stores the AuthorParameters for the model
 void setNumAuthorsAtStart(int numAuthorsAtStart)
          Stores the number of authors at the start of the Model
 void setNumCreationAuthors(int numCreationAuthors)
          Stores the number of authors to be created in numCreationYears years
 void setNumCreationYears(int numCreationYears)
          Stores the number of years in which creation is supposed to take place
 void setNumPublicationsAtStart(int numPublicationsAtStart)
          Stores the number of publications at the start of the Model
 void setPublicationParameters(PublicationParameters publicationParameters)
          Stores the PublicationParameters for the model
 void setTopicParameters(TopicParameters topicParameters)
          Stores the TopicParameters for the model
 void setYearInformation(YearInformation yearInformation)
          Stores the YearInformation for the model
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultExecuterParameters

public DefaultExecuterParameters()
Creates a new default instance of an ExecuterParameters. It initializes the parameters using default values as described in the PNAS paper.

Method Detail

initializeDefault

public void initializeDefault()
Initializes the ExecuterParameters with default values

Specified by:
initializeDefault in interface ExecuterParameters

getNumAuthorsAtStart

public int getNumAuthorsAtStart()
Returns the number of authors at the start of the Model

Specified by:
getNumAuthorsAtStart in interface ExecuterParameters
Returns:
the number of authors at the start of the Model

getNumPublicationsAtStart

public int getNumPublicationsAtStart()
Returns the number of publications at the start of the Model

Specified by:
getNumPublicationsAtStart in interface ExecuterParameters
Returns:
the number of publications at the start of the Model

getNumCreationAuthors

public int getNumCreationAuthors()
Returns the number of authors to be created in numCreationYears years

Specified by:
getNumCreationAuthors in interface ExecuterParameters
Returns:
the number of authors to be created in numCreationYears years

getNumCreationYears

public int getNumCreationYears()
Returns the number of years in which creation is supposed to take place

Specified by:
getNumCreationYears in interface ExecuterParameters
Returns:
the number of years in which creation is supposed to take place

getYearInformation

public YearInformation getYearInformation()
Returns the YearInformation for the model

Specified by:
getYearInformation in interface ExecuterParameters
Returns:
the year information for the model

getPublicationParameters

public PublicationParameters getPublicationParameters()
Returns the PublicationParameters for the model

Specified by:
getPublicationParameters in interface ExecuterParameters
Returns:
the publication parameters for the model

getAuthorParameters

public AuthorParameters getAuthorParameters()
Returns the AuthorParameters for the model

Specified by:
getAuthorParameters in interface ExecuterParameters
Returns:
the author parameters for the model

getTopicParameters

public TopicParameters getTopicParameters()
Returns the TopicParameters for the model

Specified by:
getTopicParameters in interface ExecuterParameters
Returns:
the topic parameters for the model

setNumAuthorsAtStart

public void setNumAuthorsAtStart(int numAuthorsAtStart)
                          throws TarlException
Stores the number of authors at the start of the Model

Specified by:
setNumAuthorsAtStart in interface ExecuterParameters
Parameters:
numAuthorsAtStart - the number of authors at the start of the Model
Throws:
TarlException - if the field is set with an invalid value

setNumPublicationsAtStart

public void setNumPublicationsAtStart(int numPublicationsAtStart)
                               throws TarlException
Stores the number of publications at the start of the Model

Specified by:
setNumPublicationsAtStart in interface ExecuterParameters
Parameters:
numPublicationsAtStart - the number of publications at the start of the Model
Throws:
TarlException - if the field is set with an invalid value

setNumCreationAuthors

public void setNumCreationAuthors(int numCreationAuthors)
                           throws TarlException
Stores the number of authors to be created in numCreationYears years

Specified by:
setNumCreationAuthors in interface ExecuterParameters
Parameters:
numCreationAuthors - the number of authors to be created in numCreationYears years
Throws:
TarlException - if the field is set with an invalid value

setNumCreationYears

public void setNumCreationYears(int numCreationYears)
                         throws TarlException
Stores the number of years in which creation is supposed to take place

Specified by:
setNumCreationYears in interface ExecuterParameters
Parameters:
numCreationYears - the number of years in which creation is supposed to take place
Throws:
TarlException - if the field is set with an invalid value

setYearInformation

public void setYearInformation(YearInformation yearInformation)
Stores the YearInformation for the model

Parameters:
yearInformation - Specifies the year information for the model

setPublicationParameters

public void setPublicationParameters(PublicationParameters publicationParameters)
Stores the PublicationParameters for the model

Parameters:
publicationParameters - Specifies the publicationParameters for the model

setAuthorParameters

public void setAuthorParameters(AuthorParameters authorParameters)
Stores the AuthorParameters for the model

Parameters:
authorParameters - Specifies the authorParameters for the model

setTopicParameters

public void setTopicParameters(TopicParameters topicParameters)
Stores the TopicParameters for the model

Parameters:
topicParameters - Specifies the topicParameters for the model