Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. use bw4t.
  2. use robot as knowledge.
  3. use robot as module.
  4. use robot as actionspec.
  5. timeout = 300.
  6.  
  7. test main with
  8. pre { true }
  9. in {
  10. % Assignment 3.1: insert test conditions for the mandatory requirements.
  11.  
  12. % Agent should not drop a block if it is not in a room
  13. never done(putDown), not(bel(in(RandomRoom))).
  14.  
  15. % An agent should not pick up a block that is not of the next needed color
  16. never done(pickUp(Block)), not(bel(nextColorInSeq(Color))), bel(color(Block, Color)).
  17.  
  18. % An agent that is holding a block that is not of the next needed color should not enter the drop zone
  19. bel(holding(Block), color(Block, Color), nextColorInSeq(Color)) leadsto not(bel(in('DropZone'))).
  20.  
  21. % An agent should not leave the drop zone whilst holding a block.
  22. bel(holding(Block)), bel(in('DropZone')) leadsto not(bel(not(in('DropZone')))), not(bel(holding(Block))).
  23.  
  24. % Assignment 3.2: insert any additional conditions for further requirements.
  25.  
  26. }
  27. post { true }
  28.  
  29. robot {
  30. do main.
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement