|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectControlFuncMoveTowards
public class ControlFuncMoveTowards
Control function implementing "move towards point"
| Constructor Summary | |
|---|---|
ControlFuncMoveTowards()
|
|
ControlFuncMoveTowards(ControlFuncMoveTowards src)
|
|
ControlFuncMoveTowards(double[] arrPtTowards,
double lfVel)
|
|
ControlFuncMoveTowards(double[] arrPtTowards,
double lfVel,
int nFlag)
|
|
ControlFuncMoveTowards(double lfXDst,
double lfYDst,
double lfVel)
|
|
| 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 |
double |
getEpsilon()
gets "epsilon" (floating point values "epsilon" apart are considered to be equal) Meaningful to numerical simulation, but meaningless to underlying system being modelled. |
int |
getNumStateVars()
returns dimensionality of the state vector corresponding to one agent |
double[] |
getTowards()
Use of getTowards is highly discouraged -- intend to deprecate |
double |
getVel()
|
IControlFunc |
makeCopy()
clones this object (similar to "clone" supported by IClonable interface). |
void |
setEpsilon(double lfNewEpsilon)
sets "epsilon" (floating point values "epsilon" apart are considered to be equal) Meaningful to numerical simulation, but meaningless to underlying system being modelled. |
void |
setTowards(double[] arrPtTowards)
sets a new point to move towards, possibly re-assigning control function dimension (some care must be taken by programmer here) |
void |
setVel(double lfVel)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ControlFuncMoveTowards()
public ControlFuncMoveTowards(ControlFuncMoveTowards src)
public ControlFuncMoveTowards(double[] arrPtTowards,
double lfVel)
public ControlFuncMoveTowards(double[] arrPtTowards,
double lfVel,
int nFlag)
public ControlFuncMoveTowards(double lfXDst,
double lfYDst,
double lfVel)
| Method Detail |
|---|
public void setEpsilon(double lfNewEpsilon)
public double getEpsilon()
public void setTowards(double[] arrPtTowards)
public double[] getTowards()
public void setVel(double lfVel)
public double getVel()
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 boolean directionConstantQ(double lfCurrTime,
double[] arrLfStateSrc,
ISensor sensors,
IEnvironment env,
ILogicVarBundle logicVars,
int nIdxOffsetState)
directionConstantQ in interface IControlFuncpublic int getNumStateVars()
getNumStateVars in interface IControlFunc
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||