|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object LogicVarIntLookup
public class LogicVarIntLookup
Implementation of ILogicVarBundle that just wraps an int map.
ILogicVarBundle is the interface for the discrete component of robotic agent state. This is the component of DiscreteAgentState that gets fed back into the agent for the next round of
Constructor Summary | |
---|---|
LogicVarIntLookup()
|
|
LogicVarIntLookup(LogicVarIntLookup src)
|
Method Summary | |
---|---|
protected void |
copyFrom(LogicVarIntLookup src)
just a little thing to help out derived classes. |
java.lang.Boolean |
getBoolVar(java.lang.Object refObject)
gets a Boolean (wrapping a boolean) referred to by an object. |
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. |
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 |
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 LogicVarIntLookup()
public LogicVarIntLookup(LogicVarIntLookup src)
Method Detail |
---|
protected void copyFrom(LogicVarIntLookup src)
src
- public ILogicVarBundle makeCopy()
makeCopy
in interface ILogicVarBundle
public int getId()
getId
in interface ILogicVarBundle
public void setId(int nId)
setId
in interface ILogicVarBundle
public java.lang.Integer getIntVar(java.lang.Object refObject)
getIntVar
in interface ILogicVarBundle
public void removeVar(java.lang.Object refObject)
removeVar
in interface ILogicVarBundle
refObject
- remove values associated with this.public boolean insertIntVar(java.lang.Object refObject, int nValue)
insertIntVar
in interface ILogicVarBundle
getIntVar(java.lang.Object)
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
getBoolVar(java.lang.Object)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |