|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object RandomInit
public class RandomInit
Creates a random flock of robots in an n-dimensional box
Constructor Summary | |
---|---|
RandomInit(int nAgents,
double[] arrLfSizes)
constructor specifying number of agents, the dimensionality in which they live, and the size of the containing box along each dimension. |
|
RandomInit(int nAgents,
int nDim)
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 RandomInit(int nAgents, int nDim)
nAgents
- number of agentsnDim
- dimensionality in which they livepublic RandomInit(int nAgents, double[] arrLfSizes)
nAgents
- number of agentsarrLfSizes
- length, height, width, etc of box
in which agents live-arrLfSizes.length is dimensionality.Method Detail |
---|
public void setDefaultIniVars(ILogicVarBundle copyMe)
IInitializer
setDefaultIniVars
in interface IInitializer
public void setDefaultIniControlFunc(IControlFunc copyMe)
IInitializer
setDefaultIniControlFunc
in interface IInitializer
public void resetState()
resetState
in interface IInitializer
public double[] getInitContState()
getInitContState
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 |