
goal.tools.history.explanation.reasons.NoActionNeverApplied 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 languageTools.program.agent.actions.Action;
/**
* Possible instantiation of a {@link NoActionReason}: rule(condition)s
* selecting the action always resulted in other instantiations.
*/
public class NoActionNeverApplied extends NoActionReason {
private Set> otherInstances;
public NoActionNeverApplied(final Action> action) {
super(action);
}
public void setOtherInstances(final Set> instances) {
this.otherInstances = instances;
}
@Override
public String toString() {
final StringBuilder string = new StringBuilder();
string.append(this.action)
.append(" was never executed because other instantiations of the action were applied instead: ")
.append(this.otherInstances).append(".");
return string.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy