|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object RandomConnectedInit
public class RandomConnectedInit
Creates a random flock of robots in an n-dimensional box
Nested Class Summary | |
---|---|
class |
RandomConnectedInit.VecComp
|
Constructor Summary | |
---|---|
RandomConnectedInit(int nAgents,
double[] arrLfSizes,
double lfRad)
constructor specifying number of agents, the dimensionality in which they live, and the size of the containing box along each dimension. |
|
RandomConnectedInit(int nAgents,
double[] arrLfMin,
double[] arrLfMax,
double lfRad)
constructor specifying number of agents, the dimensionality in which they live, and the size of the containing box along each dimension. |
|
RandomConnectedInit(int nAgents,
int nDim,
double lfRad)
constructor specifying number of agents and dimensionality in which they live. |
Method Summary | |
---|---|
IEnvironment |
getEnv()
|
double[] |
getInitContState()
Initial continuous state vector |
StateBundle[] |
getInitDiscreteState()
convenient to have this... |
int |
getNumAgents()
|
boolean |
isAgentCompatible(IAgent agent)
|
void |
resetState()
|
void |
setDefaultIniControlFunc(IControlFunc copyMe)
Default initial control func (implementation may ignore) |
void |
setDefaultIniVars(ILogicVarBundle copyMe)
Default initial logic var state (implementation may ignore) |
void |
setMinRad(double lfMinRad)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RandomConnectedInit(int nAgents, int nDim, double lfRad)
nAgents
- number of agentsnDim
- dimensionality in which they livepublic RandomConnectedInit(int nAgents, double[] arrLfSizes, double lfRad)
nAgents
- number of agentsarrLfSizes
- length, height, width, etc of box
in which agents live-arrLfSizes.length is dimensionality.public RandomConnectedInit(int nAgents, double[] arrLfMin, double[] arrLfMax, double lfRad)
nAgents
- number of agentsarrLfMin
- min corner of box in which agents live.arrLfMax
- max corner of box in which agents live.Method Detail |
---|
public void setMinRad(double lfMinRad)
public void setDefaultIniVars(ILogicVarBundle copyMe)
IInitializer
setDefaultIniVars
in interface IInitializer
public void setDefaultIniControlFunc(IControlFunc copyMe)
IInitializer
setDefaultIniControlFunc
in interface IInitializer
public double[] getInitContState()
getInitContState
in interface IInitializer
public void resetState()
resetState
in interface IInitializer
public IEnvironment getEnv()
getEnv
in interface IInitializer
public int getNumAgents()
getNumAgents
in interface IInitializer
public StateBundle[] getInitDiscreteState()
getInitDiscreteState
in interface IInitializer
public boolean isAgentCompatible(IAgent agent)
isAgentCompatible
in interface IInitializer
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |