com.exponto.jstock
Class ChartData

java.lang.Object
  extended bycom.exponto.jstock.ChartData

public class ChartData
extends java.lang.Object

ChartData.java Load the dataset from file or other source (to be implemented). Can transform dataset to other formats (log, weekly) as required

Author:
kaare

Constructor Summary
ChartData()
          Creates a new instance of ChartData
ChartData(java.lang.String str)
          Creates a new instance of ChartData
 
Method Summary
 LogDataSeries getLogDataSeries()
           
 TickerID getTickerId()
          Returns the TickerID of the LogdataSeries associated with this class.
 LogDataSeries getWeeklyLogDataSeries()
          Returns a LogSeriesData that contains weekly data.
 void loadLogDataSeries(java.lang.String source, int numberToGet)
          Reads dataseries from a source, currently only files in "netfonds" format are understood
 void setPathAndExtension(java.lang.String path, java.lang.String extension)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChartData

public ChartData()
Creates a new instance of ChartData


ChartData

public ChartData(java.lang.String str)
Creates a new instance of ChartData

Parameters:
str - representing the ticker
Method Detail

loadLogDataSeries

public void loadLogDataSeries(java.lang.String source,
                              int numberToGet)
                       throws TickerNotFoundException
Reads dataseries from a source, currently only files in "netfonds" format are understood

Parameters:
source - Source (e.g. path and filename) of the dataseries
Throws:
TickerNotFoundException

getLogDataSeries

public LogDataSeries getLogDataSeries()
Returns:
the LogDataSeries

setPathAndExtension

public void setPathAndExtension(java.lang.String path,
                                java.lang.String extension)
Parameters:
path - The file path
extension - of the files

getWeeklyLogDataSeries

public LogDataSeries getWeeklyLogDataSeries()
Returns a LogSeriesData that contains weekly data. If that dosn't exist, it is computed when this methode is called

Returns:
LogDataSeries with weekly data.

getTickerId

public TickerID getTickerId()
Returns the TickerID of the LogdataSeries associated with this class.

Returns:
the TickerId


Copyright © 2004 Kaare Ranum