diff options
author | Maurice Laveaux <m.laveaux@student.tue.nl> | 2014-05-22 09:23:47 +0200 |
---|---|---|
committer | Maurice Laveaux <m.laveaux@student.tue.nl> | 2014-05-22 09:23:47 +0200 |
commit | 711bbb0070e36164fcbac06de5432570efc5c7a0 (patch) | |
tree | 6d056463da09d145a97f1efe48107708d1369e73 /src | |
parent | 0c07b1d1a83ab20b4c753c40ea8048f73b3e5745 (diff) | |
download | TwitterDataAnalytics-711bbb0070e36164fcbac06de5432570efc5c7a0.tar.gz |
Added the Search interface.
Diffstat (limited to 'src')
-rw-r--r-- | src/mining/Search.java | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/src/mining/Search.java b/src/mining/Search.java new file mode 100644 index 0000000..505e156 --- /dev/null +++ b/src/mining/Search.java @@ -0,0 +1,49 @@ +package mining; + +import provider.ExceptionListener; +import provider.ResultListener; + +/** + * An interface that defines the searching for tweets of a given user. + * + * @author Maurice Laveaux + */ +public interface Search { + + /** + * Search for all history (up to 3200) tweets for a specific user. + * + * @param screenName The profile to search tweets from. + * @param numberOfTweets The maximum amount of tweets to search. + */ + public void search(String screenName, int numberOfTweets); + + /** + * Closes the threads for searching and saves a tempfile. + */ + public void close(); + + /** + * Save the current work queue to a specific file. + * + * @param filename The filename to save to. + */ + public void save(String filename); + + /** + * Load the work queue of a specific file. + * + * @param filename The filename to load from. + */ + public void load(String filename); + + /** + * @param listener The listener for resulting tweets. + */ + public void setResultListener(ResultListener listener); + + /** + * @param listener The listener for exceptions. + */ + public void setExceptionListener(ExceptionListener listener); +} |