Class TrackLambda2
java.lang.Object
TrackLambda2
- All Implemented Interfaces:
- ISimUICallback
public class TrackLambda2
- extends java.lang.Object
- implements ISimUICallback
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TrackLambda2
public TrackLambda2()
setTrackParams
public void setTrackParams(int nAgentToTrack,
double lfTCom)
- Parameters:
nAgentToTrack
- lfVelTimesTCom
-
setStrengthFunc
public void setStrengthFunc(ICommStrengthFunc strenFunc)
doCallback
public boolean doCallback(double[] arrLfState,
IAgent agent,
StateBundle[] arrStates,
ISensor[] arrSensors,
IEnvironment env,
CommGraph graph,
double lfSimTime)
- Description copied from interface:
ISimUICallback
- Callback function
- Specified by:
doCallback
in interface ISimUICallback
- Parameters:
arrLfState
- state vector (initially initial state,
overwritten with final state)agent
- agent mapping (currently only support for homogenous swarms
)arrStates
- non-position components of
state of each agent (logic vars and control
function)arrSensors
- array of sensor interfaces.env
- environmentgraph
- new communication graph (if an update is needed
pass null otherwise)lfSimTime
- current simulated time
- Returns:
- true if something unusual has happened
getLastObject
public java.lang.Object getLastObject()
- Description copied from interface:
ISimUICallback
- In case we need more info then true/false from doCallback
- Specified by:
getLastObject
in interface ISimUICallback
- Returns:
- arbitrary object (meaning depends on derived class)