| Trees | Index | Help |
|
|---|
| Package svs_simulation :: Package agents :: Module basic_agents :: Class SimAgentBaseClass |
|
Entity --+
|
BasicSpatialEntity --+
|
SpatialEntity --+
|
SimAgentBaseClass
SimAgent,
SimAgentProxy| Method Summary | |
|---|---|
__init__(self)
| |
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. | |
Handles event from simulation. | |
setup(self,
name)
| |
Forwards start call from world. | |
Forwards stop call from world. | |
Forwards update call from world. | |
| 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 BasicSpatialEntity | |
Returns encoded representation of self. | |
| 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 |
|---|
__str__(self)
Returns string representation of object.
|
containsPoint(self, x, y)Tests if coordinates are contaiend within structure bounds. |
decode(self, data)Applies encoded data to self. |
getBoundsMaxX(self)Returns maximum x coordinate from bounds. |
getBoundsMaxY(self)Returns maximum y coordinate from bounds. |
getBoundsMinX(self)Returns minimum x coordinate from bounds. |
getBoundsMinY(self)Returns minimum y coordinate from bounds. |
getName(self)Returns name for structure. If the structure has no name returns its idtag. |
getWorldbounds(self)Returns the bounds of the structure as mapped to the world coordinates. |
handleSimEvent(self, event)Handles event from simulation. |
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 |