|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IControlFunc
Interface for control functions. These functions change at discrete time events corresponding to communication rounds, but do not persist beyond that, influence the next control func, or feed back into the next communication round.
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). |
Method Detail |
---|
IControlFunc makeCopy()
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
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.boolean directionConstantQ(double lfCurrTime, double[] arrLfStateSrc, ISensor sensors, IEnvironment env, ILogicVarBundle logicVars, int nIdxOffsetState)
int getNumStateVars()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |