More functions defined in interface

This commit is contained in:
7u83 2018-12-29 21:01:30 +01:00
parent 882c84adf2
commit cb01b886dc
1 changed files with 25 additions and 1 deletions

View File

@ -26,7 +26,7 @@
package opensesim.world;
/**
*
* Asset interface
* @author 7u83 <7u83@mail.ru>
*/
public interface Asset {
@ -37,4 +37,28 @@ public interface Asset {
*/
public int getDecimals();
/**
* Get the type name of asset. eg. Currency, Future or Stock
* @return type name
*/
public String getTypeName();
/**
* Get symbol for this asset. eg. USD
* @return symbol
*/
public String getSymbol();
/**
* Determine if this asset can be used as currency
* @return true if asset can act as currency, false if not.
*/
public boolean isCurrency();
/**
* Can this asset act as asset?
* @return true if yes, false if not
*/
public boolean isAsset();
}