Class CityProductionConsumptionKnowledge

    • Field Detail

      • productionAmounts

        private java.util.Map<IWare,​java.lang.Integer> productionAmounts
      • consumptionAmounts

        private java.util.Map<IWare,​java.lang.Integer> consumptionAmounts
      • storedAmounts

        private java.util.Map<IWare,​java.lang.Integer> storedAmounts
    • Constructor Detail

      • CityProductionConsumptionKnowledge

        public CityProductionConsumptionKnowledge()
    • Method Detail

      • updateProduction

        public void updateProduction​(IWare ware,
                                     int amount)
        Update the knowlege about the weekly produced amounts.
        Parameters:
        ware - that is to be updated in the production
        amount - amount of the ware that is to be updated.
      • getSortedProductionWares

        public java.util.List<IWare> getSortedProductionWares()
      • updateConsumption

        public void updateConsumption​(IWare ware,
                                      int amount)
        Update the knowledge about the weekly consumed amounts.
        Parameters:
        ware - ware that is to be consumed
        amount - amount of the ware that is to be consumed
      • updateStored

        public void updateStored​(IWare ware,
                                 int amount)
        Update the knowledge about the stored amounts.
        Parameters:
        ware - that is to be stored
        amount - amount of the ware that is to be stored