astra.cartago.CartagoPropertyEventUnifier 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 CartagoPropertyEventUnifier implements EventUnifier {
@Override
public Map unify(CartagoPropertyEvent source, CartagoPropertyEvent target, Agent agent) {
return Unifier.unify(new Term[] {source.id(), source.content()}, new Term[] {target.id(), target.content()}, new HashMap(), agent);
}
}