summaryrefslogtreecommitdiff
path: root/src/mining/Search.java
blob: 505e156e6aa9bf2ea991e3c52240e60aa64f0d64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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);
}