net.sf.freecol.server.ai
Class ProductionCache

java.lang.Object
  extended by net.sf.freecol.server.ai.ProductionCache

public class ProductionCache
extends java.lang.Object


Nested Class Summary
 class ProductionCache.Entry
           
 
Constructor Summary
ProductionCache(Colony colony)
           
 
Method Summary
 void assign(ProductionCache.Entry entry)
           
 int decrementUnitCount(BuildingType buildingType)
           
 java.util.List<ProductionCache.Entry> getAssigned()
           
 java.util.List<ProductionCache.Entry> getEntries(GoodsType goodsType)
           
 java.util.List<ProductionCache.Entry> getEntries(java.util.List<GoodsType> goodsTypes)
           
 java.util.List<ProductionCache.Entry> getEntries(java.util.List<GoodsType> goodsTypes, boolean useMarketValues)
           
 java.util.List<ProductionCache.Entry> getReserved()
           
 int getUnitCount()
           
 int getUnitCount(BuildingType buildingType)
           
 java.util.Set<Unit> getUnits()
           
static java.util.List<ProductionCache.Entry> removeEntries(Unit unit, WorkLocation workLocation, java.util.List<ProductionCache.Entry> entryList)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProductionCache

public ProductionCache(Colony colony)
Method Detail

getUnits

public java.util.Set<Unit> getUnits()

getUnitCount

public int getUnitCount()

getUnitCount

public int getUnitCount(BuildingType buildingType)

decrementUnitCount

public int decrementUnitCount(BuildingType buildingType)

getAssigned

public java.util.List<ProductionCache.Entry> getAssigned()

getReserved

public java.util.List<ProductionCache.Entry> getReserved()

getEntries

public java.util.List<ProductionCache.Entry> getEntries(GoodsType goodsType)

getEntries

public java.util.List<ProductionCache.Entry> getEntries(java.util.List<GoodsType> goodsTypes)

getEntries

public java.util.List<ProductionCache.Entry> getEntries(java.util.List<GoodsType> goodsTypes,
                                                        boolean useMarketValues)

assign

public void assign(ProductionCache.Entry entry)

removeEntries

public static java.util.List<ProductionCache.Entry> removeEntries(Unit unit,
                                                                  WorkLocation workLocation,
                                                                  java.util.List<ProductionCache.Entry> entryList)