All Packages Class Hierarchy This Package Previous Next Index
EuroGroup
, consists of all of
the currencies that will eventually be replaced by the Euro. All currencies in the Euro
group use the same, special rule for converting money between currencies in this group.
ExchangeGroup
is an interface which all currency groups implement. The
purpose of an exchange group object is to take as input a source currency, target
currency, and an exchange rate table, then produce an exchange object. Thus, the key
component of the class ExchangeGroup
is the abstract method:
public abstract Exchange getExchange(String source, String target, ExchangeRateTable rates);
Money.h++ includes three currency exchange group implementation classes:
EuroGroup
, which creates and returns a TriangularExchange
objectMultiplicationGroup
, which creates and returns a
MultiplicationExchange
objectDivisionGroup
, which creates and returns a DivisionExchange
object
public abstract String getName()
public abstract Exchange getExchange(String source, String target, ExchangeRateTable rates)
null
value
is returned.
All Packages Class Hierarchy This Package Previous Next Index