|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectControlFuncMoveDir
public class ControlFuncMoveDir
Control function implementing "move in a direction"
| Constructor Summary | |
|---|---|
ControlFuncMoveDir()
|
|
ControlFuncMoveDir(ControlFuncMoveDir src)
|
|
ControlFuncMoveDir(double[] arrPtTowards)
|
|
ControlFuncMoveDir(double lfX,
double lfY)
|
|
| 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 nIdxOff)
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 |
double[] |
getVel()
|
double[] |
getVelCopy()
|
IControlFunc |
makeCopy()
clones this object (similar to "clone" supported by IClonable interface). |
void |
setVel(double[] arrVel)
sets a new point to move towards, possibly re-assigning control function dimension (some care must be taken by programmer here) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ControlFuncMoveDir()
public ControlFuncMoveDir(ControlFuncMoveDir src)
public ControlFuncMoveDir(double lfX,
double lfY)
public ControlFuncMoveDir(double[] arrPtTowards)
| Method Detail |
|---|
public boolean directionConstantQ(double lfCurrTime,
double[] arrLfStateSrc,
ISensor sensors,
IEnvironment env,
ILogicVarBundle logicVars,
int nIdxOffsetState)
directionConstantQ in interface IControlFuncpublic void setVel(double[] arrVel)
public double[] getVel()
public double[] getVelCopy()
public IControlFunc makeCopy()
makeCopy in interface IControlFuncpublic void getDerivs(double lfCurrTime,
double[] arrLfStateSrc,
ISensor sensors,
IEnvironment env,
ILogicVarBundle logicVars,
double[] arrLfDerivDst,
int nIdxOff)
Updates arrLfDerivDst with the instantaneous derivatives of the continuous-time component of the agent's state given its current state and sensor readings
getDerivs in interface IControlFunclfCurrTime - 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.nIdxOff - Offset index into the global state vector
corresponding to the beginning of the parameters for this agent.public int getNumStateVars()
getNumStateVars in interface IControlFunc
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||