|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SimpleFlockingAgent.SimpFlockState
public static class SimpleFlockingAgent.SimpFlockState
inner class used for flocking state
Constructor Summary | |
---|---|
SimpleFlockingAgent.SimpFlockState()
|
|
SimpleFlockingAgent.SimpFlockState(double lfHeading)
|
|
SimpleFlockingAgent.SimpFlockState(SimpleFlockingAgent.SimpFlockState src)
|
Method Summary | |
---|---|
java.lang.Boolean |
getBoolVar(java.lang.Object refObject)
gets a Boolean (wrapping a boolean) referred to by an object. |
double |
getHeading()
|
double |
getHeadingDelta(double lfHead,
double lfRate)
|
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). |
SimpleFlockingAgent.SimpFlockState |
makeCopy()
makes a copy and returns it |
void |
removeVar(java.lang.Object refObject)
Removes any values indexed by refObject |
void |
setHeading(double lfHeading)
|
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 SimpleFlockingAgent.SimpFlockState()
public SimpleFlockingAgent.SimpFlockState(double lfHeading)
public SimpleFlockingAgent.SimpFlockState(SimpleFlockingAgent.SimpFlockState src)
Method Detail |
---|
public SimpleFlockingAgent.SimpFlockState makeCopy()
makeCopy
in interface ILogicVarBundle
public java.lang.Integer getIntVar(java.lang.Object refObject)
ILogicVarBundle
getIntVar
in interface ILogicVarBundle
public boolean insertIntVar(java.lang.Object refObject, int nValue)
ILogicVarBundle
insertIntVar
in interface ILogicVarBundle
ILogicVarBundle.getIntVar(java.lang.Object)
public java.lang.Boolean getBoolVar(java.lang.Object refObject)
ILogicVarBundle
getBoolVar
in interface ILogicVarBundle
public boolean insertBoolVar(java.lang.Object refObject, boolean bValue)
ILogicVarBundle
insertBoolVar
in interface ILogicVarBundle
ILogicVarBundle.getBoolVar(java.lang.Object)
public void removeVar(java.lang.Object refObject)
removeVar
in interface ILogicVarBundle
refObject
- remove values associated with this.public int getId()
getId
in interface ILogicVarBundle
public void setId(int nId)
setId
in interface ILogicVarBundle
public double getHeading()
public void setHeading(double lfHeading)
public double getHeadingDelta(double lfHead, double lfRate)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |