Class SimpAgentTreeTopo.TreeTopoInfo

java.lang.Object
  extended by 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.


Constructor Summary
SimpAgentTreeTopo.TreeTopoInfo()
           
SimpAgentTreeTopo.TreeTopoInfo(SimpAgentTreeTopo.TreeTopoInfo src)
           
 
Method Summary
 int getId()
           
 int getNumDesc()
           
 int getStart()
           
 void handleChild(SimpAgentTreeTopo.TreeTopoInfo infChild)
           
 void handleParent(SimpAgentTreeTopo.TreeTopoInfo infParent)
           
 int incrDesc(int nIncrBy)
           
 boolean isDesc(SimpAgentTreeTopo.TreeTopoInfo compare)
           
 boolean isDesc(TreeConstraintState compare)
           
 SimpAgentTreeTopo.TreeTopoInfo makeCopy()
           
 void setId(int nId)
           
 void setNumDesc(int nNumDesc)
           
 void setStart(int nStart)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpAgentTreeTopo.TreeTopoInfo

public SimpAgentTreeTopo.TreeTopoInfo()

SimpAgentTreeTopo.TreeTopoInfo

public SimpAgentTreeTopo.TreeTopoInfo(SimpAgentTreeTopo.TreeTopoInfo src)
Method Detail

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)