Package application.model.search.ocgar2
Class AgarSearch
java.lang.Object
application.model.search.SearchProgram
application.model.search.ocgar2.AgarSearch
public class AgarSearch extends SearchProgram
Implements CAViewer's agar search program - OCAgar2
-
Field Summary
Fields inherited from class application.model.search.SearchProgram
executor, numSearched, searchParameters, searchResults, stop
-
Constructor Summary
Constructors Constructor Description AgarSearch(AgarSearchParameters parameters)
Constructs the agar search program with the provided parameters -
Method Summary
Modifier and Type Method Description void
search(int num)
Search for something num timesboolean
writeToFile(java.io.File file)
Writes the search results to a fileMethods inherited from class application.model.search.SearchProgram
add, add, getNumSearched, getSearchParameters, getSearchResults, searchThreaded, terminateSearch
-
Constructor Details
-
AgarSearch
Constructs the agar search program with the provided parameters- Parameters:
parameters
- The parameters of the agar search program
-
-
Method Details
-
search
public void search(int num)Description copied from class:SearchProgram
Search for something num times- Specified by:
search
in classSearchProgram
- Parameters:
num
- The number of times to search for something
-
writeToFile
public boolean writeToFile(java.io.File file)Description copied from class:SearchProgram
Writes the search results to a file- Specified by:
writeToFile
in classSearchProgram
- Parameters:
file
- The file to write the search results to- Returns:
- Returns true if successful, false if unsuccessful
-