|
JSettlers v1.0.6 API Built ${date} |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsoc.robot.SOCTradeTree
This is a tree that contains possible trade offers and how they're related to each other. Also contains a flag for wheather or not this offer should be expanded to other offers.
Constructor Summary | |
SOCTradeTree(SOCResourceSet set)
this is a constructor |
|
SOCTradeTree(SOCResourceSet set,
SOCTradeTree par)
this is a constructor |
Method Summary | |
void |
addChild(SOCTradeTree child)
add a child to this node |
java.util.Vector |
getChildren()
|
SOCTradeTree |
getParent()
|
SOCResourceSet |
getResourceSet()
|
boolean |
needsToBeExpanded()
|
void |
setNeedsToBeExpanded(boolean value)
set the needs to be expanded flag |
void |
setParent(SOCTradeTree p)
set the parent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SOCTradeTree(SOCResourceSet set, SOCTradeTree par)
set
- the set of resourcespar
- the parent of this nodepublic SOCTradeTree(SOCResourceSet set)
set
- the set of resourcesMethod Detail |
public SOCResourceSet getResourceSet()
public SOCTradeTree getParent()
public boolean needsToBeExpanded()
public java.util.Vector getChildren()
public void setParent(SOCTradeTree p)
p
- the parent nodepublic void setNeedsToBeExpanded(boolean value)
value
- the value of the flagpublic void addChild(SOCTradeTree child)
child
- the node to be added
|
JSettlers v1.0.6 API Built ${date} |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |