Package net.sf.freecol.common.model
Class WorkLocation.Suggestion
- java.lang.Object
-
- net.sf.freecol.common.model.WorkLocation.Suggestion
-
- Enclosing class:
- WorkLocation
public static class WorkLocation.Suggestion extends java.lang.ObjectContainer class to suggest a better use of a unit.
-
-
Field Summary
Fields Modifier and Type Field Description intamountstatic java.util.Comparator<WorkLocation.Suggestion>descendingAmountComparatorGoodsTypegoodsTypeUnitTypenewTypeUnitTypeoldTypeWorkLocationworkLocation
-
Constructor Summary
Constructors Constructor Description Suggestion(WorkLocation workLocation, UnitType oldType, UnitType newType, GoodsType goodsType, int amount)Suggest that work done by (optional)oldTypewould be better done bynewTypebecause it could produceamountmoregoodsType.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAmount()GoodsTypegetGoodsType()UnitTypegetNewUnitType()
-
-
-
Field Detail
-
descendingAmountComparator
public static final java.util.Comparator<WorkLocation.Suggestion> descendingAmountComparator
-
workLocation
public final WorkLocation workLocation
-
oldType
public final UnitType oldType
-
newType
public final UnitType newType
-
goodsType
public final GoodsType goodsType
-
amount
public final int amount
-
-
Constructor Detail
-
Suggestion
public Suggestion(WorkLocation workLocation, UnitType oldType, UnitType newType, GoodsType goodsType, int amount)
Suggest that work done by (optional)oldTypewould be better done bynewTypebecause it could produceamountmoregoodsType.- Parameters:
workLocation- TheWorkLocationto add a unit to.oldType- The optionalUnitTypecurrently doing the work.newType- A newUnitTypeto do the work.goodsType- TheGoodsTypeto produce.amount- The extra goods that would be produced if the suggestion is taken.
-
-