|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ControlFuncDoNothing
public class ControlFuncDoNothing
Control function for agents which don't move. Specifies dimensionality.
Nested Class Summary | |
---|---|
class |
ControlFuncDoNothing.DimensionNotSet
Indicates that box boundaries were set with mismatched dimensionality. |
Constructor Summary | |
---|---|
protected |
ControlFuncDoNothing()
|
|
ControlFuncDoNothing(ControlFuncDoNothing src)
|
|
ControlFuncDoNothing(int nDim)
|
Method Summary | |
---|---|
boolean |
directionConstantQ(double lfCurrTime,
double[] arrLfStateSrc,
ISensor sensors,
IEnvironment env,
ILogicVarBundle logicVars,
int nIdxOffsetState)
|
void |
getDerivs(double lfCurrTime,
double[] arrLfStateSrc,
ISensor sensors,
IEnvironment env,
ILogicVarBundle logicVars,
double[] arrLfDerivDst,
int nIdxOffsetState)
Updates arrLfDerivDst with the instantaneous derivatives of the continuous-time component of the agent's state given its current state and sensor readings. |
int |
getNumStateVars()
returns dimensionality of the state vector corresponding to one agent |
IControlFunc |
makeCopy()
clones this object (similar to "clone" supported by IClonable interface). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ControlFuncDoNothing()
public ControlFuncDoNothing(int nDim)
nDim
- dimensionality agent lives inpublic ControlFuncDoNothing(ControlFuncDoNothing src)
Method Detail |
---|
public IControlFunc makeCopy()
makeCopy
in interface IControlFunc
public void getDerivs(double lfCurrTime, double[] arrLfStateSrc, ISensor sensors, IEnvironment env, ILogicVarBundle logicVars, double[] arrLfDerivDst, int nIdxOffsetState)
Updates arrLfDerivDst with the instantaneous derivatives of the continuous-time component of the agent's state given its current state and sensor readings. In the case of this control function, the derivative is set to zero, and the states and sensors are ignored.
getDerivs
in interface IControlFunc
lfCurrTime
- current time (for time-varying systems)arrLfStateSrc
- vector of global state of the systemsensors
- sensorsenv
- environmentlogicVars
- discrete components of agent internal statearrLfDerivDst
- Destination for storing derivative values.nIdxOffsetState
- Offset index into the global state vector
corresponding to the beginning of the parameters for this agent.public boolean directionConstantQ(double lfCurrTime, double[] arrLfStateSrc, ISensor sensors, IEnvironment env, ILogicVarBundle logicVars, int nIdxOffsetState)
directionConstantQ
in interface IControlFunc
public int getNumStateVars()
getNumStateVars
in interface IControlFunc
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |