org.apache.lucene.benchmark.byTask.utils

Class Algorithm

public class Algorithm extends Object

Test algorithm, as read from file
Constructor Summary
Algorithm(PerfRunData runData)
Read algorithm from file
Method Summary
voidexecute()
Execute this algorithm
ArrayListextractTasks()
Expert: for test purposes, return all tasks participating in this algorithm.
StringtoString()

Constructor Detail

Algorithm

public Algorithm(PerfRunData runData)
Read algorithm from file

Parameters: runData perf-run-data used at running the tasks.

Throws: Exception if errors while parsing the algorithm

Method Detail

execute

public void execute()
Execute this algorithm

Throws: Exception

extractTasks

public ArrayList extractTasks()
Expert: for test purposes, return all tasks participating in this algorithm.

Returns: all tasks participating in this algorithm.

toString

public String toString()
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.