
goal.tools.history.explanation.reasons.NoActionNeverEvaluated Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of runtime Show documentation
Show all versions of runtime Show documentation
A system for running GOAL multi-agent systems.
The newest version!
package goal.tools.history.explanation.reasons;
import java.util.Set;
import krTools.parser.SourceInfo;
import languageTools.program.agent.actions.Action;
/**
* Possible instantiation of a {@link NoActionReason}: rules selecting the
* action were never evaluated.
*/
public class NoActionNeverEvaluated extends NoActionReason {
private Set relatedRules;
public NoActionNeverEvaluated(final Action> action) {
super(action);
}
public void setRelatedRules(final Set relatedRules) {
this.relatedRules = relatedRules;
}
@Override
public String toString() {
final StringBuilder string = new StringBuilder();
string.append(this.action).append(" was never executed because the rule(s) possibly selecting the action, ")
.append(this.relatedRules).append(", were never reached.");
return string.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy