net.sourceforge.eclipsetrader.core
Class CurrencyConverter
java.lang.Object
java.util.Observable
net.sourceforge.eclipsetrader.core.CurrencyConverter
- public class CurrencyConverter
- extends java.util.Observable
Method Summary |
void |
clear()
|
double |
convert(java.util.Date date,
double amount,
java.util.Currency from,
java.util.Currency to)
|
double |
convert(java.util.Date date,
java.lang.Double amount,
java.util.Currency from,
java.util.Currency to)
|
double |
convert(java.util.Date date,
double amount,
java.lang.String from,
java.lang.String to)
|
double |
convert(double amount,
java.util.Currency from,
java.util.Currency to)
|
double |
convert(java.lang.Double amount,
java.util.Currency from,
java.util.Currency to)
|
double |
convert(double amount,
java.lang.String from,
java.lang.String to)
|
void |
dispose()
|
java.lang.Double |
downloadQuote(java.lang.String symbol,
java.util.Date date)
|
java.util.List |
getCurrencies()
|
java.lang.Double |
getExchangeRatio(java.util.Date date,
java.lang.String from,
java.lang.String to)
|
java.lang.Double |
getExchangeRatio(java.lang.String from,
java.lang.String to)
|
static CurrencyConverter |
getInstance()
|
void |
setCurrencies(java.util.List currencies)
|
void |
setExchangeRatio(java.util.Currency from,
java.util.Currency to,
double ratio)
|
void |
setExchangeRatio(java.util.Date date,
java.lang.String from,
java.lang.String to,
double ratio)
|
void |
setExchangeRatio(java.lang.String from,
java.lang.String to,
double ratio)
|
IStatus |
updateExchanges(IProgressMonitor monitor)
|
Methods inherited from class java.util.Observable |
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static CurrencyConverter getInstance()
clear
public void clear()
dispose
public void dispose()
getCurrencies
public java.util.List getCurrencies()
setCurrencies
public void setCurrencies(java.util.List currencies)
convert
public double convert(double amount,
java.util.Currency from,
java.util.Currency to)
convert
public double convert(java.util.Date date,
double amount,
java.util.Currency from,
java.util.Currency to)
convert
public double convert(java.lang.Double amount,
java.util.Currency from,
java.util.Currency to)
convert
public double convert(java.util.Date date,
java.lang.Double amount,
java.util.Currency from,
java.util.Currency to)
convert
public double convert(double amount,
java.lang.String from,
java.lang.String to)
convert
public double convert(java.util.Date date,
double amount,
java.lang.String from,
java.lang.String to)
updateExchanges
public IStatus updateExchanges(IProgressMonitor monitor)
setExchangeRatio
public void setExchangeRatio(java.util.Currency from,
java.util.Currency to,
double ratio)
setExchangeRatio
public void setExchangeRatio(java.lang.String from,
java.lang.String to,
double ratio)
getExchangeRatio
public java.lang.Double getExchangeRatio(java.lang.String from,
java.lang.String to)
setExchangeRatio
public void setExchangeRatio(java.util.Date date,
java.lang.String from,
java.lang.String to,
double ratio)
getExchangeRatio
public java.lang.Double getExchangeRatio(java.util.Date date,
java.lang.String from,
java.lang.String to)
downloadQuote
public java.lang.Double downloadQuote(java.lang.String symbol,
java.util.Date date)