edu.iu.iv.modeling.tarl.util.impl
Class DefaultYearInformation

java.lang.Object
  |
  +--edu.iu.iv.modeling.tarl.util.impl.DefaultYearInformation
All Implemented Interfaces:
YearInformation

public class DefaultYearInformation
extends java.lang.Object
implements YearInformation

This class defines a default implementation of the YearInformationInterface interface. It defines model parameters such as start year and end year which are used mainly by the TarlHelper and PublicationManager.

Author:
Jeegar T Maru
See Also:
PublicationManager, TarlHelper

Constructor Summary
DefaultYearInformation()
          Creates a new instance for a YearInformation.
 
Method Summary
 int getEndYear()
          Returns the end year of the model
 int getStartYear()
          Returns the start year of the model
 void initializeDefault()
          Initializes the YearInformation of the model with default values
 void setEndYear(int endYear)
          Stores the end year of the model
 void setStartYear(int startYear)
          Stores the start year of the model
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultYearInformation

public DefaultYearInformation()
Creates a new instance for a YearInformation. It initializes the parameters using default values.

Method Detail

initializeDefault

public void initializeDefault()
Initializes the YearInformation of the model with default values

Specified by:
initializeDefault in interface YearInformation

getStartYear

public int getStartYear()
Returns the start year of the model

Specified by:
getStartYear in interface YearInformation
Returns:
the start year of the model

getEndYear

public int getEndYear()
Returns the end year of the model

Specified by:
getEndYear in interface YearInformation
Returns:
the end year of the model

setStartYear

public void setStartYear(int startYear)
Stores the start year of the model

Specified by:
setStartYear in interface YearInformation
Parameters:
startYear - the start year of the model

setEndYear

public void setEndYear(int endYear)
Stores the end year of the model

Specified by:
setEndYear in interface YearInformation
Parameters:
endYear - the end year of the model