[Pogamut-list] Own A* (originally posted by jakub.gemrot)
jakub.gemrot
pogamut-forum at diana.ms.mff.cuni.cz
Thu Jun 17 08:39:53 CEST 2010
Re: Re: Own A* (originally posted by jakub.gemrot)
Author: jakub.gemrot
Hi!
.stop() method -> may throw an exception which means that the agent is left in undefined state (who knows what happened). If succeeds, the agent state will be IAgentStateStopped
.kill() method -> should be used in the case of exceptions, i.e., it stops the agent unconditionally switching its state to IAgentStateFailed marking that there was a severe failure while killing the agent, kill() method never throws an exception (never ever, guaranteed).
Jimmy
P.S.: if you do not care of the agent state, always use .kill()
--
Reply Link: <http://diana.ms.mff.cuni.cz/main/tiki-view_forum_thread.php?forumId=4&comments_reply_threadId=4&comments_parentId=233&post_reply=1#form>
More information about the Pogamut-list
mailing list