| Trees | Index | Help |
|
|---|
| Package svs_simulation :: Package agents :: Module basic_agents :: Class SimAgent |
|
Entity --+
|
BasicSpatialEntity --+
|
SpatialEntity --+
|
SimAgentBaseClass --+
|
SimAgent
MovingAgent| Method Summary | |
|---|---|
__init__(self)
| |
Changes current state in stateManager. | |
Returns encoded representation of self. | |
Handles event from simulation. | |
Sets new task for agent. | |
Forwards start call from world. | |
Forwards stop call from world. | |
Forwards update call from world. | |
| Inherited from SimAgentBaseClass | |
Returns string representation of object. | |
Tests if coordinates are contaiend within structure bounds. | |
Applies encoded data to self. | |
Returns maximum x coordinate from bounds. | |
Returns maximum y coordinate from bounds. | |
Returns minimum x coordinate from bounds. | |
Returns minimum y coordinate from bounds. | |
Returns name for structure. | |
Returns the bounds of the structure as mapped to the world coordinates. | |
| |
| Inherited from SpatialEntity | |
Called when entity enters a new structure. | |
Called when entity is added to world. | |
Called when entity leaves an existing structure. | |
Tests if the given coordinates lie within the world bounds of the entity. | |
| |
| |
| |
| Inherited from Entity | |
Called when entity enters a partition. | |
Called when entity is leaves a structure. | |
Called when structure is removed world. | |
| boolean |
Returns tag state. |
Sets the structure and partition that the entity is within. | |
Forwards data representing change in entity to process handler. | |
| Method Details |
|---|
changeState(self, newState)Changes current state in stateManager.
|
encode(self)Returns encoded representation of self. @rtype:dict |
handleSimEvent(self, event)Handles event from simulation. |
setTask(self, taskClass)Sets new task for agent. This receives an uniniated class variable which it instantiates before passing toSimAgent.taskManager.
|
startWorld(self, simTime)Forwardsstart call from world.
|
stopWorld(self, simTime)Forwardsstop call from world.
|
updateWorld(self, simTime)Forwardsupdate call from world.
|
| Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Thu Oct 20 15:30:26 2005 | http://epydoc.sf.net |