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

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

public class DefaultAuthorParameters
extends java.lang.Object
implements AuthorParameters

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

Author:
Jeegar T Maru
See Also:
DefaultAuthorManager, DefaultExecuterParameters

Constructor Summary
DefaultAuthorParameters()
          Creates a new default instance for PublicationParameters.
 
Method Summary
 int getMaximumAge()
          Returns the maximum age of the authors
 int getNumCoAuthors()
          Returns the number of Co Authors for each Author
 int getNumDeactivationAuthors()
          Returns the number of authors to be deactivated in numDeactivationYears years
 int getNumDeactivationYears()
          Returns the number of years in which deactivation is supposed to take place
 void initializeDefault()
          Initializes the AuthorParameters with default values
 void setMaximumAge(int maximumAge)
          Stores the maximum age of the authors
 void setNumCoAuthors(int numCoAuthors)
          Stores the number of co-authors for each author
 void setNumDeactivationAuthors(int numDeactivationAuthors)
          Stores the number of authors to be deactivated in numDeactivationYears years
 void setNumDeactivationYears(int numDeactivationYears)
          Stores the number of years in which deactivation is supposed to take place
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAuthorParameters

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

Method Detail

initializeDefault

public void initializeDefault()
Initializes the AuthorParameters with default values

Specified by:
initializeDefault in interface AuthorParameters

getMaximumAge

public int getMaximumAge()
Returns the maximum age of the authors

Specified by:
getMaximumAge in interface AuthorParameters
Returns:
the maximum age of the authors

getNumDeactivationAuthors

public int getNumDeactivationAuthors()
Returns the number of authors to be deactivated in numDeactivationYears years

Specified by:
getNumDeactivationAuthors in interface AuthorParameters
Returns:
the number of authors to be deactivate in numDeactivationYears years

getNumDeactivationYears

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

Specified by:
getNumDeactivationYears in interface AuthorParameters
Returns:
the number of years in which deactivation is supposed to take place

getNumCoAuthors

public int getNumCoAuthors()
Returns the number of Co Authors for each Author

Specified by:
getNumCoAuthors in interface AuthorParameters
Returns:
the number of co-authors

setMaximumAge

public void setMaximumAge(int maximumAge)
                   throws TarlException
Stores the maximum age of the authors

Specified by:
setMaximumAge in interface AuthorParameters
Parameters:
maximumAge - the maximum age of the authors
Throws:
TarlException - if the field is set with an invalid value

setNumDeactivationAuthors

public void setNumDeactivationAuthors(int numDeactivationAuthors)
                               throws TarlException
Stores the number of authors to be deactivated in numDeactivationYears years

Specified by:
setNumDeactivationAuthors in interface AuthorParameters
Parameters:
numDeactivationAuthors - the number of authors to be deactivate in numDeactivationYears years
Throws:
TarlException - if the field is set with an invalid value

setNumDeactivationYears

public void setNumDeactivationYears(int numDeactivationYears)
                             throws TarlException
Stores the number of years in which deactivation is supposed to take place

Specified by:
setNumDeactivationYears in interface AuthorParameters
Parameters:
numDeactivationYears - the number of years in which deactivation is supposed to take place
Throws:
TarlException - if the field is set with an invalid value

setNumCoAuthors

public void setNumCoAuthors(int numCoAuthors)
                     throws TarlException
Stores the number of co-authors for each author

Specified by:
setNumCoAuthors in interface AuthorParameters
Parameters:
numCoAuthors - the number of co-authors for each author
Throws:
TarlException - if the field is set with an invalid value