|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object BcastStorage
public class BcastStorage
Nested Class Summary | |
---|---|
static class |
BcastStorage.BcastStorageMsg
|
static class |
BcastStorage.BcastStorageMsgCompound
|
Nested classes/interfaces inherited from interface IPosBcast |
---|
IPosBcast.IPosBcastMsg |
Constructor Summary | |
---|---|
BcastStorage()
|
|
BcastStorage(BcastStorage src)
|
|
BcastStorage(int nAgents)
|
Method Summary | |
---|---|
void |
forceUpdate(int nId,
double[] arrLfPos,
double lfTime)
|
java.lang.Boolean |
getBoolVar(java.lang.Object refObject)
gets a Boolean (wrapping a boolean) referred to by an object. |
int |
getDim()
|
int |
getId()
Gets unique Id of this agent |
java.lang.Integer |
getIntVar(java.lang.Object refObject)
gets an Integer (wrapping an int) referred to by an object. |
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 |
boolean |
insertBoolVar(java.lang.Object refObject,
boolean bValue)
inserts an boolean value (see getBoolVar). |
boolean |
insertIntVar(java.lang.Object refObject,
int nValue)
inserts an integer value (see getIntvar). |
ILogicVarBundle |
makeCopy()
makes a copy and returns it |
void |
removeVar(java.lang.Object refObject)
Removes any values indexed by refObject |
void |
reset(int nAgents,
int nDim)
|
void |
setId(int nId)
Sets unique Id of this agent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BcastStorage()
public BcastStorage(int nAgents)
public BcastStorage(BcastStorage src)
Method Detail |
---|
public int getDim()
getDim
in interface IPosBcast
public void reset(int nAgents, int nDim)
public boolean haveInfo(int nAgent)
IPosBcast
haveInfo
in interface IPosBcast
nAgent
- unique identifier of agent we are requesting the position of
public double getLastTime(int nAgent)
IPosBcast
getLastTime
in interface IPosBcast
nAgent
- unique identifier of agent we are requesting info about
public double[] getPos(int nAgent)
IPosBcast
getPos
in interface IPosBcast
nAgent
- unique identifier of agent we are requesting the position of
public void forceUpdate(int nId, double[] arrLfPos, double lfTime)
forceUpdate
in interface IPosBcast
public boolean haveAllInfo()
haveAllInfo
in interface IPosBcast
public int getNumAgents()
getNumAgents
in interface IPosBcast
public IPosBcast.IPosBcastMsg getMsg()
IPosBcast
getMsg
in interface IPosBcast
public ILogicVarBundle makeCopy()
ILogicVarBundle
makeCopy
in interface ILogicVarBundle
public void setId(int nId)
ILogicVarBundle
setId
in interface ILogicVarBundle
public java.lang.Integer getIntVar(java.lang.Object refObject)
getIntVar
in interface ILogicVarBundle
public boolean insertIntVar(java.lang.Object refObject, int nValue)
insertIntVar
in interface ILogicVarBundle
ILogicVarBundle.getIntVar(java.lang.Object)
public void removeVar(java.lang.Object refObject)
removeVar
in interface ILogicVarBundle
refObject
- remove values associated with this.public java.lang.Boolean getBoolVar(java.lang.Object refObject)
getBoolVar
in interface ILogicVarBundle
public boolean insertBoolVar(java.lang.Object refObject, boolean bValue)
insertBoolVar
in interface ILogicVarBundle
ILogicVarBundle.getBoolVar(java.lang.Object)
public int getId()
getId
in interface ILogicVarBundle
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |