summaryrefslogtreecommitdiff
path: root/src/mining/Miner.java
blob: e21da0912714873b0490284b20d254bbe360b92d (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
package mining;

import java.io.IOException;
import utils.Configuration;

/**
 * The main data mining object.
 */
public class Miner {
        
    // the main class to authenticate the application.
    private Authentication m_auth;
    
    // main miner to search data of users and tweets.
    private Search m_search;
    
    public Miner() throws IOException 
    {
        // Authentication such that the miner can request data.
        m_auth = new Authentication(Configuration.CONSUMER_KEY, Configuration.CONSUMER_SECRET);  
        
        // create a new search object.
        m_search = new Search(m_auth);
    }
}