Interface ISimUICallback

All Known Implementing Classes:
DataCallbackAggregator, DrawObjectAggregator, DrawStartState, LambdaMaxDraw, MorphDoneCallback, SimpleSwarmDraw, SwarmPathDraw, TrackLambda2, TreeAlgDraw, TreeCallbackCatchPhase2, TreeCallbackTrackMaxDepth

public interface ISimUICallback

Interface for callbacks to UI routines (drawing and other)

Since:
1.0

Method Summary
 boolean doCallback(double[] arrLfState, IAgent agent, StateBundle[] arrStates, ISensor[] arrSensors, IEnvironment env, CommGraph graph, double lfSimTime)
          Callback function
 java.lang.Object getLastObject()
          In case we need more info then true/false from doCallback
 

Method Detail

doCallback

boolean doCallback(double[] arrLfState,
                   IAgent agent,
                   StateBundle[] arrStates,
                   ISensor[] arrSensors,
                   IEnvironment env,
                   CommGraph graph,
                   double lfSimTime)
Callback function

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 - environment
graph - new communication graph (if an update is needed pass null otherwise)
lfSimTime - current simulated time
Returns:
true if something unusual has happened

getLastObject

java.lang.Object getLastObject()
In case we need more info then true/false from doCallback

Returns:
arbitrary object (meaning depends on derived class)