astra.gui.GuiEventUnifier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of astra-apis Show documentation
Show all versions of astra-apis Show documentation
Base project for ASTRA applications
package astra.gui;
import java.util.HashMap;
import java.util.Map;
import astra.core.Agent;
import astra.reasoner.EventUnifier;
import astra.reasoner.Unifier;
import astra.term.Term;
public class GuiEventUnifier implements EventUnifier {
@Override
public Map unify(GuiEvent source, GuiEvent target, Agent agent) {
return Unifier.unify(
new Term[] {source.type, source.args},
new Term[] {target.type, target.args},
new HashMap(),
agent);
}
}