|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectLogicVarIntLookup
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 ILogicVarBundlepublic int getId()
getId in interface ILogicVarBundlepublic void setId(int nId)
setId in interface ILogicVarBundlepublic java.lang.Integer getIntVar(java.lang.Object refObject)
getIntVar in interface ILogicVarBundlepublic void removeVar(java.lang.Object refObject)
removeVar in interface ILogicVarBundlerefObject - remove values associated with this.public boolean insertIntVar(java.lang.Object refObject,
int nValue)
insertIntVar in interface ILogicVarBundlegetIntVar(java.lang.Object)public java.lang.Boolean getBoolVar(java.lang.Object refObject)
getBoolVar in interface ILogicVarBundlepublic boolean insertBoolVar(java.lang.Object refObject,
boolean bValue)
insertBoolVar in interface ILogicVarBundlegetBoolVar(java.lang.Object)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||