| Modifier and Type | Method | Description |
|---|---|---|
AmountablePrice<IWare> |
AmountableProvider.createWareAmountable() |
|
AmountablePrice<IWare> |
ModelConfiguration.wareAmountable() |
| Modifier and Type | Method | Description |
|---|---|---|
IWare |
IWorkShop.getProducableWare() |
Retrieve the ware this workshop produces.
|
| Modifier and Type | Method | Description |
|---|---|---|
AmountablePrice<IWare> |
ITradingOffice.getWare(IWare ware) |
Retrieve the amount of ware in storage
|
| Modifier and Type | Method | 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 | Method | Description |
|---|---|---|
javafx.beans.property.IntegerProperty |
AutomatedTrading.amountProperty(IWare ware) |
|
protected int |
TradingOffice.computeAVGPrice(IWare ware,
int 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 | Method | 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 | Description |
|---|---|---|
java.util.List<IWare> |
ICity.getImported() |
Retrieve the subset list of wares that are produced but are actually imported.
|
java.util.Map<IWare,java.time.LocalDateTime> |
ICity.getMissingWares() |
Retrieve the missing wares along with their times
|
AmountablePrice<IWare> |
ICity.getWare(IWare ware) |
Retrieve the amount of ware in the city
|
| Modifier and Type | Method | Description |
|---|---|---|
double |
ProductionStorage.getAvgPrice(IWare ware) |
Retrieve the average price of the stored amount.
|
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> |
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,
double avgPrice) |
Transfer wares to/from the storage.
|
| Modifier and Type | Method | Description |
|---|---|---|
IWare |
ICityHallNotice.getRequiredWare() |
What ware is required.
|
| Modifier and Type | Method | Description |
|---|---|---|
AmountablePrice<IWare> |
ICityHallNotice.getWareAndAmount() |
Required amount and their guaranteed price.
|
| Modifier and Type | Method | Description |
|---|---|---|
IWare |
ITradeAgreement.getWare() |
Retrieve the ware for this trade agreement.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<IWare> |
IMediterreanCity.getConsumingWares() |
Get the two wares that are consumed by the city.
|
java.util.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.
|
| Constructor | Description |
|---|---|
MediterreanCity(java.lang.String name,
IWare consumingWare1,
IWare consumingWare2,
IWare producingWare1,
IWare producingWare2) |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Set<java.util.Map.Entry<IWare,java.lang.Double>> |
CityState.consumedEntries() |
Get the consumed entries as a set.
|
java.util.Optional<ch.sahits.datastructure.GenericPair<ICity,IWare>> |
CitiesState.findCityWithMostNeededWare() |
Find a possible city that has needed wares.
|
java.util.Optional<ch.sahits.datastructure.GenericPair<ICity,IWare>> |
CitiesState.findCityWithSurplusWare() |
Find a possible city that has needed wares.
|
java.util.Optional<IWare> |
CityState.findMostNeededWare() |
Find the ware which is consumed the most and which is missing for the longest time.
|
java.util.Optional<IWare> |
CityState.findWareWithMostSurplus() |
Find the ware that the city sells near the minimal price.
|
java.util.Map<IWare,java.time.LocalDateTime> |
City.getMissingWares() |
|
javafx.beans.binding.ObjectBinding<IWare> |
CityState.longestMissingWaresBinding() |
Retrieve the ware that is missing the longest.
|
| Modifier and Type | Method | 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 | Description |
|---|---|
Contribution(java.time.LocalDateTime timestamp,
int amount,
IWare ware) |
| Modifier and Type | Method | Description |
|---|---|---|
AmountablePrice<IWare> |
WareHolding.getWare(IWare ware) |
Retrieve the
AmountablePrice of the ware as it is stored in the
holding |
| Modifier and Type | Method | 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 | Description |
|---|---|---|
java.util.Set<IWare> |
ITradeRouteStop.getWaresToBuy() |
Retrieve the wares that should be bought at this trade stop.
|
| Modifier and Type | Method | 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 | 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.
|
java.util.Optional<ch.sahits.datastructure.GenericPair<ICity,IWare>> |
IInformant.getWareNeeded() |
Possible information about in which city which ware is needed.
|
java.util.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 | Description |
|---|---|---|
void |
IInformant.setNeededWare(ICity city,
IWare ware) |
Set the information about the needed ware in the city.
|
void |
IBuyer.setWare(IWare ware) |
Set the ware to be supplied.
|
void |
ITradePerson.setWare(IWare ware) |
Set the ware for the trade.
|
void |
IInformant.setWareSurplus(ICity city,
IWare ware) |
Set the information about the surplus ware in the city
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
IBuyer.setAmountablePrice(AmountablePrice<IWare> amountablePrice) |
Define the amount and price for the ware.
|
| Modifier and Type | Method | Description |
|---|---|---|
IWare |
TraderState.getWare() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
InformantState.setNeededWare(ICity city,
IWare ware) |
|
void |
TraderState.setWare(IWare ware) |
|
void |
InformantState.setWareSurplus(ICity city,
IWare ware) |
| Constructor | Description |
|---|---|
ContractBrookerState(AmountablePrice<IWare> amountAndPrice,
IWare ware) |
| Constructor | Description |
|---|---|
ContractBrookerState(AmountablePrice<IWare> amountAndPrice,
IWare ware) |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.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. |
java.util.List<ICity> |
IProductionConsumptionKnowledge.findListWithConsumptionMinimalDistance(ICity distanceToCity,
IWare ware,
INavigableVessel vessel) |
Find cities that consume the ware and order them based on consumption amount and
distance.
|
java.util.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 | Description |
|---|---|---|
class |
EWare |
Define the different type of wares that are produced and can be traded.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<IWare> |
ProductionChain.getRequiredWares(IWare wareToBeProduced) |
|
java.util.List<IWare> |
ProductionChain.getWaresWithProductionChain() |
Retrieve all wares that require other wares to be produced.
|
| Modifier and Type | Method | Description |
|---|---|---|
double |
ProductionChain.getProduction(IWare ware) |
|
double |
ProductionChain.getRequiredAmount(IWare wareToBeProduced,
IWare requiredWare) |
Get the required amount of
requiredWare to produce wareToBeProduced within a week. |
java.util.List<IWare> |
ProductionChain.getRequiredWares(IWare wareToBeProduced) |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.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 | 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 | Method | Description |
|---|---|---|
java.util.Set<IWare> |
Convoy.getLoadedWares() |
|
java.util.Set<IWare> |
Ship.getLoadedWares() |
|
java.util.Set<IWare> |
ShipGroup.getLoadedWares() |
|
AmountablePrice<IWare> |
Convoy.getWare(IWare ware) |
|
AmountablePrice<IWare> |
Ship.getWare(IWare ware) |
|
AmountablePrice<IWare> |
ShipGroup.getWare(IWare ware) |
| Modifier and Type | Method | Description |
|---|---|---|
AmountablePrice<IWare> |
Convoy.getWare(IWare ware) |
|
AmountablePrice<IWare> |
Ship.getWare(IWare ware) |
|
AmountablePrice<IWare> |
ShipGroup.getWare(IWare ware) |
|
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.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.unload(IWare ware,
int amount) |
Unload the wares from 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) |
Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.