SHARE
TWEET

Untitled

a guest May 22nd, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.     public void executeBdiRules() {
  3.  
  4.         Body body = Body.builder().context(communicationContext).clause("sense(X)").build();
  5.         Body plan = Body.builder().context(plansContext).clause("plan(Y,_,Z,_)").build();
  6.         Body planMember = Body.builder().context(plansContext).clause("member(X, Z)").build();
  7.         Body desires = Body.builder().context(desiresContext).clause("Y").build();
  8.         body.setAnd(plan);
  9.         plan.setAnd(planMember);
  10.         planMember.setAnd(desires);
  11.          BridgeRule.builder()
  12.                 .head(Head.builder().context(beliefsContext).clause("X").build())
  13.                 .body(body)
  14.                 .build().execute();
  15.  
  16.  
  17.  
  18.     }
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top