Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. (defparameter *school-operations*
  2. (list
  3. (make-action-container
  4. :action 'drive-son-to-school
  5. :preconds '(son-at-home car works)
  6. :add-list '(son-at-school)
  7. :del-list '(son-at-home))
  8. (make-action-container
  9. :action 'shop-installs-battery
  10. :preconds '(car-needs-batter shop-knows-problem shop-has-money)
  11. :add-list '(car-works))
  12. (make-action-container
  13. :action 'tell-shop-problem
  14. :preconds '(in-communication-with-shop)
  15. :add-list '(shop-knows-problem))
  16. (make-action-container
  17. :action 'telephone-shop
  18. :preconds '(know-phone-number)
  19. :add-list '(in-communication-with-shop))
  20. (make-action-container
  21. :action 'look-up-number
  22. :preconds '(have-phone-book)
  23. :add-list '(know-phone-number))
  24. (make-action-container
  25. :action 'give-shop-money
  26. :preconds '(have-money)
  27. :add-list '(shop-has-money)
  28. :del-list '(have-money))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement