| Modifier and Type | Method and Description |
|---|---|
AmountablePrice<IWare> |
AmountableProvider.createWareAmountable() |
| Modifier and Type | Method and Description |
|---|---|
AmountablePrice<IWare> |
ITradingOffice.getWare(IWare ware)
Retrieve the amount of ware in storage
|
| Modifier and Type | Method and Description |
|---|---|
javafx.beans.property.IntegerProperty |
IAutomatedTrading.amountProperty(IWare ware)
Get to the amount property of the tradeable ware.
|
int |
IAutomatedTrading.getAmount(IWare ware)
Retrieve the minimal amount of the ware that should be hold in the
storage.
|
int |
IAutomatedTrading.getPrice(IWare ware)
Retrieve the price up to which the ware is bought or the minimal price for which it is sold.
|
AmountablePrice<IWare> |
ITradingOffice.getWare(IWare ware)
Retrieve the amount of ware in storage
|
boolean |
IAutomatedTrading.isMovableToShip(IWare ware)
Check if this ware can be moved onto ships with automated trading routes
|
javafx.beans.property.BooleanProperty |
IAutomatedTrading.movableToShipProperty(IWare ware)
Get the movable to ship flag.
|
int |
ITradingOffice.move(IWare ware,
int amount)
Deprecated.
|
int |
ITradingOffice.move(IWare ware,
int moved,
int avgPrice)
Move the ware into/from the storage with a price attached.
|
javafx.beans.property.IntegerProperty |
IAutomatedTrading.priceProperty(IWare ware)
Get the price property of the tradable ware.
|
void |
IAutomatedTrading.setMovableToShip(IWare ware,
boolean isMovable)
Set the movable flag
|
void |
IAutomatedTrading.setTradingType(IWare ware,
ETradeType tt)
Set the Trayding type.
|
javafx.beans.property.ObjectProperty<ETradeType> |
IAutomatedTrading.tradingTypeProperty(IWare ware)
Retrieve the trading type of the ware.
|
void |
IAutomatedTrading.updateAmount(IWare ware,
int difference)
Update the amount of ware
|
void |
IAutomatedTrading.updatePrice(IWare ware,
int difference)
Update the price of the ware
|
| Modifier and Type | Field and Description |
|---|---|
private HashMap<IWare,TradableWare> |
AutomatedTrading.wares |
| Modifier and Type | Method and Description |
|---|---|
javafx.beans.property.IntegerProperty |
AutomatedTrading.amountProperty(IWare ware) |
protected int |
TradingOffice.computeAVGPrice(IWare ware,
int amount)
Compute the average price for ware that is to be purchased in the specified
amount.
|
int |
AutomatedTrading.getAmount(IWare ware) |
int |
AutomatedTrading.getPrice(IWare ware) |
boolean |
AutomatedTrading.isMovableToShip(IWare ware) |
javafx.beans.property.BooleanProperty |
AutomatedTrading.movableToShipProperty(IWare ware) |
int |
TradingOffice.move(IWare ware,
int amount) |
int |
TradingOffice.move(IWare ware,
int amount,
int avgPrice)
Move the ware into/from the storage with a price attached.
|
javafx.beans.property.IntegerProperty |
AutomatedTrading.priceProperty(IWare ware) |
void |
AutomatedTrading.setMovableToShip(IWare ware,
boolean isMovable) |
void |
AutomatedTrading.setTradingType(IWare ware,
ETradeType tt) |
javafx.beans.property.ObjectProperty<ETradeType> |
AutomatedTrading.tradingTypeProperty(IWare ware) |
void |
AutomatedTrading.updateAmount(IWare ware,
int difference) |
void |
AutomatedTrading.updatePrice(IWare ware,
int difference) |
| Modifier and Type | Field and Description |
|---|---|
private Map<IWare,Double> |
ProductionStorage.storage |
| Modifier and Type | Method and Description |
|---|---|
IWare[] |
ICity.getEffectiveProduction()
Retrieve the wares that are produced efficiently
|
IWare[] |
ICity.getIneffectiveProduction()
Retrieve the wares that are produced inefficiently
|
| Modifier and Type | Method and Description |
|---|---|
List<IWare> |
ICity.getImported()
Retrieve the subset list of wares that are produced but are actually imported.
|
Map<IWare,org.joda.time.DateTime> |
ICity.getMissingWares()
Retrieve the missing wares along with their times
|
AmountablePrice<IWare> |
IWareInCity.getWare(IWare ware)
Retrieve the amount of ware in the city
|
AmountablePrice<IWare> |
ICity.getWare(IWare ware)
Retrieve the amount of ware in the city
|
| Modifier and Type | Method and Description |
|---|---|
int |
PopulationConsume.getBasicWeeklyConsumtion(IWare ware)
Basic need distribution for a city of 1000 people of average income.
|
int |
ICity.getContribution(IPlayer player,
IWare ware)
Check out what the player contributed to the ware
|
double |
PopulationConsume.getNeed(IWare ware,
EPopulationClass popClass,
int popSize)
Retrieve the amount needed of a ware by a population class of the size
|
int |
IBuildingProduction.getProduction(IWare ware,
ICity city,
IPlayer player)
Compute the total amount of ware the player produces in the city within a week
|
double |
ProductionStorage.getStored(IWare ware)
Retrieve the amount that is stored of a specific ware.
|
int |
IBuildingProduction.getTotalConsumtion(IWare ware,
ICity city)
Retrieve the amount the workshops consume to produce the ware within a week
|
int |
IBuildingProduction.getTotalProduction(IWare ware,
ICity city)
Compute the total amount of ware that is produced in the city within a week
|
AmountablePrice<IWare> |
IWareInCity.getWare(IWare ware)
Retrieve the amount of ware in the city
|
AmountablePrice<IWare> |
ICity.getWare(IWare ware)
Retrieve the amount of ware in the city
|
double |
PopulationConsume.getWeeklyConsumption(IWare ware,
ICity city)
Calculate the weekly overall consumption of a ware in a city.
|
int |
ICity.move(IWare ware,
int amount,
ICitizen player)
Add or remove ware from the city.
|
double |
ProductionStorage.transfer(IWare ware,
double amount)
Transfer wares to/from the storage.
|
| Modifier and Type | Method and Description |
|---|---|
IWare |
ICityHallNotice.getRequiredWare()
What ware is required.
|
| Modifier and Type | Method and Description |
|---|---|
AmountablePrice<IWare> |
ICityHallNotice.getWareAndAmount()
Required amount and their guaranteed price.
|
| Modifier and Type | Field and Description |
|---|---|
private IWare |
CityHallNotice.requiredWare |
| Modifier and Type | Field and Description |
|---|---|
private AmountablePrice<IWare> |
CityHallNotice.wareAndAmount |
| Modifier and Type | Method and Description |
|---|---|
IWare |
ITradeAgreement.getWare()
Retrieve the ware for this trade agreement.
|
| Modifier and Type | Method and Description |
|---|---|
List<IWare> |
IMediterreanCity.getConsumingWares()
Get the two wares that are consumed by the city.
|
List<IWare> |
IMediterreanCity.getProducingWares()
Get the two wares that are produced in the city.
|
AmountablePrice<IWare> |
ITradeAgreement.getWareAndAmount()
Retreive the amount and the price which is guaranteed.
|
| Modifier and Type | Field and Description |
|---|---|
private IWare |
TradeAgreement.ware |
| Modifier and Type | Field and Description |
|---|---|
private List<IWare> |
MediterreanCity.consumingWares |
private List<IWare> |
MediterreanCity.producingWares |
private AmountablePrice<IWare> |
TradeAgreement.wareAndAmount |
| Constructor and Description |
|---|
MediterreanCity(String name,
IWare consumingWare1,
IWare consumingWare2,
IWare producingWare1,
IWare producingWare2) |
| Modifier and Type | Field and Description |
|---|---|
private IWare[] |
City.effectiveProduction |
private IWare[] |
City.ineffectiveProduction |
private IWare |
Contribution.ware |
| Modifier and Type | Field and Description |
|---|---|
private Map<IWare,Double> |
CityState.consumed
Map of consumed wares, since only whole units can be consumed we need to store the fractions
|
private com.google.common.collect.Multimap<IWare,Contribution> |
Contributions.contributions |
private List<IWare> |
City.imported |
private Map<IWare,org.joda.time.DateTime> |
City.missingWares |
| Modifier and Type | Method and Description |
|---|---|
Set<Map.Entry<IWare,Double>> |
CityState.consumedEntries()
Get the consumed entries as a set.
|
Optional<ch.sahits.datastructure.GenericPair<ICity,IWare>> |
CitiesState.findCityWithMostNeededWare()
Find a possible city that has needed wares.
|
Optional<ch.sahits.datastructure.GenericPair<ICity,IWare>> |
CitiesState.findCityWithSurplusWare()
Find a possible city that has needed wares.
|
Optional<IWare> |
CityState.findMostNeededWare()
Find the ware which is consumed the most and which is missing for the longest time.
|
Optional<IWare> |
CityState.findWareWithMostSurplus()
Find the ware that the city sells near the minimal price.
|
Map<IWare,org.joda.time.DateTime> |
City.getMissingWares() |
(package private) Map<IWare,Integer> |
CityState.getSortedWareAvailabilityMap()
Find the wares and order them in the amount of their availability.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Contributions.contribute(IWare ware,
int amount)
Contribute the amount of the ware.
|
int |
City.getContribution(IPlayer player,
IWare ware) |
int |
Contributions.getContribution(IWare ware)
Retrieve the contribution for the whole week
|
int |
City.move(IWare ware,
int amount,
ICitizen player)
Move ware into this holding.
|
void |
CityState.replaceConsumedAmount(IWare ware,
double amount)
Set the amount of the ware that is consumed.
|
| Constructor and Description |
|---|
Contribution(org.joda.time.DateTime timestamp,
int amount,
IWare ware) |
| Modifier and Type | Field and Description |
|---|---|
(package private) NonReplacableMap<IWare,AmountablePrice<IWare>> |
WareHolding.wares
Store the amount of wares in the city in the ware specific sizes
|
(package private) NonReplacableMap<IWare,AmountablePrice<IWare>> |
WareHolding.wares
Store the amount of wares in the city in the ware specific sizes
|
| Modifier and Type | Method and Description |
|---|---|
AmountablePrice<IWare> |
WareHolding.getWare(IWare ware)
Retrieve the
AmountablePrice of the ware as it is stored in the
holding |
| Modifier and Type | Method and Description |
|---|---|
protected void |
WareHolding.addNewWare(IWare ware,
int amount)
Add a new ware to the wares list
|
protected int |
WareHolding.computeAVGPrice(IWare ware,
int amount)
Compute the average price for ware that is to be purchased in the specified
amount.
|
protected boolean |
WareHolding.containsWare(IWare ware)
Check if there is an amountable object for this ware
|
AmountablePrice<IWare> |
WareHolding.getWare(IWare ware)
Retrieve the
AmountablePrice of the ware as it is stored in the
holding |
int |
WareHolding.move(IWare ware,
int amount,
ICitizen player)
Move ware into this holding.
|
| Modifier and Type | Method and Description |
|---|---|
Set<IWare> |
ITradeRouteStop.getWaresToBuy()
Retrieve the wares that should be bought at this trade stop.
|
| Modifier and Type | Field and Description |
|---|---|
private Set<IWare> |
TradeRouteStop.waresToBuy |
| Modifier and Type | Method and Description |
|---|---|
IWare |
IBuyer.getWare()
Wares that are to be delivered.
|
IWare |
IContractBroker.getWare()
The ware that should be delivered.
|
IWare |
ITradePerson.getWare()
The ware the broker is to be delivered.
|
| Modifier and Type | Method and Description |
|---|---|
AmountablePrice<IWare> |
IBuyer.getAmountablePrice()
Retrieve the amount and price of the ware.
|
AmountablePrice<IWare> |
IContractBroker.getAmountAndPrice()
Retrieve the amount and price that was agreed upon.
|
Optional<ch.sahits.datastructure.GenericPair<ICity,IWare>> |
IInformant.getWareNeeded()
Possible information about in which city which ware is needed.
|
Optional<ch.sahits.datastructure.GenericPair<ICity,IWare>> |
IInformant.getWareSurplus()
Possible information about in which city which ware is available in surplus.
|
| Modifier and Type | Method and Description |
|---|---|
void |
IInformant.setNeededWare(ICity city,
IWare ware)
Set the information about the needed ware in the city.
|
void |
IBuyer.setWare(IWare ware) |
void |
ITradePerson.setWare(IWare ware) |
void |
IInformant.setWareSurplus(ICity city,
IWare ware)
Set the information about the surplus ware in the city
|
| Modifier and Type | Method and Description |
|---|---|
void |
IBuyer.setAmountablePrice(AmountablePrice<IWare> amountablePrice) |
| Modifier and Type | Field and Description |
|---|---|
private IWare |
BaseTradePerson.ware |
private IWare |
ContractBrookerState.ware |
private IWare |
BuyerState.ware |
| Modifier and Type | Field and Description |
|---|---|
private AmountablePrice<IWare> |
BuyerState.amountablePrice |
private AmountablePrice<IWare> |
ContractBrookerState.amountAndPrice |
private Optional<ch.sahits.datastructure.GenericPair<ICity,IWare>> |
InformantState.wareNeeded |
private Optional<ch.sahits.datastructure.GenericPair<ICity,IWare>> |
InformantState.wareSurplus |
| Modifier and Type | Method and Description |
|---|---|
IWare |
TraderState.getWare() |
| Modifier and Type | Method and Description |
|---|---|
void |
InformantState.setNeededWare(ICity city,
IWare ware) |
void |
TraderState.setWare(IWare ware)
Define the ware the broker expects to be delivered.
|
void |
InformantState.setWareSurplus(ICity city,
IWare ware) |
| Constructor and Description |
|---|
ContractBrookerState(AmountablePrice<IWare> amountAndPrice,
IWare ware) |
| Constructor and Description |
|---|
ContractBrookerState(AmountablePrice<IWare> amountAndPrice,
IWare ware) |
| Modifier and Type | Method and Description |
|---|---|
List<ICity> |
IProductionConsumptionKnowledge.findCitiesWithNeedMinimalDistance(ICity distanceToCity,
IWare ware,
INavigableVessel vessel)
Find cities that need the
ware and order them based on the need and the distance. |
List<ICity> |
IProductionConsumptionKnowledge.findListWithProductionsMinimalDistance(ICity distanceToCity,
IWare ware,
INavigableVessel vessel)
Find cities that produce the ware and order them based on production amount and
distance.
|
int |
ICityProductionConsumptionKnowledge.getConsumptionAmount(IWare ware)
Retrieve the consumption amount for a ware.
|
int |
ICityProductionConsumptionKnowledge.getProductionAmount(IWare ware)
Retrieve the consumption amount for a ware.
|
int |
ICityProductionConsumptionKnowledge.getStoredAmount(IWare ware)
Retrieve the stored amount for a ware.
|
| Modifier and Type | Class and Description |
|---|---|
class |
EWare
Define the different type of wares that are produced and can be traded.
|
| Modifier and Type | Method and Description |
|---|---|
List<IWare> |
ProductionChain.getRequiredWares(IWare wareToBeProduced) |
List<IWare> |
ProductionChain.getWaresWithProductionChain()
Retrieve all wares that require other wares to be produced.
|
| Modifier and Type | Method and Description |
|---|---|
double |
ProductionChain.getProduction(IWare ware) |
double |
ProductionChain.getRequiredAmount(IWare wareToBeProduced,
IWare requiredWare) |
List<IWare> |
ProductionChain.getRequiredWares(IWare wareToBeProduced) |
| Modifier and Type | Method and Description |
|---|---|
Set<IWare> |
INavigableVessel.getLoadedWares()
Retrieve a list of all loaded wares
|
AmountablePrice<IWare> |
INavigableVessel.getWare(IWare ware)
Retrieve the amount of ware loaded
|
| Modifier and Type | Method and Description |
|---|---|
AmountablePrice<IWare> |
INavigableVessel.getWare(IWare ware)
Retrieve the amount of ware loaded
|
int |
INavigableVessel.load(IWare ware,
int amount,
int avgPrice)
Load the ware in the specified amount onto the ship.
|
int |
INavigableVessel.unload(IWare ware,
int amount)
Unload the specified quantity of the ware.
|
| Modifier and Type | Field and Description |
|---|---|
private Map<IWare,AmountablePrice<IWare>> |
Ship.loadedWare
Store the wares loaded on the ship together with their amount.
|
private Map<IWare,AmountablePrice<IWare>> |
Ship.loadedWare
Store the wares loaded on the ship together with their amount.
|
| Modifier and Type | Method and Description |
|---|---|
Set<IWare> |
Ship.getLoadedWares() |
Set<IWare> |
ShipGroup.getLoadedWares() |
Set<IWare> |
Convoy.getLoadedWares() |
AmountablePrice<IWare> |
Ship.getWare(IWare ware) |
AmountablePrice<IWare> |
ShipGroup.getWare(IWare ware) |
AmountablePrice<IWare> |
Convoy.getWare(IWare ware) |
| Modifier and Type | Method and Description |
|---|---|
AmountablePrice<IWare> |
Ship.getWare(IWare ware) |
AmountablePrice<IWare> |
ShipGroup.getWare(IWare ware) |
AmountablePrice<IWare> |
Convoy.getWare(IWare ware) |
int |
Ship.load(IWare ware,
int amount,
int avgPrice)
Load the ware in the specified amount onto the ship.
|
int |
ShipGroup.load(IWare ware,
int amount,
int avgPrice) |
int |
Convoy.load(IWare ware,
int amount,
int avgPrice)
The wares are loaded onto the ships in the convoy
in the iteration order.
|
int |
Ship.unload(IWare ware,
int amount)
Unload the specified quantity of the ware.
|
int |
ShipGroup.unload(IWare ware,
int amount) |
int |
Convoy.unload(IWare ware,
int amount)
Unload the wares from the ships in the convoy in the iteration
order.
|
| Modifier and Type | Method and Description |
|---|---|
AmountablePrice<IWare> |
ModelConfiguration.wareAmountable() |
Copyright © 2011-2017 Sahits GmbH. All Rights Reserved.