|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPosBcast
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 |
---|
int getDim()
boolean haveInfo(int nAgent)
nAgent
- unique identifier of agent we are requesting the position of
boolean haveAllInfo()
double[] getPos(int nAgent)
nAgent
- unique identifier of agent we are requesting the position of
double getLastTime(int nAgent)
nAgent
- unique identifier of agent we are requesting info about
int getNumAgents()
IPosBcast.IPosBcastMsg getMsg()
void forceUpdate(int nId, double[] arrLfPos, double lfTime)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |