All Downloads are FREE. Search and download functionalities are using the official Maven repository.

goal.tools.history.explanation.reasons.NoActionNeverApplied Maven / Gradle / Ivy

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