|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.micropsi.comp.world.objects.AbstractObjectPart
org.micropsi.comp.world.objects.AbstractObject
org.micropsi.comp.world.objects.AbstractCommonObject
org.micropsi.comp.world.objects.AbstractAgentObject
| Field Summary | |
protected java.util.Collection |
actionAnswers
|
long |
actionsFailed
Some statistics... |
long |
actionsSuccessful
Some statistics... |
long |
timeOfBirth
|
protected double |
visionRange
|
double |
visitedHighX
Some statistics... |
double |
visitedHighY
Some statistics... |
double |
visitedLowX
Some statistics... |
double |
visitedLowY
Some statistics... |
| Fields inherited from class org.micropsi.comp.world.objects.AbstractCommonObject |
damage, maxDamage |
| Fields inherited from class org.micropsi.comp.world.objects.AbstractObject |
lastChange, moveVector, objectName, persistent, state, weight |
| Fields inherited from class org.micropsi.comp.world.objects.AbstractObjectPart |
containingPart, id, objectClass, optionalProperties, orientationAngle, partHierarchyLevel, position, requiredProperties, sizeNumberFormat, subParts, world, xSize, ySize, zSize |
| Constructor Summary | |
AbstractAgentObject(org.w3c.dom.Element configData,
Logger logger)
Used to read agent object from world file Use initObjectParameters(), not constructor, to initialise member variables! |
|
AbstractAgentObject(java.lang.String objectName,
Position pos)
Creates new agent object, sets objectClass to something usefull. |
|
AbstractAgentObject(java.lang.String objectName,
java.lang.String objectClass,
Position pos)
Creates new agent object Use initObjectParameters(), not constructor, to initialise member variables! |
|
| Method Summary | |
protected void |
addActionAnswer(MActionResponse actionResp)
|
protected void |
breakToPeaces(java.lang.String action)
|
java.lang.String |
getAgentName()
|
abstract MPerceptionResp |
getPerception()
|
java.util.Collection |
getVisibleObjects()
Method getVisibleObjects. |
double |
getVisionRange()
|
void |
handleAction(MAction action)
Executes actions in the world. |
protected void |
handleAction(MAction action,
AbstractObjectPart targetObject)
Called by handleAction(action) in order to execute the specified action (on the given object, if applicable) You should overwrite either this or handleAction(action) |
void |
init(World world)
|
protected void |
initObjectParameters()
Used to initialise member variables. |
protected void |
initProperties()
|
void |
insertStatisticDataIn(MTreeNode node)
|
void |
moveTo(Position newPosition)
|
java.util.Collection |
returnActionAnswers()
|
void |
setVisionRange(double visionRange)
|
| Methods inherited from class org.micropsi.comp.world.objects.AbstractCommonObject |
handleMessageAgentAction, setDamage, setMaxDamage, takeDamage |
| Methods inherited from class org.micropsi.comp.world.objects.AbstractObject |
_remove, defaultState, getLastChange, getMoveVector, getObjectIdentification, getObjectName, getState, getState, getWeight, initObjectState, isPersistent, logChange, rotateBy, scaleBy, setMoveVector, setObjectName, setPosition, setSize, setState, setWeight, toMTreeNode, toString, toXMLElement, toXMLElement |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected double visionRange
protected java.util.Collection actionAnswers
public long actionsSuccessful
public long actionsFailed
public long timeOfBirth
public double visitedLowX
public double visitedHighX
public double visitedLowY
public double visitedHighY
| Constructor Detail |
public AbstractAgentObject(org.w3c.dom.Element configData,
Logger logger)
throws MicropsiException
configData - logger -
MicropsiException
public AbstractAgentObject(java.lang.String objectName,
java.lang.String objectClass,
Position pos)
objectName - objectClass - pos -
public AbstractAgentObject(java.lang.String objectName,
Position pos)
objectName - pos - | Method Detail |
protected void initObjectParameters()
initObjectParameters in class AbstractObjectprotected void initProperties()
initProperties in class AbstractCommonObjectpublic java.lang.String getAgentName()
getAgentName in interface AgentObjectIFpublic abstract MPerceptionResp getPerception()
getPerception in interface AgentObjectIFpublic java.util.Collection getVisibleObjects()
public void insertStatisticDataIn(MTreeNode node)
public void handleAction(MAction action)
handleAction in interface AgentObjectIFaction - - action that should be executed
protected void handleAction(MAction action,
AbstractObjectPart targetObject)
action - targetObject - - null, if none was given
public double getVisionRange()
public void setVisionRange(double visionRange)
visionRange - The visionRange to set.protected void addActionAnswer(MActionResponse actionResp)
actionResp - public java.util.Collection returnActionAnswers()
returnActionAnswers in interface AgentObjectIFprotected void breakToPeaces(java.lang.String action)
breakToPeaces in class AbstractCommonObjectaction - public void moveTo(Position newPosition)
moveTo in class AbstractObjectPartpublic void init(World world)
init in class AbstractObject
|
(c) by Micropsi Project: http://www.cognitive-agents.org | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||