|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectRandomConnectedInitOfAtLeastN
public class RandomConnectedInitOfAtLeastN
Creates a random flock of robots in an n-dimensional box
| Constructor Summary | |
|---|---|
RandomConnectedInitOfAtLeastN(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. |
|
RandomConnectedInitOfAtLeastN(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. |
|
RandomConnectedInitOfAtLeastN(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) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RandomConnectedInitOfAtLeastN(int nAgents,
int nDim,
double lfRad)
nAgents - number of agentsnDim - dimensionality in which they live
public RandomConnectedInitOfAtLeastN(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 RandomConnectedInitOfAtLeastN(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 setDefaultIniVars(ILogicVarBundle copyMe)
IInitializer
setDefaultIniVars in interface IInitializerpublic void setDefaultIniControlFunc(IControlFunc copyMe)
IInitializer
setDefaultIniControlFunc in interface IInitializerpublic double[] getInitContState()
getInitContState in interface IInitializerpublic void resetState()
resetState in interface IInitializerpublic IEnvironment getEnv()
getEnv in interface IInitializerpublic int getNumAgents()
getNumAgents in interface IInitializerpublic StateBundle[] getInitDiscreteState()
getInitDiscreteState in interface IInitializerpublic boolean isAgentCompatible(IAgent agent)
isAgentCompatible in interface IInitializer
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||