forked from sfp932705/spade_bdi
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change to English the control example.
- Loading branch information
serfrape
committed
Jun 17, 2019
1 parent
94bf57a
commit e2cf5bf
Showing
3 changed files
with
29 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
contador(0). | ||
counter(0). | ||
|
||
+incrementar(Inc)[source(S)]: master(M) & .substring(M,S,R) | ||
+increase(Inc)[source(S)]: master(M) & .substring(M,S,R) | ||
<- | ||
.print("increasing"); | ||
?contador(X); | ||
?counter(X); | ||
.print(X); | ||
-+contador(X+Inc). | ||
-+counter(X+Inc). | ||
|
||
+decrementar(Dec)[source(S)]: master(M) & .substring(M,S,R) | ||
+decrease(Dec)[source(S)]: master(M) & .substring(M,S,R) | ||
<- | ||
.print("decreasing"); | ||
?contador(X); | ||
?counter(X); | ||
.print(X); | ||
-+contador(X-Dec). | ||
-+counter(X-Dec). | ||
|
||
-incrementar(Inc)[source(S)]: master(M) & .substring(M,S,R) | ||
-increase(Inc)[source(S)]: master(M) & .substring(M,S,R) | ||
<- | ||
.print("DELETING incrementar BELIEF from an untell message"). | ||
.print("DELETING increase BELIEF from an untell message"). | ||
|
||
-decrementar(Dec)[source(S)]: master(M) & .substring(M,S,R) | ||
-decrease(Dec)[source(S)]: master(M) & .substring(M,S,R) | ||
<- | ||
.print("DELETING decrementar BELIEF from an untell message"). | ||
.print("DELETING decrease BELIEF from an untell message"). |