AutomatedTradingpublic interface IAutomatedTrading
| Modifier and Type | Method | Description |
|---|---|---|
javafx.beans.property.IntegerProperty |
amountProperty(IWare ware) |
Get to the amount property of the tradeable ware.
|
int |
getAmount(IWare ware) |
Retrieve the minimal amount of the ware that should be hold in the
storage.
|
int |
getPrice(IWare ware) |
Retrieve the price up to which the ware is bought or the minimal price for which it is sold.
|
boolean |
isMovableToShip(IWare ware) |
Check if this ware can be moved onto ships with automated trading routes
|
javafx.beans.property.BooleanProperty |
movableToShipProperty(IWare ware) |
Get the movable to ship flag.
|
javafx.beans.property.IntegerProperty |
priceProperty(IWare ware) |
Get the price property of the tradable ware.
|
void |
setMovableToShip(IWare ware,
boolean isMovable) |
Set the movable flag
|
void |
setTradingType(IWare ware,
ETradeType tt) |
Set the Trayding type.
|
javafx.beans.property.ObjectProperty<ETradeType> |
tradingTypeProperty(IWare ware) |
Retrieve the trading type of the ware.
|
void |
updateAmount(IWare ware,
int difference) |
Update the amount of ware
|
void |
updatePrice(IWare ware,
int difference) |
Update the price of the ware
|
int getAmount(IWare ware)
ware - to be holdint getPrice(IWare ware)
ware - to be bought or soldjavafx.beans.property.ObjectProperty<ETradeType> tradingTypeProperty(IWare ware)
ware - that should be checkedboolean isMovableToShip(IWare ware)
ware - that should be checkedvoid updateAmount(IWare ware, int difference)
ware - to be updateddifference - in the amountvoid updatePrice(IWare ware, int difference)
ware - to be updateddifference - in the pricevoid setTradingType(IWare ware, ETradeType tt)
ware - to be updatedtt - trade type to setvoid setMovableToShip(IWare ware, boolean isMovable)
ware - to be updatedisMovable - flag if the ware is movable to a shipjavafx.beans.property.IntegerProperty amountProperty(IWare ware)
ware - for which to retrieve the amountjavafx.beans.property.IntegerProperty priceProperty(IWare ware)
ware - for which to retrieve the pricejavafx.beans.property.BooleanProperty movableToShipProperty(IWare ware)
ware - for which to retrieve the movable flagCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.