|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsoc.robot.SOCTradeTree
public class 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.
| Field Summary | |
|---|---|
(package private) java.util.Vector<SOCTradeTree> |
children
|
(package private) boolean |
needsToBeExpanded
|
(package private) SOCTradeTree |
parent
|
(package private) SOCResourceSet |
resourceSet
|
| 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<SOCTradeTree> |
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 |
| Field Detail |
|---|
SOCResourceSet resourceSet
SOCTradeTree parent
java.util.Vector<SOCTradeTree> children
boolean needsToBeExpanded
| 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 resources| Method Detail |
|---|
public SOCResourceSet getResourceSet()
public SOCTradeTree getParent()
public boolean needsToBeExpanded()
public java.util.Vector<SOCTradeTree> 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||