Package astra.reasoner
Class Unifier
java.lang.Object
astra.reasoner.Unifier
public class Unifier extends Object
This class performs unification of logical formulae and events. Events can be
associated with this class through the following code:
Unifier.eventFactory.put(EISEvent.class, new EISEventUnifier());
- Author:
- rem
-
Field Summary
Fields Modifier and Type Field Description static Map<Class<?>,EventUnifier<?>>eventFactorystatic List<FormulaUnifier>formulaUnifiers -
Constructor Summary
Constructors Constructor Description Unifier() -
Method Summary
Modifier and Type Method Description static Map<Integer,Term>unify(Event source, Event target, Agent agent)static Map<Integer,Term>unify(Formula source, Formula target, Map<Integer,Term> bindings, Agent agent)static Map<Integer,Term>unify(Goal source, Goal target, Agent agent)Generate variable bindings for two achievement goals or return null if there is no binding...static Map<Integer,Term>unify(Predicate source, Predicate target, Agent agent)Generate variable bindings for two predicates or return null if there is no binding...static Map<Integer,Term>unify(Term[] source, Term[] target, Map<Integer,Term> bindings, Agent agent)
-
Field Details
-
Constructor Details
-
Unifier
public Unifier()
-
-
Method Details
-
unify
-
unify
Generate variable bindings for two predicates or return null if there is no binding...- Parameters:
source- first predicatetarget- second predicateagent- the agent for which the unification is being performed- Returns:
- a
Bindingsobject or null
-
unify
Generate variable bindings for two achievement goals or return null if there is no binding...- Parameters:
source- first goaltarget- second goalagent- the agent for which the unification is being performed- Returns:
- a
Bindingsobject or null
-
unify
-
unify
-