textminer.ds
Class FinancialDataSet

java.lang.Object
  |
  +--java.util.AbstractMap
        |
        +--java.util.HashMap
              |
              +--textminer.ds.FinancialDataSet
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public final class FinancialDataSet
extends java.util.HashMap

The FinancialDataSet is the abstraction of a collection of financial news articles.

It is responsible for maintaining a set of financial news articles which belong to the same physical file.

Since:
0.1
Version:
TextMiner 1.1
Author:
Young-Woo Seo (ywseo@cs.cmu.edu)
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.util.Map
java.util.Map.Entry
 
Constructor Summary
FinancialDataSet()
          Constructor of FinancailDataSet
 
Method Summary
 FinancialData find(java.lang.String id)
          Find a news article associated with the specified id
 void insert(java.lang.String id, java.lang.String title, java.lang.String date, java.lang.String source, java.lang.String url, java.lang.String company, java.lang.String body, java.lang.String label)
          Insert the specified element to this FinancialDataSet
 void printAll()
          Print all elements of this FinancialDataSet
 void removeAll()
          Remove all elements from this FinancialDataSet
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

FinancialDataSet

public FinancialDataSet()
Constructor of FinancailDataSet

Method Detail

removeAll

public void removeAll()
Remove all elements from this FinancialDataSet


insert

public void insert(java.lang.String id,
                   java.lang.String title,
                   java.lang.String date,
                   java.lang.String source,
                   java.lang.String url,
                   java.lang.String company,
                   java.lang.String body,
                   java.lang.String label)
Insert the specified element to this FinancialDataSet

Parameters:
id - identifier of a news aritlce to be inserted
title - title of a news article to be inserted
date - published date of a news article to be inserted
source - news provider of a news article to be inserted
company - company that a news article to be inserted mainly discussed about
body - content body of a news article to be inserted
label - target class of a news article to be inserted

find

public FinancialData find(java.lang.String id)
Find a news article associated with the specified id

Parameters:
id - identifier of a news article to be returned
Returns:
news article

printAll

public void printAll()
Print all elements of this FinancialDataSet