Specific goal commands include: to obey-disembark Obey-unknown kind ] ] ] ] ] ] ] ] ] ] ] ] If-else (kind = " disembark ") [ obey-disembark If-else (kind = " embark ") [ obey-embark If-else (kind = " drop ") [ obey-drop (item 1 goal) If-else (kind = " pickup ") [ obey-pickup (item 1 goal) If-else (kind = " instruct ") [ obey-instruct (item 1 goal) (item 2 goal) The sequence of picking up and dropping entities ensure that the wolf and goat are unable to carry out their eating goals. The problem is solved when the man has the goal list. Note the use of task to create a reporter task from the reporter at-left. The embark and disembark goals are used by the man to be carried by the boat.ĭomain-specific goals include eat, satisfied by the wolf and goat if they succeed in devouring their favourite food, together with go-left and go-right, the first of which expands to the goal list " wait " ( task at-left) " disembark " " goto " (- (bank + 3)) 0)], and the second of which expands to something similar. Agents being carried always follow the agent carrying them. The pickup and drop goals set the carrier variable of another agent to mark it as being carried. The wait goal contains a reporter task, and succeeds when that task returns “true.” The instruct goal gives aditional goals to another agent or (with an empty list) erases another agent’s goals. The goto goal here is the same as for the previous tutorial, and the meet goal differs only in containing a reference to an agent, rather than a string identifier.
0 Comments
Leave a Reply. |