Interface IPosBcast

All Superinterfaces:
ILogicVarBundle
All Known Implementing Classes:
BcastStorage

public interface IPosBcast
extends ILogicVarBundle

Interface for all-to-all broadcast algorithms


Nested Class Summary
static interface IPosBcast.IPosBcastMsg
           
 
Method Summary
 void forceUpdate(int nId, double[] arrLfPos, double lfTime)
           
 int getDim()
           
 double getLastTime(int nAgent)
          Gets the time when the position estimate for nAgent was last valid
 IPosBcast.IPosBcastMsg getMsg()
          not neccessarily const, could modify state
 int getNumAgents()
          Gets number of agents in swarm
 double[] getPos(int nAgent)
          Gets the most recent known position of agent nAgent
 boolean haveAllInfo()
          Returns true if the information on each agent is valid, false otherwise
 boolean haveInfo(int nAgent)
          Returns true if the information on this agent is valid, false otherwise
 
Methods inherited from interface ILogicVarBundle
getBoolVar, getId, getIntVar, insertBoolVar, insertIntVar, makeCopy, removeVar, setId
 

Method Detail

getDim

int getDim()
Returns:
dimensionality in which these agents live

haveInfo

boolean haveInfo(int nAgent)
Returns true if the information on this agent is valid, false otherwise

Parameters:
nAgent - unique identifier of agent we are requesting the position of
Returns:
true if we have any info

haveAllInfo

boolean haveAllInfo()
Returns true if the information on each agent is valid, false otherwise

Returns:
true if we have info for every agent

getPos

double[] getPos(int nAgent)
Gets the most recent known position of agent nAgent

Parameters:
nAgent - unique identifier of agent we are requesting the position of
Returns:
position array

getLastTime

double getLastTime(int nAgent)
Gets the time when the position estimate for nAgent was last valid

Parameters:
nAgent - unique identifier of agent we are requesting info about
Returns:
time position data for nAgent was last valid

getNumAgents

int getNumAgents()
Gets number of agents in swarm

Returns:
number of agents

getMsg

IPosBcast.IPosBcastMsg getMsg()
not neccessarily const, could modify state

Returns:

forceUpdate

void forceUpdate(int nId,
                 double[] arrLfPos,
                 double lfTime)