org.jscience.economics.money.providers
Class OandaChangeSource

java.lang.Object
  extended by org.jscience.economics.money.providers.OandaChangeSource
All Implemented Interfaces:
ChangeSource

public class OandaChangeSource
extends java.lang.Object
implements ChangeSource

Currency data source for Oanda.


Field Summary
static java.net.URLConnection connection
          DOCUMENT ME!
 
Constructor Summary
OandaChangeSource()
           
 
Method Summary
 float getConverted(float amount, Currency source, Currency target)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connection

public static java.net.URLConnection connection
DOCUMENT ME!

Constructor Detail

OandaChangeSource

public OandaChangeSource()
Method Detail

getConverted

public float getConverted(float amount,
                          Currency source,
                          Currency target)
                   throws UnavailableDataException
DOCUMENT ME!

Specified by:
getConverted in interface ChangeSource
Parameters:
amount - DOCUMENT ME!
source - DOCUMENT ME!
target - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
UnavailableDataException - DOCUMENT ME!