Uses of Interface
ch.sahits.game.openpatrician.model.product.IWare
-
-
Uses of IWare in ch.sahits.game.openpatrician.model
Methods in ch.sahits.game.openpatrician.model that return types with arguments of type IWare Modifier and Type Method Description AmountablePrice<IWare>AmountableProvider. createWareAmountable()AmountablePrice<IWare>ModelConfiguration. wareAmountable() -
Uses of IWare in ch.sahits.game.openpatrician.model.building
Methods in ch.sahits.game.openpatrician.model.building that return IWare Modifier and Type Method Description IWareIWorkShop. getProducableWare()Retrieve the ware this workshop produces.Methods in ch.sahits.game.openpatrician.model.building that return types with arguments of type IWare Modifier and Type Method Description AmountablePrice<IWare>ITradingOffice. getWare(IWare ware)Retrieve the amount of ware in storageMethods in ch.sahits.game.openpatrician.model.building with parameters of type IWare Modifier and Type Method Description javafx.beans.property.IntegerPropertyIAutomatedTrading. amountProperty(IWare ware)Get to the amount property of the tradeable ware.intIAutomatedTrading. getAmount(IWare ware)Retrieve the minimal amount of the ware that should be hold in the storage.intIAutomatedTrading. 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 storagebooleanIAutomatedTrading. isMovableToShip(IWare ware)Check if this ware can be moved onto ships with automated trading routesjavafx.beans.property.BooleanPropertyIAutomatedTrading. movableToShipProperty(IWare ware)Get the movable to ship flag.intITradingOffice. move(IWare ware, int amount)Deprecated.intITradingOffice. move(IWare ware, int moved, int avgPrice)Move the ware into/from the storage with a price attached.javafx.beans.property.IntegerPropertyIAutomatedTrading. priceProperty(IWare ware)Get the price property of the tradable ware.voidIAutomatedTrading. setMovableToShip(IWare ware, boolean isMovable)Set the movable flagvoidIAutomatedTrading. 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.voidIAutomatedTrading. updateAmount(IWare ware, int difference)Update the amount of warevoidIAutomatedTrading. updatePrice(IWare ware, int difference)Update the price of the ware -
Uses of IWare in ch.sahits.game.openpatrician.model.building.impl
Methods in ch.sahits.game.openpatrician.model.building.impl with parameters of type IWare Modifier and Type Method Description javafx.beans.property.IntegerPropertyAutomatedTrading. amountProperty(IWare ware)protected intTradingOffice. computeAVGPrice(IWare ware, int amount)intAutomatedTrading. getAmount(IWare ware)intAutomatedTrading. getPrice(IWare ware)booleanAutomatedTrading. isMovableToShip(IWare ware)javafx.beans.property.BooleanPropertyAutomatedTrading. movableToShipProperty(IWare ware)intTradingOffice. move(IWare ware, int amount)intTradingOffice. move(IWare ware, int amount, int avgPrice)Move the ware into/from the storage with a price attached.javafx.beans.property.IntegerPropertyAutomatedTrading. priceProperty(IWare ware)voidAutomatedTrading. setMovableToShip(IWare ware, boolean isMovable)voidAutomatedTrading. setTradingType(IWare ware, ETradeType tt)javafx.beans.property.ObjectProperty<ETradeType>AutomatedTrading. tradingTypeProperty(IWare ware)voidAutomatedTrading. updateAmount(IWare ware, int difference)voidAutomatedTrading. updatePrice(IWare ware, int difference) -
Uses of IWare in ch.sahits.game.openpatrician.model.city
Methods in ch.sahits.game.openpatrician.model.city that return IWare Modifier and Type Method Description IWare[]ICity. getEffectiveProduction()Retrieve the wares that are produced efficientlyIWare[]ICity. getIneffectiveProduction()Retrieve the wares that are produced inefficientlyMethods in ch.sahits.game.openpatrician.model.city that return types with arguments of type IWare 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 timesAmountablePrice<IWare>ICity. getWare(IWare ware)Retrieve the amount of ware in the cityMethods in ch.sahits.game.openpatrician.model.city with parameters of type IWare Modifier and Type Method Description doubleProductionStorage. getAvgPrice(IWare ware)Retrieve the average price of the stored amount.intPopulationConsume. getBasicWeeklyConsumtion(IWare ware)Basic need distribution for a city of 1000 people of average income.intICity. getContribution(IPlayer player, IWare ware)Check out what the player contributed to the waredoublePopulationConsume. getNeed(IWare ware, EPopulationClass popClass, int popSize)Retrieve the amount needed of a ware by a population class of the sizeintIBuildingProduction. getProduction(IWare ware, ICity city, IPlayer player)Compute the total amount of ware the player produces in the city within a weekdoubleProductionStorage. getStored(IWare ware)Retrieve the amount that is stored of a specific ware.intIBuildingProduction. getTotalConsumtion(IWare ware, ICity city)Retrieve the amount the workshops consume to produce the ware within a weekintIBuildingProduction. getTotalProduction(IWare ware, ICity city)Compute the total amount of ware that is produced in the city within a weekAmountablePrice<IWare>ICity. getWare(IWare ware)Retrieve the amount of ware in the citydoublePopulationConsume. getWeeklyConsumption(IWare ware, ICity city)Calculate the weekly overall consumption of a ware in a city.intICity. move(IWare ware, int amount, ICitizen player)Add or remove ware from the city.doubleProductionStorage. transfer(IWare ware, double amount, double avgPrice)Transfer wares to/from the storage. -
Uses of IWare in ch.sahits.game.openpatrician.model.city.cityhall
Methods in ch.sahits.game.openpatrician.model.city.cityhall that return IWare Modifier and Type Method Description IWareICityHallNotice. getRequiredWare()What ware is required.Methods in ch.sahits.game.openpatrician.model.city.cityhall that return types with arguments of type IWare Modifier and Type Method Description AmountablePrice<IWare>ICityHallNotice. getWareAndAmount()Required amount and their guaranteed price. -
Uses of IWare in ch.sahits.game.openpatrician.model.city.guild
Methods in ch.sahits.game.openpatrician.model.city.guild that return IWare Modifier and Type Method Description IWareITradeAgreement. getWare()Retrieve the ware for this trade agreement.Methods in ch.sahits.game.openpatrician.model.city.guild that return types with arguments of type IWare 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. -
Uses of IWare in ch.sahits.game.openpatrician.model.city.guild.impl
Constructors in ch.sahits.game.openpatrician.model.city.guild.impl with parameters of type IWare Constructor Description MediterreanCity(java.lang.String name, IWare consumingWare1, IWare consumingWare2, IWare producingWare1, IWare producingWare2) -
Uses of IWare in ch.sahits.game.openpatrician.model.city.impl
Methods in ch.sahits.game.openpatrician.model.city.impl that return types with arguments of type IWare 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.Methods in ch.sahits.game.openpatrician.model.city.impl with parameters of type IWare Modifier and Type Method Description voidContributions. contribute(IWare ware, int amount)Contribute the amount of the ware.intCity. getContribution(IPlayer player, IWare ware)intContributions. getContribution(IWare ware)Retrieve the contribution for the whole weekintCity. move(IWare ware, int amount, ICitizen player)Move ware into this holding.voidCityState. replaceConsumedAmount(IWare ware, double amount)Set the amount of the ware that is consumed.Constructors in ch.sahits.game.openpatrician.model.city.impl with parameters of type IWare Constructor Description Contribution(java.time.LocalDateTime timestamp, int amount, IWare ware) -
Uses of IWare in ch.sahits.game.openpatrician.model.impl
Methods in ch.sahits.game.openpatrician.model.impl that return types with arguments of type IWare Modifier and Type Method Description AmountablePrice<IWare>WareHolding. getWare(IWare ware)Retrieve theAmountablePriceof the ware as it is stored in the holdingMethods in ch.sahits.game.openpatrician.model.impl with parameters of type IWare Modifier and Type Method Description protected voidWareHolding. addNewWare(IWare ware, int amount)Add a new ware to the wares listprotected intWareHolding. computeAVGPrice(IWare ware, int amount)Compute the average price for ware that is to be purchased in the specified amount.protected booleanWareHolding. containsWare(IWare ware)Check if there is an amountable object for this wareAmountablePrice<IWare>WareHolding. getWare(IWare ware)Retrieve theAmountablePriceof the ware as it is stored in the holdingintWareHolding. move(IWare ware, int amount, ICitizen player)Move ware into this holding. -
Uses of IWare in ch.sahits.game.openpatrician.model.map
Methods in ch.sahits.game.openpatrician.model.map that return types with arguments of type IWare Modifier and Type Method Description java.util.Set<IWare>ITradeRouteStop. getWaresToBuy()Retrieve the wares that should be bought at this trade stop. -
Uses of IWare in ch.sahits.game.openpatrician.model.people
Methods in ch.sahits.game.openpatrician.model.people that return IWare Modifier and Type Method Description IWareIBuyer. getWare()Wares that are to be delivered.IWareIContractBroker. getWare()The ware that should be delivered.IWareITradePerson. getWare()The ware the broker is to be delivered.Methods in ch.sahits.game.openpatrician.model.people that return types with arguments of type IWare 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.Methods in ch.sahits.game.openpatrician.model.people with parameters of type IWare Modifier and Type Method Description voidIInformant. setNeededWare(ICity city, IWare ware)Set the information about the needed ware in the city.voidIBuyer. setWare(IWare ware)Set the ware to be supplied.voidITradePerson. setWare(IWare ware)Set the ware for the trade.voidIInformant. setWareSurplus(ICity city, IWare ware)Set the information about the surplus ware in the cityMethod parameters in ch.sahits.game.openpatrician.model.people with type arguments of type IWare Modifier and Type Method Description voidIBuyer. setAmountablePrice(AmountablePrice<IWare> amountablePrice)Define the amount and price for the ware. -
Uses of IWare in ch.sahits.game.openpatrician.model.people.impl
Methods in ch.sahits.game.openpatrician.model.people.impl that return IWare Modifier and Type Method Description IWareTraderState. getWare()Methods in ch.sahits.game.openpatrician.model.people.impl with parameters of type IWare Modifier and Type Method Description voidInformantState. setNeededWare(ICity city, IWare ware)voidTraderState. setWare(IWare ware)voidInformantState. setWareSurplus(ICity city, IWare ware)Constructors in ch.sahits.game.openpatrician.model.people.impl with parameters of type IWare Constructor Description ContractBrookerState(AmountablePrice<IWare> amountAndPrice, IWare ware)Constructor parameters in ch.sahits.game.openpatrician.model.people.impl with type arguments of type IWare Constructor Description ContractBrookerState(AmountablePrice<IWare> amountAndPrice, IWare ware) -
Uses of IWare in ch.sahits.game.openpatrician.model.player
Methods in ch.sahits.game.openpatrician.model.player with parameters of type IWare Modifier and Type Method Description java.util.List<ICity>IProductionConsumptionKnowledge. findCitiesWithNeedMinimalDistance(ICity distanceToCity, IWare ware, INavigableVessel vessel)Find cities that need thewareand 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.intICityProductionConsumptionKnowledge. getConsumptionAmount(IWare ware)Retrieve the consumption amount for a ware.intICityProductionConsumptionKnowledge. getProductionAmount(IWare ware)Retrieve the consumption amount for a ware.intICityProductionConsumptionKnowledge. getStoredAmount(IWare ware)Retrieve the stored amount for a ware. -
Uses of IWare in ch.sahits.game.openpatrician.model.product
Classes in ch.sahits.game.openpatrician.model.product that implement IWare Modifier and Type Class Description classEWareDefine the different type of wares that are produced and can be traded.Methods in ch.sahits.game.openpatrician.model.product that return types with arguments of type IWare 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.Methods in ch.sahits.game.openpatrician.model.product with parameters of type IWare Modifier and Type Method Description doubleProductionChain. getProduction(IWare ware)doubleProductionChain. getRequiredAmount(IWare wareToBeProduced, IWare requiredWare)Get the required amount ofrequiredWareto producewareToBeProducedwithin a week.java.util.List<IWare>ProductionChain. getRequiredWares(IWare wareToBeProduced) -
Uses of IWare in ch.sahits.game.openpatrician.model.service
Methods in ch.sahits.game.openpatrician.model.service with parameters of type IWare Modifier and Type Method Description java.lang.StringModelTranslations. getLocalDisplayName(IWare ware)Retrieve the localized display name forid. -
Uses of IWare in ch.sahits.game.openpatrician.model.ship
Methods in ch.sahits.game.openpatrician.model.ship that return types with arguments of type IWare Modifier and Type Method Description java.util.Set<IWare>INavigableVessel. getLoadedWares()Retrieve a list of all loaded waresAmountablePrice<IWare>INavigableVessel. getWare(IWare ware)Retrieve the amount of ware loadedMethods in ch.sahits.game.openpatrician.model.ship with parameters of type IWare Modifier and Type Method Description AmountablePrice<IWare>INavigableVessel. getWare(IWare ware)Retrieve the amount of ware loadedintINavigableVessel. load(IWare ware, int amount, int avgPrice)Load the ware in the specified amount onto the ship.intINavigableVessel. unload(IWare ware, int amount)Unload the specified quantity of the ware. -
Uses of IWare in ch.sahits.game.openpatrician.model.ship.impl
Methods in ch.sahits.game.openpatrician.model.ship.impl that return types with arguments of type IWare 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)Methods in ch.sahits.game.openpatrician.model.ship.impl with parameters of type IWare Modifier and Type Method Description AmountablePrice<IWare>Convoy. getWare(IWare ware)AmountablePrice<IWare>Ship. getWare(IWare ware)AmountablePrice<IWare>ShipGroup. getWare(IWare ware)intConvoy. load(IWare ware, int amount, int avgPrice)The wares are loaded onto the ships in the convoy in the iteration order.intShip. load(IWare ware, int amount, int avgPrice)Load the ware in the specified amount onto the ship.intShipGroup. load(IWare ware, int amount, int avgPrice)intConvoy. unload(IWare ware, int amount)Unload the wares from the ships in the convoy in the iteration order.intShip. unload(IWare ware, int amount)Unload the specified quantity of the ware.intShipGroup. unload(IWare ware, int amount)
-