Difference between revisions of "Delayed-Message Action"
Jump to navigation
Jump to search
imported>Mike |
imported>Mike |
||
Line 1: | Line 1: | ||
− | [[Image: | + | [[Image:delayed message.png|150px]] |
{| width="100%" cellspacing="0" cellpadding="10" border="0" | {| width="100%" cellspacing="0" cellpadding="10" border="0" | ||
Line 13: | Line 13: | ||
'''Move after 2 second: '''This agent has two methods delayed_move and move, when it receives a delayed_move message it will wait 2 second then call its own move method which will move it randomly. | '''Move after 2 second: '''This agent has two methods delayed_move and move, when it receives a delayed_move message it will wait 2 second then call its own move method which will move it randomly. | ||
− | [[Image:Delayed-message2.png]] | + | [[Image:Delayed-message2.png]] |
<br> | <br> |
Revision as of 23:00, 4 April 2012
Definition: | The delayed-message action will trigger a message in this agent after a specified amount of time. Note that it is not possible to send delayed messages to other agents. |
Parameters: | method, time |
Example 1: |
Move after 2 second: This agent has two methods delayed_move and move, when it receives a delayed_move message it will wait 2 second then call its own move method which will move it randomly.
|