Class SimpAgentTreeTopo.TreeTopoInfo
java.lang.Object
SimpAgentTreeTopo.TreeTopoInfo
- All Implemented Interfaces:
- IMsg
- Enclosing class:
- SimpAgentTreeTopo
public static class SimpAgentTreeTopo.TreeTopoInfo
- extends java.lang.Object
- implements IMsg
Some design needs to happen here.
Need to figure out how to send different things for sent messages
than for states, despite the fact that the holder class in each
case is of type TreeConstraintState
Also : Need to send desired start number to children (different
for each child), total descendants to parent, and store correct
start num and num descendants.
Design
Needs to store map from child to start number.
Needs to set own start number to that send by parent.
Needs to send child start number to appropriate child.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpAgentTreeTopo.TreeTopoInfo
public SimpAgentTreeTopo.TreeTopoInfo()
SimpAgentTreeTopo.TreeTopoInfo
public SimpAgentTreeTopo.TreeTopoInfo(SimpAgentTreeTopo.TreeTopoInfo src)
makeCopy
public SimpAgentTreeTopo.TreeTopoInfo makeCopy()
- Specified by:
makeCopy
in interface IMsg
getId
public int getId()
setId
public void setId(int nId)
getStart
public int getStart()
setStart
public void setStart(int nStart)
getNumDesc
public int getNumDesc()
setNumDesc
public void setNumDesc(int nNumDesc)
incrDesc
public int incrDesc(int nIncrBy)
handleParent
public void handleParent(SimpAgentTreeTopo.TreeTopoInfo infParent)
handleChild
public void handleChild(SimpAgentTreeTopo.TreeTopoInfo infChild)
isDesc
public boolean isDesc(TreeConstraintState compare)
isDesc
public boolean isDesc(SimpAgentTreeTopo.TreeTopoInfo compare)