edu.iu.iv.modeling.tarl.main.impl
Class DefaultTarlExecuter

java.lang.Object
  |
  +--edu.iu.iv.modeling.tarl.main.impl.DefaultTarlExecuter
All Implemented Interfaces:
TarlExecuter

public class DefaultTarlExecuter
extends java.lang.Object
implements TarlExecuter

This class defines a default implementation of the TarlExecuterInterface. It utilizes the default implementations of the standard interfaces to achieve its cause.

Author:
Jeegar T Maru
See Also:
DefaultAuthorManager, DefaultPublicationManager, DefaultTopicManager, TarlExecuter

Constructor Summary
DefaultTarlExecuter()
          Creates a new instance of the TarlExecuter
 
Method Summary
 void cleanUpSystem()
          Cleans up the system.
 void initializeModel(ExecuterParameters executerParameters, java.io.File agingFunctionFile)
          Initializes itself with the corresponding model parameters
 void producePublications()
          Produces Publications for the current year.
 void terminateCurrentYear()
          Terminates the current year for the system.
 void writeOutputFiles(java.lang.String outputFolder)
          Writes the output Files to the file system
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTarlExecuter

public DefaultTarlExecuter()
Creates a new instance of the TarlExecuter

Method Detail

initializeModel

public void initializeModel(ExecuterParameters executerParameters,
                            java.io.File agingFunctionFile)
                     throws TarlException
Initializes itself with the corresponding model parameters

Specified by:
initializeModel in interface TarlExecuter
Parameters:
executerParameters - Specifies the executer parameters of the model
Throws:
TarlException - if the new publications cannot be initialized

producePublications

public void producePublications()
                         throws TarlException
Produces Publications for the current year.

Specified by:
producePublications in interface TarlExecuter
Throws:
TarlException - if the new publications cannot be initialized

terminateCurrentYear

public void terminateCurrentYear()
                          throws TarlException
Terminates the current year for the system.

Specified by:
terminateCurrentYear in interface TarlExecuter
Throws:
TarlException - if new authors cannot be instantiated

writeOutputFiles

public void writeOutputFiles(java.lang.String outputFolder)
Writes the output Files to the file system

Specified by:
writeOutputFiles in interface TarlExecuter
Parameters:
outputFolder - Specifies the name of the output folder

cleanUpSystem

public void cleanUpSystem()
Cleans up the system.

Specified by:
cleanUpSystem in interface TarlExecuter