Class MorphSpecFourCombs

java.lang.Object
  extended by MorphSpecFourCombs
All Implemented Interfaces:
IMorphSpec

public class MorphSpecFourCombs
extends java.lang.Object
implements IMorphSpec

Implementat ion of interface for specifying per-agent information neccessary to perform formation morphing to morph to a rectangle with a "comb" topology. Rect width is specified at construction time.

Since:
1.0

Constructor Summary
MorphSpecFourCombs()
          defaults for the first demo
MorphSpecFourCombs(int nRectWidth, double lfSpacing)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MorphSpecFourCombs

public MorphSpecFourCombs()
defaults for the first demo


MorphSpecFourCombs

public MorphSpecFourCombs(int nRectWidth,
                          double lfSpacing)
Method Detail

getFinalUv

public double[] getFinalUv(int nAgentId)
Specified by:
getFinalUv in interface IMorphSpec

getNumChildren

public int getNumChildren(int nAgentId)
Specified by:
getNumChildren in interface IMorphSpec

getTopoLastVisit

public int getTopoLastVisit(int nAgentId)
Specified by:
getTopoLastVisit in interface IMorphSpec

getTopoFirstVisit

public int getTopoFirstVisit(int nAgentId)
Specified by:
getTopoFirstVisit in interface IMorphSpec

getTopoDepth

public int getTopoDepth(int nAgentId)
Specified by:
getTopoDepth in interface IMorphSpec

getMaxDepth

public int getMaxDepth()
Description copied from interface: IMorphSpec
* Gets the maximum depth over all agents

Specified by:
getMaxDepth in interface IMorphSpec
Returns:
maximum final depth

dump

public void dump(java.io.Writer writeTo)
Make this more then a stub later

Specified by:
dump in interface IMorphSpec

load

public void load(java.io.Reader readFrom)
Make this more then a stub later

Specified by:
load in interface IMorphSpec