|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object MorphSpecStoredVals
public class MorphSpecStoredVals
Storage class for per-agent information neccessary to perform formation morphing.
Constructor Summary | |
---|---|
MorphSpecStoredVals()
|
|
MorphSpecStoredVals(int nSize)
|
Method Summary | |
---|---|
void |
addAgent(double[] arrLfPos,
int nParent)
Adds an agent. |
void |
convertVals()
Converts position and parent information into morph spec information. |
void |
dump(java.io.Writer writeTo)
Make this more then a stub later |
double[] |
getFinalUv(int nAgentId)
|
int |
getMaxDepth()
* Gets the maximum depth over all agents |
int |
getNumChildren(int nAgentId)
|
int |
getTopoDepth(int nAgentId)
|
int |
getTopoFirstVisit(int nAgentId)
|
int |
getTopoLastVisit(int nAgentId)
|
void |
load(java.io.Reader readFrom)
Make this more then a stub later |
void |
setSize(int nStartSize)
Sets number of agents. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MorphSpecStoredVals()
public MorphSpecStoredVals(int nSize)
Method Detail |
---|
public void dump(java.io.Writer writeTo)
dump
in interface IMorphSpec
public void load(java.io.Reader readFrom)
load
in interface IMorphSpec
public void setSize(int nStartSize)
public void addAgent(double[] arrLfPos, int nParent)
public void convertVals()
public double[] getFinalUv(int nAgentId)
getFinalUv
in interface IMorphSpec
public int getTopoLastVisit(int nAgentId)
getTopoLastVisit
in interface IMorphSpec
public int getTopoFirstVisit(int nAgentId)
getTopoFirstVisit
in interface IMorphSpec
public int getTopoDepth(int nAgentId)
getTopoDepth
in interface IMorphSpec
public int getNumChildren(int nAgentId)
getNumChildren
in interface IMorphSpec
public int getMaxDepth()
IMorphSpec
getMaxDepth
in interface IMorphSpec
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |