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

astra.gui.GuiEventUnifier Maven / Gradle / Ivy

There is a newer version: 1.4.3
Show newest version
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);
	}


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy