|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectPairLogicVarBundle
public class PairLogicVarBundle
This class is a little weird. The intent is that one casts an ILogicVarBundle to one of these, and uses the get and set methods on the first and second members. Directly accessing "get" and "set" for this class will fail for everything except for agentId methods.
| Constructor Summary | |
|---|---|
PairLogicVarBundle()
|
|
PairLogicVarBundle(ILogicVarBundle varsFirst,
ILogicVarBundle varsSecond)
|
|
| Method Summary | |
|---|---|
ILogicVarBundle |
accessFirst()
|
ILogicVarBundle |
accessSecond()
|
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 |
setFirst(ILogicVarBundle varsFirst)
|
void |
setId(int nId)
Sets unique Id of this agent |
void |
setSecond(ILogicVarBundle varsSecond)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PairLogicVarBundle()
public PairLogicVarBundle(ILogicVarBundle varsFirst,
ILogicVarBundle varsSecond)
| Method Detail |
|---|
public void setFirst(ILogicVarBundle varsFirst)
public void setSecond(ILogicVarBundle varsSecond)
public ILogicVarBundle accessFirst()
public ILogicVarBundle accessSecond()
public java.lang.Boolean getBoolVar(java.lang.Object refObject)
ILogicVarBundle
getBoolVar in interface ILogicVarBundlepublic int getId()
ILogicVarBundle
getId in interface ILogicVarBundlepublic java.lang.Integer getIntVar(java.lang.Object refObject)
ILogicVarBundle
getIntVar in interface ILogicVarBundlepublic void removeVar(java.lang.Object refObject)
removeVar in interface ILogicVarBundlerefObject - remove values associated with this.
public boolean insertBoolVar(java.lang.Object refObject,
boolean bValue)
ILogicVarBundle
insertBoolVar in interface ILogicVarBundleILogicVarBundle.getBoolVar(java.lang.Object)
public boolean insertIntVar(java.lang.Object refObject,
int nValue)
ILogicVarBundle
insertIntVar in interface ILogicVarBundleILogicVarBundle.getIntVar(java.lang.Object)public ILogicVarBundle makeCopy()
ILogicVarBundle
makeCopy in interface ILogicVarBundlepublic void setId(int nId)
ILogicVarBundle
setId in interface ILogicVarBundle
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||