-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: fix tests after merging action implementation into latest master…
… state
- Loading branch information
1 parent
8191e89
commit 133553f
Showing
83 changed files
with
680 additions
and
769 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
6 changes: 3 additions & 3 deletions
6
alpha-api/src/main/java/at/ac/tuwien/kr/alpha/api/programs/actions/Action.java
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
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
42 changes: 21 additions & 21 deletions
42
alpha-api/src/main/java/at/ac/tuwien/kr/alpha/api/programs/terms/ActionResultTerm.java
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,30 +1,30 @@ | ||
package at.ac.tuwien.kr.alpha.api.programs.terms; | ||
|
||
/** | ||
* A term representing the result of an evolog action (i.e. result of action function application). | ||
* Action result terms are function terms with symbol "success" or "error" depending on whether the corresponding action was sucessful. | ||
* There is always one argument which is either some term representing the actual function result or an error message, respectively. | ||
*/ | ||
/** | ||
* A term representing the result of an evolog action (i.e. result of action function application). | ||
* Action result terms are function terms with symbol "success" or "error" depending on whether the corresponding action was sucessful. | ||
* There is always one argument which is either some term representing the actual function result or an error message, respectively. | ||
*/ | ||
public interface ActionResultTerm<T extends Term> extends FunctionTerm { | ||
|
||
public static final String SUCCESS_SYMBOL = "success"; | ||
public static final String ERROR_SYMBOL = "error"; | ||
public static final String SUCCESS_SYMBOL = "success"; | ||
public static final String ERROR_SYMBOL = "error"; | ||
|
||
/** | ||
* True if the action that generated this result was successful (i.e. executed normally). | ||
*/ | ||
boolean isSuccess(); | ||
/** | ||
* True if the action that generated this result was successful (i.e. executed normally). | ||
*/ | ||
boolean isSuccess(); | ||
|
||
/** | ||
* True if the action that generated this result failed (i.e. threw an error in execution). | ||
*/ | ||
boolean isError(); | ||
/** | ||
* True if the action that generated this result failed (i.e. threw an error in execution). | ||
*/ | ||
boolean isError(); | ||
|
||
/** | ||
* Gets the actual value wrapped in this result. | ||
* Either a term representing the action return value or a string term representing an error | ||
* message.s | ||
*/ | ||
T getValue(); | ||
/** | ||
* Gets the actual value wrapped in this result. | ||
* Either a term representing the action return value or a string term representing an error | ||
* message.s | ||
*/ | ||
T getValue(); | ||
|
||
} |
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
7 changes: 4 additions & 3 deletions
7
...ns/src/main/java/at/ac/tuwien/kr/alpha/commons/externals/PredicateInterpretationImpl.java
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
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
Oops, something went wrong.