Skip to content

Commit

Permalink
enhancement: more specific type for action result in action witness d…
Browse files Browse the repository at this point in the history
…efinition
  • Loading branch information
madmike200590 committed Oct 30, 2024
1 parent 6ed327d commit 171d2c8
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package at.ac.tuwien.kr.alpha.core.actions;

import at.ac.tuwien.kr.alpha.api.grounder.Substitution;
import at.ac.tuwien.kr.alpha.api.programs.terms.ActionResultTerm;
import at.ac.tuwien.kr.alpha.api.programs.terms.Term;

import java.util.List;
Expand All @@ -11,9 +12,9 @@ public class ActionWitness {
private final Substitution groundSubstitution;
private final String actionName;
private final List<Term> actionInput;
private final Term actionResult;
private final ActionResultTerm<?> actionResult;

public ActionWitness(int ruleId, Substitution groundSubstitution, String actionName, List<Term> actionInput, Term actionResult) {
public ActionWitness(int ruleId, Substitution groundSubstitution, String actionName, List<Term> actionInput, ActionResultTerm<?> actionResult) {
this.ruleId = ruleId;
this.groundSubstitution = groundSubstitution;
this.actionName = actionName;
Expand All @@ -37,7 +38,7 @@ public List<Term> getActionInput() {
return actionInput;
}

public Term getActionResult() {
public ActionResultTerm<?> getActionResult() {
return actionResult;
}

Expand Down

0 comments on commit 171d2c8

Please sign in to comment.