public interface IProductionConsumptionKnowledge
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<ICity> |
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> |
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> |
findListWithProductionsMinimalDistance(ICity distanceToCity,
IWare ware,
INavigableVessel vessel) |
Find cities that produce the ware and order them based on production amount and
distance.
|
ICityProductionConsumptionKnowledge |
getKnowlege(ICity city) |
Retrieve the knowledge for a city.
|
void |
updateKnowledge(ICity city) |
Update the knowledge of the city.
|
void updateKnowledge(ICity city)
city - for which the knowledge should be updated.ICityProductionConsumptionKnowledge getKnowlege(ICity city)
city - for which to retrieve the production and consumption knowledgejava.util.List<ICity> findListWithProductionsMinimalDistance(ICity distanceToCity, IWare ware, INavigableVessel vessel)
distanceToCity - city to which the producing city's distance should be considered.ware - that should be produced.vessel - for which the list is retrievedjava.util.List<ICity> findListWithConsumptionMinimalDistance(ICity distanceToCity, IWare ware, INavigableVessel vessel)
distanceToCity - city to which the consuming city's distance should be considered.ware - that should be consumed.vessel - for which the list is retrievedjava.util.List<ICity> findCitiesWithNeedMinimalDistance(ICity distanceToCity, IWare ware, INavigableVessel vessel)
ware and order them based on the need and the distance.distanceToCity - city to which the consuming city's distance should be considered.ware - that should be consumedvessel - for which the list is retrievedCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.