Package org.baseagent.embodied
Class EmbodiedAgent
java.lang.Object
org.baseagent.sim.SimulationComponent
org.baseagent.Agent
org.baseagent.ui.DrawableAgent
org.baseagent.sim.GridAgent
org.baseagent.embodied.EmbodiedAgent
- All Implemented Interfaces:
MessageListener,HasBody,HasFineGridPosition,HasGridPosition,HasStep,SimulationListener,Drawable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.baseagent.sim.SimulationComponent
SimulationComponent.Type -
Field Summary
Fields inherited from class org.baseagent.Agent
SIMPLE_ID_COUNTER -
Constructor Summary
ConstructorsConstructorDescriptionEmbodiedAgent(int bodyWidth, int bodyHeight) EmbodiedAgent(String gridLayerName, int bodyWidth, int bodyHeight) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoiddisjoin()getBody()voidincorporate(SBEPackage spes) voidvoidjoin(EmbodiedAgent otherAgent) voidplace(int x, int y, HasGridPosition spe) voidvoidremove(HasGridPosition spe) Methods inherited from class org.baseagent.sim.GridAgent
continueMovingToward, drop, getCellX, getCellY, getDown, getFineX, getFineY, getGrid, getGridLayer, getGridLayer, getGridPosition, getHeading, getLeft, getObjectFromLayer, getObjectFromLayer, getObjectFromLayer, getRight, getUp, isAt, isAt, isOn, isOn, moveAlong, moveAlong, moveBackward, moveBackward, moveDelta, moveDelta, moveDown, moveForward, moveForward, moveLeft, moveRandomly, moveRandomly, moveRandomly, moveRight, moveTo, moveTo, moveToward, moveToward, moveToward, moveUp, placeAt, placeRandomly, placeRandomly, rotateDelta, rotateTo, setCell, setCell, setCellX, setCellY, setFineX, setFineY, setHeading, startMovingToward, startMovingToward, take, turnAround, turnLeft, turnRightMethods inherited from class org.baseagent.ui.DrawableAgent
draw, getColor, getColorOrUse, getDrawable, getDrawX, getDrawY, removeDrawable, setColor, setDrawable, setDrawX, setDrawYMethods inherited from class org.baseagent.Agent
addBehavior, addBehavior, getBehavior, getBehaviorPolicy, getBehaviors, getInventory, getKnowledge, getSimpleID, getState, getType, give, isState, onMessageReceived, receive, removeBehavior, removeBehavior, sendDirectedMessage, sendMessage, setBehaviorPolicy, setKnowledge, setState, step, takeMethods inherited from class org.baseagent.sim.SimulationComponent
getSimulation, getUUID, setSimulationMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.baseagent.ui.Drawable
drawAfter, drawBeforeMethods inherited from interface org.baseagent.sim.SimulationListener
onAfterStepEnded, onAfterStepStarted, onBeforeStepEnded, onBeforeStepStarted, onSimulationComponentAdded, onSimulationComponentRemoved, onSimulationEnded, onSimulationPaused, onSimulationResumed, onSimulationStarted, onSimulationStopped, onStepEnded, onStepStarted
-
Constructor Details
-
EmbodiedAgent
public EmbodiedAgent(int bodyWidth, int bodyHeight) -
EmbodiedAgent
-
-
Method Details
-
join
-
disjoin
public void disjoin() -
addForce
-
processForces
public void processForces() -
getBody
-
getBodyLogic
- Specified by:
getBodyLogicin interfaceHasBody
-
getParentGridLayer
- Specified by:
getParentGridLayerin interfaceHasBody
-
place
-
incorporate
-
incorporate
-
disincorporate
-
remove
-
getSensors
-
getProcessors
-
getEffectors
-