public interface IAutomatedTrading
| Modifier and Type | Method and 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 - boolean isMovableToShip(IWare ware)
ware - void 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 - void setMovableToShip(IWare ware, boolean isMovable)
ware - to be updatedisMovable - javafx.beans.property.IntegerProperty amountProperty(IWare ware)
ware - javafx.beans.property.IntegerProperty priceProperty(IWare ware)
ware - javafx.beans.property.BooleanProperty movableToShipProperty(IWare ware)
ware - Copyright © 2011-2015 Sahits GmbH. All Rights Reserved.