Class ProductionConsumptionKnowledge

  • All Implemented Interfaces:
    ch.sahits.game.openpatrician.model.player.IProductionConsumptionKnowledge

    public class ProductionConsumptionKnowledge
    extends java.lang.Object
    implements ch.sahits.game.openpatrician.model.player.IProductionConsumptionKnowledge
    Implementation of the knowlege of all cities
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<ch.sahits.game.openpatrician.model.city.ICity> findCitiesWithNeedMinimalDistance​(ch.sahits.game.openpatrician.model.city.ICity distanceToCity, ch.sahits.game.openpatrician.model.product.IWare ware, ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel)  
      java.util.List<ch.sahits.game.openpatrician.model.city.ICity> findListWithConsumptionMinimalDistance​(ch.sahits.game.openpatrician.model.city.ICity distanceToCity, ch.sahits.game.openpatrician.model.product.IWare ware, ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel)  
      java.util.List<ch.sahits.game.openpatrician.model.city.ICity> findListWithProductionsMinimalDistance​(ch.sahits.game.openpatrician.model.city.ICity distanceToCity, ch.sahits.game.openpatrician.model.product.IWare ware, ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel)  
      ch.sahits.game.openpatrician.model.player.ICityProductionConsumptionKnowledge getKnowlege​(ch.sahits.game.openpatrician.model.city.ICity city)  
      void updateKnowledge​(ch.sahits.game.openpatrician.model.city.ICity city)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ProductionConsumptionKnowledge

        public ProductionConsumptionKnowledge()
    • Method Detail

      • updateKnowledge

        public void updateKnowledge​(ch.sahits.game.openpatrician.model.city.ICity city)
        Specified by:
        updateKnowledge in interface ch.sahits.game.openpatrician.model.player.IProductionConsumptionKnowledge
      • getKnowlege

        public ch.sahits.game.openpatrician.model.player.ICityProductionConsumptionKnowledge getKnowlege​(ch.sahits.game.openpatrician.model.city.ICity city)
        Specified by:
        getKnowlege in interface ch.sahits.game.openpatrician.model.player.IProductionConsumptionKnowledge
      • findListWithProductionsMinimalDistance

        public java.util.List<ch.sahits.game.openpatrician.model.city.ICity> findListWithProductionsMinimalDistance​(ch.sahits.game.openpatrician.model.city.ICity distanceToCity,
                                                                                                                    ch.sahits.game.openpatrician.model.product.IWare ware,
                                                                                                                    ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel)
        Specified by:
        findListWithProductionsMinimalDistance in interface ch.sahits.game.openpatrician.model.player.IProductionConsumptionKnowledge
      • findListWithConsumptionMinimalDistance

        public java.util.List<ch.sahits.game.openpatrician.model.city.ICity> findListWithConsumptionMinimalDistance​(ch.sahits.game.openpatrician.model.city.ICity distanceToCity,
                                                                                                                    ch.sahits.game.openpatrician.model.product.IWare ware,
                                                                                                                    ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel)
        Specified by:
        findListWithConsumptionMinimalDistance in interface ch.sahits.game.openpatrician.model.player.IProductionConsumptionKnowledge
      • findCitiesWithNeedMinimalDistance

        public java.util.List<ch.sahits.game.openpatrician.model.city.ICity> findCitiesWithNeedMinimalDistance​(ch.sahits.game.openpatrician.model.city.ICity distanceToCity,
                                                                                                               ch.sahits.game.openpatrician.model.product.IWare ware,
                                                                                                               ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel)
        Specified by:
        findCitiesWithNeedMinimalDistance in interface ch.sahits.game.openpatrician.model.player.IProductionConsumptionKnowledge