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

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

public class DefaultTarlHelper
extends java.lang.Object
implements TarlHelper

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

Author:
Jeegar T Maru
See Also:
TarlExecuter, TarlHelper

Constructor Summary
DefaultTarlHelper()
          Creates a new instance of the TarlHelper
 
Method Summary
 void cleanUpSystem()
          Cleans up the system.
 void initializeModel(HelperParameters helperParameters, java.io.File agingFunctionFile)
          Initializes the Tarl model
 void runModel()
          Runs the Tarl model
 void writeOutputFiles(java.lang.String outputFolder)
          Stores the output of the model on the file system.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTarlHelper

public DefaultTarlHelper()
Creates a new instance of the TarlHelper

Method Detail

initializeModel

public void initializeModel(HelperParameters helperParameters,
                            java.io.File agingFunctionFile)
                     throws TarlException
Initializes the Tarl model

Specified by:
initializeModel in interface TarlHelper
Parameters:
helperParameters - Specifies the model parameters related to the module TarlHelper
Throws:
TarlException - if the model constraints are violated

runModel

public void runModel()
              throws TarlException
Runs the Tarl model

Specified by:
runModel in interface TarlHelper
Throws:
TarlException - if the model constraints are violated

writeOutputFiles

public void writeOutputFiles(java.lang.String outputFolder)
Stores the output of the model on the file system. It mainly stores the 3 Pajek files for the Cocitation network, Coauthorship network and the Publication-Author network. It also stores some data files which includes complete information about the running of the model.

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

cleanUpSystem

public void cleanUpSystem()
Cleans up the system.

Specified by:
cleanUpSystem in interface TarlHelper