|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.freecol.common.model.ProductionMap.ProductionTree
public class ProductionMap.ProductionTree
| Field Summary | |
|---|---|
private java.util.List<AbstractGoods> |
leafs
The abstract goods that are actually produced. |
private AbstractGoods |
root
The abstract goods all other types of goods in this tree are finally stored as. |
| Constructor Summary | |
|---|---|
ProductionMap.ProductionTree(AbstractGoods root,
AbstractGoods... leafs)
|
|
| Method Summary | |
|---|---|
void |
add(AbstractGoods goods)
|
AbstractGoods |
get(GoodsType type)
|
java.util.List<AbstractGoods> |
getLeafs()
Get the Leafs value. |
AbstractGoods |
getRoot()
Get the Root value. |
int |
remove(AbstractGoods goods)
|
void |
setLeafs(java.util.List<AbstractGoods> newLeafs)
Set the Leafs value. |
void |
setRoot(AbstractGoods newRoot)
Set the Root value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private AbstractGoods root
private java.util.List<AbstractGoods> leafs
| Constructor Detail |
|---|
public ProductionMap.ProductionTree(AbstractGoods root,
AbstractGoods... leafs)
| Method Detail |
|---|
public final AbstractGoods getRoot()
Root value.
AbstractGoods valuepublic final void setRoot(AbstractGoods newRoot)
Root value.
newRoot - The new Root value.public final java.util.List<AbstractGoods> getLeafs()
Leafs value.
List valuepublic final void setLeafs(java.util.List<AbstractGoods> newLeafs)
Leafs value.
newLeafs - The new Leafs value.public void add(AbstractGoods goods)
public int remove(AbstractGoods goods)
public AbstractGoods get(GoodsType type)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||