Trees | Indices | Help |
|
---|
|
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
|||
Inherited from Inherited from |
|
|||
Inherited from Inherited from |
|
Initializes the Person.
|
Return the last received location. To Do: interpolation between received coordinates |
Set last and next node based on received data.
|
Reactivates passivated person and optionally restarts stopped actions.
|
Stops movement of person. Currently only works with passivating at next_node. Currently cannot be used to stop on a way like after infect!
|
Actions of the person when arriving at a node. To be overwritten with an implementation. This method is executes when the Person arrives at a node.
|
Think about what to do next. This method can include all logic of the person (what to do, where to go etc.). Decisions could be made by using flags for example. This is where a new self.dest_node and self.start_node should be set if necessary. self.next_node should not be set here. This should be done in self.next_target.
Note: This method provides only the most basic functionality. Overwrite (and if necessary call) it to implement own behaviour. |
Find out, what caused an interrupt and act accordingly. This method is called whenever a person is interrupted. This is the place to implement own reactions to interrupts. Calling methods that were send via a send() call is done BEFORE this method is called. Handling pause, stop, removal and change of movement speed is done automatically AFTER this method is called. Removing the corresponding flag (setting it to False) in this method allows for handling these things on your own.
Note: This method does nothing per default. Implement it to react to interrupts. If you do not want or need to react to interrupts, ignore this method. |
Receive a message and handle it. Removal from the message queue and earliest arrival time are handled automatically.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Jul 6 13:59:49 2014 | http://epydoc.sourceforge.net |