The Encog Project

org.encog.neural.data.market.loader
Class LoadedMarketData

java.lang.Object
  extended by org.encog.neural.data.market.loader.LoadedMarketData

public class LoadedMarketData
extends java.lang.Object

This class contains market data that was loaded for a specific ticker symbol and a specific date. This data is usually loaded from external sources.

Author:
jheaton

Constructor Summary
LoadedMarketData(java.util.Date when, TickerSymbol ticker)
          Construct one sample of market data.
 
Method Summary
 double getData(MarketDataType type)
          Get one type of market data from this date.
 TickerSymbol getTicker()
           
 java.util.Date getWhen()
           
 void setData(MarketDataType type, double data)
          Set financial data for this date.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoadedMarketData

public LoadedMarketData(java.util.Date when,
                        TickerSymbol ticker)
Construct one sample of market data.

Parameters:
when - When was this sample taken.
ticker - What is the ticker symbol for this data.
Method Detail

getData

public double getData(MarketDataType type)
Get one type of market data from this date.

Parameters:
type - The type of data needed.
Returns:
The market data for the specified date and of the specified type.

getTicker

public TickerSymbol getTicker()
Returns:
The ticker symbol this sample is assocated with.

getWhen

public java.util.Date getWhen()
Returns:
When this sample was taken.

setData

public void setData(MarketDataType type,
                    double data)
Set financial data for this date.

Parameters:
type - The type of data being set.
data - The value of the data being set.

The Encog Project