edu.iu.iv.modeling.tarl
Class TarlAlgorithm

java.lang.Object
  |
  +--edu.iu.iv.modeling.tarl.TarlAlgorithm
All Implemented Interfaces:
Algorithm

public class TarlAlgorithm
extends java.lang.Object
implements Algorithm

This class implements the Algorithm interface for the TARL model. It defines an execute method which reads the input script file name from the user with the help of a File Chooser.

Author:
Jeegar T Maru
See Also:
TarlMainInterface, Algorithm

Constructor Summary
TarlAlgorithm()
           
 
Method Summary
 boolean execute()
          Runs the algorithm.
 void setAgingFunctionFile(java.io.File file)
          Set the file for the aging function.
 void setInputScriptFile(java.io.File file)
          Set the input script file with which to initialize TARL
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TarlAlgorithm

public TarlAlgorithm()
Method Detail

setInputScriptFile

public void setInputScriptFile(java.io.File file)
Set the input script file with which to initialize TARL

Parameters:
file - The input script file.

setAgingFunctionFile

public void setAgingFunctionFile(java.io.File file)
Set the file for the aging function.

Parameters:
file - The aging function file.

execute

public boolean execute()
Description copied from interface: Algorithm
Runs the algorithm.

Specified by:
execute in interface Algorithm
Returns:
true if the algorithm ran successfully, false otherwise.
See Also:
Algorithm.execute()