astra.cartago.CartagoSignalEventUnifier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of astra-cartago Show documentation
Show all versions of astra-cartago Show documentation
Base project for ASTRA applications
package astra.cartago;
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 CartagoSignalEventUnifier implements EventUnifier {
@Override
public Map unify(CartagoSignalEvent source, CartagoSignalEvent target, Agent agent) {
return Unifier.unify(new Term[] {source.id(), source.content()}, new Term[] {target.id(), target.content()}, new HashMap(), agent);
}
}