edu.cmu.ri.createlab.rss.readers
Class EarthquakeReader

java.lang.Object
  extended by edu.cmu.ri.createlab.rss.RSSReader
      extended by edu.cmu.ri.createlab.rss.readers.EarthquakeReader

public class EarthquakeReader
extends RSSReader

EarthquakeReader accesses USGS recent earthquake data.

EarthquakeReader.java Description: Reader class which utilizes the ROME library to read RSS feed information from the USGS earthquake site.

Author:
Daragh Egan

Constructor Summary
EarthquakeReader()
          Construct EarthquakeReader
 
Method Summary
 String getLocation()
          return location of quake at index
 double getMagnitude()
           
 int getQuakeCount()
           
 void setIndex(int in)
           
 void updateQuakeFeed()
          Updates all Earthquake data from website
 
Methods inherited from class edu.cmu.ri.createlab.rss.RSSReader
getEntries, getEntriesPublishedAfterTimestamp, getEntryAuthor, getEntryCount, getEntryDate, getEntryDescription, getEntryLink, getEntryTitle, getFeedAuthor, getFeedDate, getFeedDescription, getFeedLink, getFeedTitle, updateFeed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EarthquakeReader

public EarthquakeReader()
Construct EarthquakeReader

Method Detail

updateQuakeFeed

public void updateQuakeFeed()
Updates all Earthquake data from website


getMagnitude

public double getMagnitude()
Returns:
Magnitude of quake at index

getQuakeCount

public int getQuakeCount()
Returns:
number of quakes listed in feed

getLocation

public String getLocation()
return location of quake at index


setIndex

public void setIndex(int in)
Parameters:
in - int new index value