|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object LogicVarIntLookup TreeConstraintState
public class TreeConstraintState
Discrete state for tree re-arrangement agent
Future work -- currently the "target topology information" specific to "Formation Morphing Algorithm" is combined with this class. This should not be the case. The two should be separated, and Formation Morphing Algorithm should have its own class to store this info.
Field Summary | |
---|---|
static int |
ROUND_ATTACH
faked enum for differentiating rounds |
static int |
ROUND_PROPOSE_NEW
faked enum for differentiating rounds |
static int |
ROUND_SET_PARLESS
faked enum for differentiating rounds |
static int |
ROUND_UPDATE_DEPTH
faked enum for differentiating rounds |
Constructor Summary | |
---|---|
TreeConstraintState()
Sets depth estimate to zero, parentId to -1, and m_bDfsFinished to false |
|
TreeConstraintState(int nParentId)
Sets depth estimate to zero. |
|
TreeConstraintState(int nDepth,
int nParentId)
|
|
TreeConstraintState(TreeConstraintState src)
Copy constructor - copies everything target information copied as well (valid if valid in src) |
Method Summary | |
---|---|
void |
clearDepTarg()
|
int |
getCurrRound()
accessor for current round |
java.lang.Integer |
getDepTarg()
|
int |
getDepthEst()
|
boolean |
getIncreaseDepth()
|
IMsg |
getMsgAddition(java.lang.reflect.Type t)
|
boolean |
getParDepLess()
|
int |
getParentId()
|
int |
getParentProp()
|
int |
getRootId()
|
TreeConstraintState |
incrRound()
Increment round counter (e.g which round of the algorithm we're on) This is essential for correct negotiation of constraint tree topology re-arrangements |
TreeConstraintState |
makeCopy()
makes a copy and returns it |
void |
resetDepthEst()
|
void |
setDepTarg(int nDepTarg)
|
void |
setDepthEst(int nNewDepth)
Not the preferred way to do this |
void |
setIncreaseDepth(boolean bIncreaseDepth)
|
void |
setMsgAddition(java.lang.reflect.Type t,
IMsg msg)
|
void |
setParDepLess(boolean bParDepLess)
|
void |
setParDepLess(TreeConstraintState stateParent)
|
void |
setParentId(int nParentId)
|
void |
setParentProp(int nParentProp)
|
void |
setRootId(int nRoot)
|
void |
updateDepthEst(TreeConstraintState stateParent,
int nNumStates)
|
Methods inherited from class LogicVarIntLookup |
---|
copyFrom, getBoolVar, getId, getIntVar, insertBoolVar, insertIntVar, removeVar, setId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ILogicVarBundle |
---|
getBoolVar, getId, getIntVar, insertBoolVar, insertIntVar, removeVar, setId |
Field Detail |
---|
public static final int ROUND_ATTACH
public static final int ROUND_UPDATE_DEPTH
public static final int ROUND_SET_PARLESS
public static final int ROUND_PROPOSE_NEW
Constructor Detail |
---|
public TreeConstraintState(int nDepth, int nParentId)
nDepth
- initial depth estimate (see 2006i)nParentId
- initial parent id
parent ids has finished for this node and all its childrenpublic TreeConstraintState(int nParentId)
Sets depth estimate to zero.
Final target configuration and topology information need to be set seperately.
nParentId
- initial parent id
parent ids has finished for this node and all its childrenpublic TreeConstraintState()
Sets depth estimate to zero, parentId to -1, and m_bDfsFinished to false
Final target configuration and topology information need to be set seperately.
public TreeConstraintState(TreeConstraintState src)
src
- makes new copies of everything from this stateMethod Detail |
---|
public void setMsgAddition(java.lang.reflect.Type t, IMsg msg)
public IMsg getMsgAddition(java.lang.reflect.Type t)
public TreeConstraintState makeCopy()
makeCopy
in interface ILogicVarBundle
makeCopy
in interface IMsg
makeCopy
in class LogicVarIntLookup
public java.lang.Integer getDepTarg()
public void setDepTarg(int nDepTarg)
public void clearDepTarg()
public void setIncreaseDepth(boolean bIncreaseDepth)
public boolean getIncreaseDepth()
public int getDepthEst()
public void updateDepthEst(TreeConstraintState stateParent, int nNumStates)
public void setDepthEst(int nNewDepth)
public void resetDepthEst()
public int getRootId()
public void setRootId(int nRoot)
public int getParentId()
public void setParentId(int nParentId)
public int getParentProp()
public void setParentProp(int nParentProp)
public boolean getParDepLess()
public void setParDepLess(boolean bParDepLess)
public void setParDepLess(TreeConstraintState stateParent)
public TreeConstraintState incrRound()
public int getCurrRound()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |