org.jscience.economics.money
Class Quote

java.lang.Object
  extended by org.jscience.economics.money.Quote

public final class Quote
extends java.lang.Object

A class representing a Quote on a market.


Constructor Summary
Quote(java.lang.String symbol, java.lang.String company, long volume, Amount<Money> value, java.lang.String market, Amount<Money> openPrice, java.util.Date quoteTime)
          Creates a new Quote object.
Quote(java.lang.String symbol, java.lang.String company, java.lang.String market)
          Create a quote with the minimum amount of required information.
 
Method Summary
 java.lang.String getCompany()
          DOCUMENT ME!
 java.lang.String getMarket()
          DOCUMENT ME!
 Amount<Money> getOpenPrice()
          DOCUMENT ME!
 java.util.Date getQuoteTime()
          DOCUMENT ME!
 java.lang.String getSymbol()
          DOCUMENT ME!
 Amount<Money> getValue()
          DOCUMENT ME!
 long getVolume()
          DOCUMENT ME!
 void setCompany(java.lang.String company)
          DOCUMENT ME!
 void setOpenPrice(Amount<Money> amount)
          DOCUMENT ME!
 void setQuotation(long volume, Amount<Money> value, java.util.Date quoteTime)
          DOCUMENT ME!
 void setQuoteTime(java.util.Date quoteTime)
          DOCUMENT ME!
 void setValue(Amount<Money> value)
          DOCUMENT ME!
 void setVolume(long volume)
          DOCUMENT ME!
 java.lang.String toString()
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Quote

public Quote(java.lang.String symbol,
             java.lang.String company,
             java.lang.String market)
Create a quote with the minimum amount of required information. You have to fill actual values at a later time.

Parameters:
symbol - DOCUMENT ME!
company - DOCUMENT ME!
market - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

Quote

public Quote(java.lang.String symbol,
             java.lang.String company,
             long volume,
             Amount<Money> value,
             java.lang.String market,
             Amount<Money> openPrice,
             java.util.Date quoteTime)
Creates a new Quote object.

Parameters:
symbol - DOCUMENT ME!
company - DOCUMENT ME!
volume - DOCUMENT ME!
value - DOCUMENT ME!
market - DOCUMENT ME!
openPrice - DOCUMENT ME!
quoteTime - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!
Method Detail

getSymbol

public final java.lang.String getSymbol()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getCompany

public final java.lang.String getCompany()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setCompany

public final void setCompany(java.lang.String company)
DOCUMENT ME!

Parameters:
company - DOCUMENT ME!

getVolume

public final long getVolume()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setVolume

public final void setVolume(long volume)
DOCUMENT ME!

Parameters:
volume - DOCUMENT ME!

getValue

public final Amount<Money> getValue()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setValue

public final void setValue(Amount<Money> value)
DOCUMENT ME!

Parameters:
value - DOCUMENT ME!

setQuotation

public final void setQuotation(long volume,
                               Amount<Money> value,
                               java.util.Date quoteTime)
DOCUMENT ME!

Parameters:
volume - DOCUMENT ME!
value - DOCUMENT ME!
quoteTime - DOCUMENT ME!

getMarket

public final java.lang.String getMarket()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getOpenPrice

public final Amount<Money> getOpenPrice()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setOpenPrice

public final void setOpenPrice(Amount<Money> amount)
DOCUMENT ME!

Parameters:
amount - DOCUMENT ME!

getQuoteTime

public final java.util.Date getQuoteTime()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setQuoteTime

public final void setQuoteTime(java.util.Date quoteTime)
DOCUMENT ME!

Parameters:
quoteTime - DOCUMENT ME!

toString

public final java.lang.String toString()
DOCUMENT ME!

Overrides:
toString in class java.lang.Object
Returns:
DOCUMENT ME!